Question: Generate consensus from BAM file
gravatar for blur
5.5 years ago by
European Union
blur120 wrote:


I wish to get the consensus sequence of a certain section of my bowtie alignment.

I have the bam file, I thought perhaps I need to do faidx - is this possible in Galaxy?



ADD COMMENTlink modified 5.4 years ago by thackl2.8k • written 5.5 years ago by blur120
gravatar for Devon Ryan
5.5 years ago by
Devon Ryan96k
Freiburg, Germany
Devon Ryan96k wrote:

I have no idea if someone has made a galaxy pipeline to do this. The general steps are as follows:

  1. Sort and index the BAM file (this can be done with samtools)
  2. Use samtools mpileup like in this post: Questions Regarding Consensus Sequence Calling With Samtools / Bcftools / Vcfutils.Pl Note that I think you can skip the bcftools part step and just give samtools mpileup the -v option.
ADD COMMENTlink written 5.5 years ago by Devon Ryan96k
gravatar for thackl
5.4 years ago by
thackl2.8k wrote:

You can use the bam2cns module of proovread ( It is a consensus based PacBio-Illumina correction software. An advantage might be that the module let's you set a coverage cutoff and it only considers the best alignments (by score) for each location up this cutoff. This is paricularly useful, if you are dealing with repetitive regions, where suboptimal alignments introduce a lot of noise.

ADD COMMENTlink modified 3 months ago by h.mon30k • written 5.4 years ago by thackl2.8k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1024 users visited in the last hour