Question: how to convert .bam from unpadded to padded representation?
1
gravatar for bw.
4.3 years ago by
bw.150
San Francisco
bw.150 wrote:

I have an aligned .bam file and a reference .fasta file. I'd like to convert the .bam and .fasta from an unpadded representation to a padded one (with 'padded' and 'unpadded' as defined in the SAM spec). Are there tools that can do this either across the entire .bam and reference sequence, or alternatively just for reads that overlap a particular region?

Ps. I know samtools had a pad2unpad (aka. depad) tool at one point. Perhaps there is something similar for going the opposite direction?

 

bam sam alignment • 1.8k views
ADD COMMENTlink modified 4.3 years ago • written 4.3 years ago by bw.150

I don't think I've ever actually seen a padded file. My guess is that the padding concept never caught on (it's convenient for visualizations, but things like samtools tview and tablet don't actually require the P operations).

ADD REPLYlink written 4.3 years ago by Devon Ryan88k

visualization is actually why I need this. satmools tview must be doing it on the fly for each viewport. I looked at the source code but didn't seen an obvious place where that logic was localized. Hadn't heard of tablet before - thanks. 

ADD REPLYlink modified 4.3 years ago • written 4.3 years ago by bw.150
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 2.3.0
Traffic: 780 users visited in the last hour