rrwick / Porechop

adapter trimmer for Oxford Nanopore reads
GNU General Public License v3.0
335 stars 125 forks source link

Possible to restrict to a barcode set? #20

Closed nickloman closed 6 years ago

nickloman commented 7 years ago

Hi Ryan

I've noticed a few occasions where Porechop has picked both a native barcoding set (i.e. labeled as 'reverse') and also PCR barcoding set (labeled 'forward') both of the same barcode number during adaptor screening.

This then seems to result in bad things happening such as all or many reads getting thrown into the 'None' bin.

Is there a way of disabling certain barcode sets if I know in advance which ones I am using. I.e. I would like it just to look for native barcodes and not PCR barcodes.

Thanks in advance! Nick

khyox commented 7 years ago

Hi Nick. While Ryan answers, have you tried to delete them from adapters.py? This is usually working for us in similar cases. Hope this helps.

nickloman commented 7 years ago

Yeah I was thinking about doing that - thank you!

rrwick commented 7 years ago

Hi Nick,

Porechop was supposed to be doing just that - choosing either the forward or reverse barcodes (based on whichever had stronger results) and ignoring the other. I tried to reproduce your issue, but couldn't make it happen as you described it. That being said, while looking into it I did rewrite some of the logic, so maybe it works better for you now.

I've just made a new release (v0.2.2), so if the same issue still happens on the new release, maybe I could coax you into sharing a read set which has the problem? If I could replicate it I could surely fix it. Let me know how you go!

Ryan

rrwick commented 6 years ago

This is an old issue, so I'm going to close it now. But please let me know if you're still experiencing unresolved issues and we can reopen it!

Ryan