vcftools for a zip file
1
0
Entering edit mode
9.2 years ago
xinhui.wang ▴ 550

I am running vcftool on multi vcf documents. I could run vcftools with one vcf document and how could I run with a list of vcf documents?

Actually I would like to generate a ped file with many vcf input file. I tried

ls *vcf | xargs vcf-merge > merged.vcf

However, it could not work with an error message as

exited with status 255; abortingxargs: vcf-merge
software-error • 2.5k views
ADD COMMENT
0
Entering edit mode
9.2 years ago
Ram 43k

Use Linux for loops: http://www.thegeekstuff.com/2011/07/bash-for-loop-examples/

Update: So you're using vcf-merge. I don't see why your title has zip files in it. I also think vcf-merge *.vcf should work thanks to shell globbing.

ADD COMMENT
0
Entering edit mode

In bioinfo data processing, xargs is often safer and more convenient than for loops.

ADD REPLY
0
Entering edit mode

I agree. The for loop suggestion was before OP added details.

ADD REPLY

Login before adding your answer.

Traffic: 2662 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6