lindenb / jvarkit

Java utilities for Bioinformatics
https://jvarkit.readthedocs.io/
Other
482 stars 133 forks source link

PcrClipReads: reads with already soft clipped bases #70

Open alborm opened 7 years ago

alborm commented 7 years ago

Hello Pierre,

Subject of the issue

I am using PcrClipReads to clip primers. I see some problems when the read starts or ends with soft clipped bases in readClipper().

Region__||---------------------------------------||____ Read:____<SSSSS......................................................_____ strand -

It seems that because soft clipped bases do not consumeReferenceBases, more bases are clipped than expected.

Expected behaviour

Only soft clip the bases outside of the region

Actual behaviour

Clips more bases from the end of the read.

Thanks.