Generating fasta from VCF with only the variant
0
0
Entering edit mode
3.9 years ago
the_cowa ▴ 40

Hi Stars,

I did an alignment and from that, I called the variant (VCF). So my question is how I can convert that vcf into fasta with the only predicted variant, not consensus. I know usually for consensus we will do it with GATK Fasta Alternate Reference or BCF tools.

Excepted fasta out as like this (If there is no variation, that position must be noted with N)

>Seq1
NNNNNANNNNTNNNNNNGNNNNNNNNNC

Any ideas?

SNP alignment gatk vcf • 910 views
ADD COMMENT
0
Entering edit mode

What is the purpose of this exercise?

ADD REPLY
0
Entering edit mode

I am trying to generate a new gene sequence from an known reference, so I am not interested the same reference sequence

ADD REPLY
0
Entering edit mode

You should be able to write some code to fetch reference sequences and apply any variants, as long as they are in HGVS nomenclature. Read the python hgvs package documentation for a basic understanding of how you can interact with posedit components.

ADD REPLY

Login before adding your answer.

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