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 when calculating GSVA based on UCell method #28

Open
YuxinYin0906 opened this issue Aug 14, 2024 · 3 comments
Open

Error when calculating GSVA based on UCell method #28

YuxinYin0906 opened this issue Aug 14, 2024 · 3 comments

Comments

@YuxinYin0906
Copy link

YuxinYin0906 commented Aug 14, 2024

Hi,

Thank you for making this amazing package! It has been a life saver for me.
However, I ran into a problem when trying to calculate gsva results using the method "UCell".
` #annotation
hsko<-buildAnnot(species="mouse",keytype="SYMBOL",anntype="GO")

#result based on ssgsea
res<-scgsva(scRNA_all_int,hsko,method="UCell") ## or use UCell`

The error message is as followed:

"Error in calculate_Uscore(m, features = features, maxRank = maxRank, chunk.size = chunk.size, :
One or more signatures contain more genes than maxRank parameter.
Increase maxRank parameter or make shorter signatures
Calls: scgsva".

I tried to change the anntype to "KEGG" and the function works smoothly, so I guess it's due to the fact that GO is a more enriched dataset than KEGG.
I understand that this might be more related to the UCell package, but I wonder if there's any way we could set the parameter for maxrank in the scgsva() function.

@guokai8
Copy link
Owner

guokai8 commented Sep 4, 2024

Hi @YuxinYin0906,
I will take a look at it and try to fix it soon. I guess you are right.
K

@merckey
Copy link

merckey commented Oct 6, 2024

I think you can add one additional parameter from UCell maxRank.

res<-scgsva(scRNA_all_int,hsko,method="UCell", maxRank = 3000)

@guokai8
Copy link
Owner

guokai8 commented Oct 7, 2024

@merckey
Yes. I will add this, and you can directly add the "maxRank" when you run it now.
Thanks!
K

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