Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #3
      Thank you Ian,

      I will give it a look.

      Comment


      • #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


        • #6
          Hi dbrami,

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

          Thank you.

          Comment


          • #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.

            http://samtools.sourceforge.net/mpileup.shtml

            Comment


            • #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


              • #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


                • #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

                  • seqadmin
                    Advancing Precision Medicine for Rare Diseases in Children
                    by seqadmin




                    Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                    12-16-2024, 07:57 AM
                  • seqadmin
                    Recent Advances in Sequencing Technologies
                    by seqadmin



                    Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                    Long-Read Sequencing
                    Long-read sequencing has seen remarkable advancements,...
                    12-02-2024, 01:49 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 12-17-2024, 10:28 AM
                  0 responses
                  23 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-13-2024, 08:24 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-12-2024, 07:41 AM
                  0 responses
                  28 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-11-2024, 07:45 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X