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

STAGER error: subscript out of bounds #14

Open
jma1991 opened this issue Dec 11, 2023 · 2 comments
Open

STAGER error: subscript out of bounds #14

jma1991 opened this issue Dec 11, 2023 · 2 comments

Comments

@jma1991
Copy link

jma1991 commented Dec 11, 2023

Hello,

We recently integrated the stageR package into the nf-core/rnasplice workflow. However, a user has reported a technical issue that we're struggling to resolve. When the user sets the alpha parameter in the stageWiseAdjustment function to the standard value of 0.05, they receive a 'subscript out of bounds' error.

Error in `[<-`(`*tmp*`, idCon, 1, value = unlist(txLevelAdjustments)) : 
  subscript out of bounds

Interestingly, adjusting alpha to 1 triggers a different error.

Error in FUN(X[[i]], ...) : 
  Some genes have only one transcript; this is incompatible with DTU correction. Remove these transcripts.

We're seeking guidance on how to address this issue. The user has shared their input files for reference, and the relevant code is located in the run_stager.R script, which you can find in the bin folder of our GitHub repository.

Thanks,
James

@koenvandenberge
Copy link
Member

Hi @jma1991

Thank you for reporting. I will take some time to look into this in the coming days.

@SethMagnusJarvis
Copy link

I am also having this error. It's when using DRIMSeq though. Someone previously said that it was due to NA values but it would be fixed in the next patch. Is there a quick fix e.g. an easy way to remove NA values so it doesn't throw errors?

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

3 participants