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

Error seq.default(from = 1 + i, to = ncol(all_preds_out), by = 6) : wrong sign in 'by' argument #46

Closed
koetjen opened this issue Dec 5, 2024 · 2 comments

Comments

@koetjen
Copy link

koetjen commented Dec 5, 2024

I'm working on trouble shooting this error but having trouble figuring out whether the error is occurring in the prediction step or whether the previous preprocessing step had a failure.

 cytotrace2_result <- cytotrace2(counts, species = "human") # addl options: full_model = TRUE
cytotrace2: Started loading data
Dataset contains 33755 genes and 190747 cells.
cytotrace2: Running on 19 subsample(s) approximately of length 10000
cytotrace2: Started running on subsample(s). This will take a few minutes.
cytotrace2: Started preprocessing.
14102 input genes mapped to model genes.
cytotrace2: Started prediction.
This section will run using  5 / 32 core(s).
cytotrace2: Started postprocessing.
cytotrace2: Running with fast mode (subsamples are processed in parallel)
This section will run on 10 sub-sample(s) of approximately 1004 cells each using 10 / 32 core(s).
cytotrace2: Started preprocessing.
14102 input genes mapped to model genes.
cytotrace2: Started prediction.
This section will run using  5 / 32 core(s).
Error in seq.default(from = 1 + i, to = ncol(all_preds_out), by = 6) : 
  wrong sign in 'by' argument
In addition: Warning messages:
1: In parallel::mclapply(parameter_dict, mc.cores = ncores, function(model_dict) { :
  scheduled cores 1, 2, 3, 5 did not deliver results, all values of the jobs will be affected
2: In parallel::mclapply(parameter_dict, mc.cores = ncores, function(model_dict) { :
  scheduled cores 1, 2, 3, 4, 5 did not deliver results, all values of the jobs will be affected
@savagyan00
Copy link
Contributor

Hello and sorry for the delay in our response,

It is not very clear from the error message where the issue comes from. If you'd like you can share your data with us over email ([email protected]) and we'll be happy to troubleshoot and find the root cause. Alternatively, you could try running the new release version of CytoTRACE 2 (v1.1.0) and see if the issue persists.

Please let us know how you would like to proceed.

@koetjen
Copy link
Author

koetjen commented Jan 23, 2025

It looks like this error gets thrown when the preceding step generates an all_preds_out that is empty.

@koetjen koetjen closed this as completed Jan 23, 2025
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

2 participants