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

Issue with cellsnp-lite Running in Single-Thread Mode #131

Open
parv-sachdeva opened this issue Jul 12, 2024 · 1 comment
Open

Issue with cellsnp-lite Running in Single-Thread Mode #131

parv-sachdeva opened this issue Jul 12, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@parv-sachdeva
Copy link

Hi,

I'm encountering an issue when trying to run cellsnp-lite in mode 2b on a BAM file. The application only launches a [Thread-0] and does not spawn additional threads. This problem also occurs in other modes.

Here is the command I used:

cellsnp-lite -s subset_X.bam -O subset_X_2b -p 10 --minMAF 0.1 --minCOUNT 20 --cellTAG None --UMItag UB --chrom chrX --gzip

Despite specifying -p 10 for multiple threads, it seems to be running in single-thread mode. Could you provide any guidance on why this might be happening and how to resolve it?

image

For reference, I installed the latest version of cellsnp-lite using CMake: cellsnp-lite 1.2.3 (htslib 1.20).

Tagging @wvictor14 for reference.

Thank you for your assistance!

Best,
Parv Sachdeva

@hxj5
Copy link
Collaborator

hxj5 commented Jul 13, 2024

Hi Parv,

Thanks for the question and detailed information. Unfortunately, in mode 2 (whole chromosome pileup), multi-threading can only be utilized when there are multiple input chromosomes such that each chromosome would be assigned to one thread. In your case, single chromosome "chrX" can only allocate (at most) one thread. See also issue #40 and #111.

Best,
Xianjie

@hxj5 hxj5 added the documentation Improvements or additions to documentation label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants