Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #16
    I've filed a bug for this in github:

    Reporting on behalf of seqanswers user xmubingo, using VCF utils to generate a consensus assembly doesn't work properly because mpileup is not reporting all bases. The generated sequence from mpile...


    In the meantime, you'll either have to use my script with the reference fasta file (in which case INDELs will change the length of the generated sequence), or add a dummy SAM line for each sequence in the reference fasta file that covers the entire range of the sequence.

    Comment

    • xmubingo
      Member
      • Sep 2013
      • 13

      #17
      Originally posted by gringer View Post
      I've filed a bug for this in github:

      Reporting on behalf of seqanswers user xmubingo, using VCF utils to generate a consensus assembly doesn't work properly because mpileup is not reporting all bases. The generated sequence from mpile...


      In the meantime, you'll either have to use my script with the reference fasta file (in which case INDELs will change the length of the generated sequence), or add a dummy SAM line for each sequence in the reference fasta file that covers the entire range of the sequence.
      Hi gringer, Thanks a lot!! I will try your code.

      Comment

      • xmubingo
        Member
        • Sep 2013
        • 13

        #18
        Originally posted by gringer View Post
        I've filed a bug for this in github:

        Reporting on behalf of seqanswers user xmubingo, using VCF utils to generate a consensus assembly doesn't work properly because mpileup is not reporting all bases. The generated sequence from mpile...


        In the meantime, you'll either have to use my script with the reference fasta file (in which case INDELs will change the length of the generated sequence), or add a dummy SAM line for each sequence in the reference fasta file that covers the entire range of the sequence.
        Hi gringer, i think find a way to solve this problem. Although the consensus sequence(cns.fa -> cns.fa) generated by vcf2fq doesn't have same length as it in reference sequence. but i find the sequence in cns.fa just lacks of some 'n' in its tail. So, we can add some 'n' to the sequences to make its length equal to its original length. for example:

        cns.fa
        Code:
        >seq1
        nnnnnnnnnnnnnnnAAAATTTTTCCCCGGGGgggccccGGTTTg
        cns.fa.fixed
        Code:
        >seq1
        nnnnnnnnnnnnnnnAAAATTTTTCCCCGGGGgggccccGGTTTgnnnnnnnnnnnnn

        Comment

        • jiewencai
          Junior Member
          • Oct 2012
          • 3

          #19
          It's amazing

          Originally posted by gringer View Post
          I have a slightly different processing script, but the command you have seems to work for me on my mitochondrial data (i.e. it produces a fastq file at the end of it).

          I've attached my modified vcf2fq script to this post [also the fairly trivial fastq2fasta], maybe it will help to diagnose the problem.
          The original vcf2fq can't producing sequence containing indels, and it's really bother me a lot,but this one can produce sequence containing indels,that's amazing.

          Comment

          • Yuhuan Meng
            Junior Member
            • Nov 2015
            • 2

            #20
            I have a problem, if the new genome.fa contain indels, the position would be changed, if I call the genes with gtf from new genome, the called genes will not with the same regions compared with original genes in the original genome.

            Comment

            • gringer
              David Eccles (gringer)
              • May 2011
              • 845

              #21
              ... so don't use a non-reference genome for defining the location of variants. Always link back to the reference genome when defining positions.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              14 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-13-2026, 09:56 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-09-2026, 11:14 AM
              0 responses
              27 views
              0 reactions
              Last Post SEQadmin2  
              Working...