How To Extract Consensus Sequence Of Mapped Regions From A Bam File?
1 answer
FastaAlternativeReferenceMaker function from picardtools compares variant files to
reference to create a consensus fasta sequence ; -L flag takes the input intervals file, -o flag
gives the output consensus fasta file, -variant flag takes the variant file (SNPS and Indels
together) -R flag takes the reference genome
java -Xmx2g -jar /GATK_pre/GenomeAnalysisTK-1.0.4905/GenomeAnalysisTK.jar -R reference.fasta -T FastaAlternateReferenceMaker -L sorted.bam.intervals -o consensus.fasta –variant snps_indel_file
• 0 views
•
link
Log in to answer this question.
You might find this thread or this link useful for your purpose.
How to generate a consensus fasta sequence from SAM tools pileup?
http://chipster.csc.fi/manual/samtools-consensus.html