Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #1

    Generate consensus sequence with Samtools mpileup?

    Hey all,

    I have been unable to do this. When running the two lines of code shown here at the top (http://samtools.sourceforge.net/mpileup.shtml) it states that -u is an illegal option. This is with version 1.18. Has anybody else experienced this or do any of you have a way to generate the consensus sequence?
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    Nevermind, we got it to work with this:

    ./samtools mpileup -uf /<reference_seq.fa> <aligned_file.bam> | /samtools-0.1.18/bcftools/bcftools view -bcg - > <intermediate.bcf>

    /samtools-0.1.18/bcftools/bcftools view <intermediate.bcf> > output.txt

    Comment

    • MaskedMicrobiologist
      Junior Member
      • Jul 2013
      • 1

      #3
      Consensus Making

      This is great! It solved the problem I've been having with a bit of resequencing. Do you know of any way to turn this into fasta format, or is there a better execution of this?

      I'm trying to use this to close some mispairings in my genome, using Bowtie, followed by this. It's removed all of my "N's", but now I need to write it out to fasta.

      Thanks

      Comment

      • krobison
        Senior Member
        • Nov 2007
        • 734

        #4
        See previous thread http://seqanswers.com/forums/showthread.php?t=11536

        Comment

        • ahudel
          Junior Member
          • Oct 2013
          • 1

          #5
          I've just gotten the hang of the Tuxedo pipeline, but I'm new to samtools. Right now I have a bunch of genes that were unnamed according to my annotation, but I can view the reads and their consensus for each transcript in samtools tview, after getting the genome coordinates from cummeRbund. Does anyone know of a way I can give samtools a genomic coordinate from cummeRbund and so it will give me a consensus sequence for all the reads that map to that section, even if there are multiple exons? Thanks.

          Comment

          Latest Articles

          Collapse

          • kinpict.com
            Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by kinpict.com
            The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
            Today, 06:37 PM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          35 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-03-2026, 11:54 AM
          2 responses
          56 views
          0 reactions
          Last Post kinpict.com  
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          175 views
          0 reactions
          Last Post SEQadmin2  
          Working...