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

Non paired reads #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jstimes
Copy link

@jstimes jstimes commented Aug 2, 2024

Description:

Bug fix for single-end reads (paired=FALSE) & add mc.cores parameter.

Changes:

Commit 1:
Bug fix for running with paired=FALSE.

The assumption that the first value column on the cov object is a score column
does not hold when running fragCounter with paired=FALSE - see the logic in PrepareCov
where a different bamUtils function is used. The count column is set in that branch
though and is the correct column to use here.

Preserving the initial logic if count column does not exist though in case other
usages depend on that behavior.

Commit 2:
Add mc.cores argument to fragCounter.

Passes mc.cores through to PrepareCov and then bam.cov.gr for
potential speed-up. With default value of 1, bam.cov.gr was taking
~3 days for a 116x coverage single-end PacBio reads.

Impact:

Allows fragCounter to be used with single-end reads and optionally run faster if using >1 cores.

The assumption that the first value column on the `cov` object is a score column
does not hold when running fragCounter with `paired=FALSE` - see the logic in `PrepareCov`
where a different bamUtils function is used. The `count` column is set in that branch
though and is the correct column to use here.

Preserving the initial logic if `count` column does not exist though in case other
usages depend on that behavior.
Passes `mc.cores` through to `PrepareCov` and then `bam.cov.gr` for
potential speed-up. With default value of 1, `bam.cov.gr` was taking
~3 days for a 116x coverage single-end PacBio reads.
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.

1 participant