Soft Clipped read 3' end position
1
0
Entering edit mode
3.9 years ago
mhasa006 ▴ 70

Note: clarifying my question.

How can I get the hard clipped 3' end of the read position where there is soft clip at either end of the read? The getUnclippedEnd() in htsjdk gives you the position of the 3' end of the read including the soft-clipped bases. Is there a function like this to get the 3' read end positions excluding soft clipped bases? I believe I can look a the CIGAR string and do the math, just asking if there is any function available.

----------------------------SSS>

Any htsjdk function can find the position at the start of the Softlips in the above example?

Thanks.

BAM htsjdk java • 1.2k views
ADD COMMENT
2
Entering edit mode
3.9 years ago
d-cameron ★ 2.9k

Is there a function like this to get the 3' read end positions excluding soft clipped bases?

record.getAlignmentEnd()

How can I get the hard clipped 3' end of the read position where there is soft clip at either end of the read?

I ended up writing a SAMRecordUtil class for SAMRecord operations I used frequently.

https://github.com/PapenfussLab/gridss/blob/36c5c218598071e07ca43fbf15ec50c088317373/src/main/java/au/edu/wehi/idsv/sam/SAMRecordUtil.java#L123

record.getAlignmentEnd() + SAMRecordUtil.getEndClipLength(record)

ADD COMMENT

Login before adding your answer.

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