Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

barcode overlap checking needs to limit overlap from start #16

Open
jinfengzou-uhn opened this issue Feb 28, 2020 · 0 comments
Open

barcode overlap checking needs to limit overlap from start #16

jinfengzou-uhn opened this issue Feb 28, 2020 · 0 comments

Comments

@jinfengzou-uhn
Copy link
Contributor

extract_barcode.py

for barcode in blist:
if sum([barcode in b for b in blist]) > 1:
overlap = True

"startswith" is better than "in": if sum([b.startswith(barcode) b for b in blist]) > 1
For example, ACG and TACG are not overlapped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant