Generate consensus from BAM file
2
0
Entering edit mode
9.9 years ago
blur ▴ 280

Hi

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?

Thanks

Assembly consensus galaxy samtools • 12k views
ADD COMMENT
5
Entering edit mode
9.9 years ago

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: https://www.biostars.org/p/65885/ Note that I think you can skip the bcftools part step and just give samtools mpileup the -v option.
ADD COMMENT
2
Entering edit mode
9.8 years ago
thackl ★ 3.0k

You can use the bam2cns module of proovread (https://github.com/BioInf-Wuerzburg/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 COMMENT

Login before adding your answer.

Traffic: 1792 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6