Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dbrami
    Member
    • Sep 2008
    • 14

    #1

    New consensus from VCF

    Hello,

    I have a reference file in FASTA format and list of indels in VCF format (courtesy of GATK).

    How can I generate a NEW consensus that incorporates the modifications from the the VCF file?
    I am positive a tool like this must exist, although I've written my own naive version in Perl.

    Would it be a part of GATK, VCFTools or other?

    Regards,

    Daniel
  • iansealy
    Member
    • Oct 2010
    • 15

    #2
    Dear Daniel,

    I haven't tried it yet, but the announcement for the latest version of SAMtools says:

    Implemented "vcfutils.pl vcf2fq" to generate a consensus sequence similar to "samtools.pl pileup2fq".
    See http://sourceforge.net/mailarchive/f...tools-announce and http://samtools.svn.sourceforge.net/...ls.pl?view=log

    Cheers,
    Ian

    Comment

    • dbrami
      Member
      • Sep 2008
      • 14

      #3
      Thank you Ian,

      I will give it a look.

      Comment

      • iansealy
        Member
        • Oct 2010
        • 15

        #4
        Sorry, looks like I led you astray:

        Comment

        • dbrami
          Member
          • Sep 2008
          • 14

          #5
          It didnt work for me.
          I wrote to the SAM toosl developer and got this response:
          Firstly, vcf2fq only filters SNPs around indels, but does not build indels into the consensus. Secondly, it requires nearly *every* base in the reference genome to be present in the input, no matter whether there is a variant. For now, vcf2fq only works with samtools all-site BCF/VCF as other callers do not generate information at all sites.

          vcf2fq is mainly useful to people who not only want to get the SNPs, but also intend to know the regions where a call can be made. This is essential for most popgen studies.

          Heng
          I think I might have to find a perl VCF parser (part of sam tools page) and write my own consensus script.

          Comment

          • wormseq
            Junior Member
            • May 2010
            • 2

            #6
            Hi dbrami,

            If you find a solution (i.e a perl script) could you please post it.

            Thank you.

            Comment

            • dagarfield
              Member
              • Aug 2010
              • 39

              #7
              Does this link help you out?
              It describes moving from mpileup (pileup is now outdated) into a consensus sequence by shooting the results of mpileup through two other utilities.

              Comment

              • nupurgupta
                Member
                • Aug 2010
                • 29

                #8
                Yeah, except that vcfutils has an error if your VCF entry doesn't have an FQ value. Which is true in current format of VCF. And I don't feel comfortable modifying the vcfutils.pl file. So if anyone knows of another solution, would be great to know.

                Comment

                • James Hane
                  Member
                  • Apr 2010
                  • 11

                  #9
                  I haven't used vcf2fq before, however samtools pileup in the past had problems with incorporating indels into the consensus. I regularly use GATK's FastaAlternateReferenceMaker for this which handles both SNPs and indels very well... GATK also allows you to vastly improve the accuracy of your variant calls by running steps like RealignerTargetCreator/IndelRealigner prior to final consensus generation.

                  Comment

                  • dagarfield
                    Member
                    • Aug 2010
                    • 39

                    #10
                    I think this problem of indels has been at least partially addressed using mpileup. That said, I've heard good things about the route James is recommending.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                      by SEQadmin2



                      CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                      Despite this, “CRISPR helped turn genome editing from a specialized technique into
                      ...
                      07-31-2026, 11:01 AM
                    • SEQadmin2
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 10:13 AM
                    0 responses
                    13 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-31-2026, 02:55 AM
                    0 responses
                    27 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    19 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...