How to parse supplementary (not secondary) alignments
1
1
Entering edit mode
@marco-blanchette-17000
Last seen 6 months ago
US/Santa Cruz/Dovetail Genomics

Dear all,

We are processing long reads from Oxford Nanopore and we are in need to parse both secondary alignments (SAM flag 0x100) and the supplementary alignments (SAM flag 0x800) from their primary and representative alignments. 

From Rsamtools, scanBamFlag() allows for parsing the secondary [0x100, i.e. isSecondaryAlignment=c(TRUE,FALSE,NA)] from the rest but I can't find any flag that would allow us to retrieve the supplementary entries. 

Am I missing something? Any help would be greatly appreciated.

 

genomicalignments rsamtools • 1.6k views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 5 months ago
United States

Thanks, its surprising that this hasn't come up before, and that it has not been implemented. This will be available via a flag isSupplementaryAlignment in Rsamtools version 1.32.3 (Bioconductor version 3.7) / 1.33.4 (devel) in the next day or so; it can also be installed using BiocManager::install("Bioconductor/Rsamtools", ref = "RELEASE_3_7") (or ref = "master" for devel) now.

ADD COMMENT

Login before adding your answer.

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