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

Fix bugs preventing tool from working on short reference sequences #16

Conversation

ExplodingCabbage
Copy link
Contributor

@ExplodingCabbage ExplodingCabbage commented Jun 21, 2019

(See #9, and the commit messages of the commits here, for explanation.)

… of a chromosome

Note that a few lines above, in the case of a circular chromosome, the code gets this right. Specifically, this check uses <= correctly:

    if length + ref_pos <= genome_len:

It's only this spot where the logic was wrong and consequently reads that end on the last base of the chromosome weren't allowed.
@ExplodingCabbage ExplodingCabbage force-pushed the fix-read-generation-from-short-references branch from 29e98f9 to 7a688e2 Compare June 21, 2019 14:14
@ExplodingCabbage ExplodingCabbage changed the title Fix < / <= typo preventing reads from ever finishing on the last base of a chromosome Fix < / <= typo preventing reads from ever finishing on the last base of a chromosome, plus another bug affecting short reference sequences Jun 21, 2019
@ExplodingCabbage ExplodingCabbage changed the title Fix < / <= typo preventing reads from ever finishing on the last base of a chromosome, plus another bug affecting short reference sequences Fix bugs preventing tool from working on short reference sequences Jun 21, 2019
@karel-brinda karel-brinda changed the base branch from master to devel August 30, 2019 14:50
@karel-brinda karel-brinda merged commit 2f09767 into karel-brinda:devel Aug 30, 2019
@ExplodingCabbage ExplodingCabbage deleted the fix-read-generation-from-short-references branch August 30, 2019 15:04
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

Successfully merging this pull request may close these issues.

2 participants