how to create a multifasta file from miltisample vcf file?
1
1
Entering edit mode
7.6 years ago
jcuenca ▴ 10

Hi everyone. I'd like to create a new fasta file containing all sequences for which I called variants in a vcf file. I can only get one sequence, but I would like to rebuild the sequence for all my samples. I know I can do it individually, but is there any tool to do it for all my samples at once? Thank you very much!

SNP sequencing RNA-Seq alignment • 4.8k views
ADD COMMENT
1
Entering edit mode

How about a simple iteration of vcf-consensus -s <sample_name> . The new version also gives an option to use IUPAC ambiguity codes for hetrozygotes or no-calls.

ADD REPLY
0
Entering edit mode

See this post. It may be at least partially helpful.

vcf to MAF to fasta

ADD REPLY
0
Entering edit mode
7.6 years ago
jcuenca ▴ 10

Thank you very much! This is what I actually did, one by one within an iteration. But it is a long pipeline (split the vcf into individual files, bzip, tabix, then vcf-consensus for each one and finally cat all fasta in one file). Also, I end up with many unuseful (intermediate) files (I'm analyzing 48 samples). The vcf to MAF maybe can help.

ADD COMMENT

Login before adding your answer.

Traffic: 1873 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