Extract 'endpos' feature from bam file
1
0
Entering edit mode
23 months ago
qstefano ▴ 20

Hello everyone,

I want to extract the position of the last mapped base from each alignment, i know that alignments can be filtered by expression with the command:

samtools view -e 'endpos>int' -O BAM in.bam

Is there a way to extract the only the endpos values? I don't want to filter alignments.

Thanks in advice!

Alignment BAM RNA-Seq samtools • 395 views
ADD COMMENT
2
Entering edit mode
23 months ago

bedtools bamtobed is a conversion utility that converts sequence alignments in BAM format into BED, BED12, and/or BEDPE records.

https://bedtools.readthedocs.io/en/latest/content/tools/bamtobed.html

ADD COMMENT

Login before adding your answer.

Traffic: 2701 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