-
Notifications
You must be signed in to change notification settings - Fork 8
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 with gs_scores() #49
Comments
Hi, as you said, since I cannot access those objects it is pretty hard to make a guess. One thing you could check with running the function in debug mode: Are the names of the genes correctly carried out in the computations? |
Ah I should have added that all other graphs and outputs work as expected. I am able to create the enhancement table, mds plot, the dendro plot, volcano plot, ect so I think the genes are being correctly carried out in the computations. Can you clarify what you mean by debug mode? Is there any way for me to add objects or code to the open issue? Sory I'm not very github savvy. |
In debug mode, that would simply mean to call
Maybe it is some kind of edge case we could not consider on the "standard" datasets we used while developing this functionality. |
Hi, Thanks, |
Likely an NA value for some of the members for that vector? |
Hello there, I ran into the same problem yesterday. I dug into the gs_scores() function and believe to have found a likely cause.
The expected case here is for mydata_z[thisset_members_ids, ] to return a dataframe, which is the case, when there is >1 element in thisset_members_ids. Then, colMeans() will work. My fix:
As testing data you can use the GeneTonic macrophage example data, grab one row of res_enrich and replace the gs_genes field with just a single gene from the annotation.
I hope this helps! |
Good catch. Fix is coming in soon! |
Hello! I am having issues creating the heatmap that comes with the gs_scoresheat() function and this is because when I run gs_scores() I get the error:
Error in colMeans(thisset_zs) :
'x' must be an array of at least two dimensions
here is the code I'm using:
vst_macrophage <- varianceStabilizingTransformation(kid_dds_trt)
scores_mat <- gs_scores(
se = vst_macrophage,
res_de = kid_res_trt,
res_enrich = res_enrich,
annotation_obj = anno_df
)
gs_scoresheat(scores_mat,
n_gs = 30)
I know this is not the most reproducible problem as you don't have any of the other objects so let me know what else you might need!! Thank you!
The text was updated successfully, but these errors were encountered: