Question: Mapping quality plot of BAM file
0
gravatar for vebaev
22 months ago by
vebaev130
vebaev130 wrote:

I'm interested in a specific genome region, is there a way/tool to make trackster track/plot/histogram/ of mapping quality from BAM?

plot mapping quality • 3.0k views
ADD COMMENTlink modified 22 months ago by y.hoogstrate460 • written 22 months ago by vebaev130
1
gravatar for Jennifer Hillman Jackson
22 months ago by
United States
Jennifer Hillman Jackson25k wrote:

Hello,

Trackster does not display this data, but IGV does.

Other options include running one of Galaxy's plotting tools on the MAPQ column directly to generate statistics/graphics.

Thanks, Jen, Galaxy team

ADD COMMENTlink written 22 months ago by Jennifer Hillman Jackson25k
0
gravatar for y.hoogstrate
22 months ago by
y.hoogstrate460
Netherlands
y.hoogstrate460 wrote:

Hi there,

You can use samtools view (in Galaxy as the following tool Filter SAM or BAM , output SAM or BAM files on FLAG MAPQ RG LN or by region) to subselect the region.

With that alignment you can go back to FASTQ and :

  • Then dump the BAM to FASTQ (FastqToSam convert Fastq data into unaligned BAM).
  • And then proceed with FastQC to get a general report of Quality.

Or proceed with the BAM file and use tools that estimate base-quality within BAM files. I don't know this by heart, but I would expect deepTools or Picard tools might have something like this.

Good luck,

Youri

ADD COMMENTlink written 22 months ago by y.hoogstrate460

Hi Youri, First part is great for subsetting by region! For the second part, this is to generate a report of the fastq quality scores, correct? I think the user wanted the mapping quality - but they can correct us :) Thanks, Jen

ADD REPLYlink written 22 months ago by Jennifer Hillman Jackson25k
1

Oops, that should be possible too. Convert to SAM and exclude the header, use cut in Galaxy to pick column 5 (https://samtools.github.io/hts-specs/SAMv1.pdf, sec 1.4) and visualize this in Galaxy Charts.

ADD REPLYlink modified 22 months ago • written 22 months ago by y.hoogstrate460
1

Thanks Yuori for adding in the details! Jen

ADD REPLYlink written 22 months ago by Jennifer Hillman Jackson25k
Please log in to add an answer.

Help
Access

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