Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmmm
    Senior Member
    • Jul 2013
    • 131

    #1

    consensus sequence

    have mapped illumina PE reads to the reference genome using BWA and now, would like to get a consensus sequence of the mapped reads- can samtools be used on the aligned bam file??
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    See this thread: http://seqanswers.com/forums/showthread.php?t=14565 (and the other thread mentioned in #4 there).

    Comment

    • mmmm
      Senior Member
      • Jul 2013
      • 131

      #3
      samtools mpileup -uf /<reference.fasta> <aligned.bam> | bcftools view -bcg - > <intermediate.bcf>

      gave me an error: -bash: syntax error near unexpected token "<

      I was wondering BCFtools are part of samtools, right?- is this the correct comand?

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        You don't literally use < > around the file names.

        Comment

        • mmmm
          Senior Member
          • Jul 2013
          • 131

          #5
          has anyone tried this command to generate a consensus file

          samtools mpileup -uf reference.fasta sorted_alignment.bam | bcftools view -cg - | vcfutils.pl vcf2fq

          but where should I put the output file name???

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Originally posted by mmmm View Post

            but where should I put the output file name???
            Code:
            $ samtools mpileup -uf reference.fasta sorted_alignment.bam | bcftools view -cg - | vcfutils.pl vcf2fq > output_file_name

            Comment

            • mmmm
              Senior Member
              • Jul 2013
              • 131

              #7
              yes- thanks.
              I will ignore the abnormal shapes that appeared after the sequence
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                How Immunogenomics Decodes Immunity’s Genetic Blueprint
                by SEQadmin2




                The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

                This convergence of genetics, immunology, and computation...
                Today, 05:41 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 08-24-2026, 10:32 AM
              0 responses
              41 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-20-2026, 11:17 AM
              0 responses
              47 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-18-2026, 10:05 AM
              0 responses
              52 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-13-2026, 12:22 PM
              0 responses
              50 views
              0 reactions
              Last Post SEQadmin2  
              Working...