Closed jettmcp closed 5 years ago
Hi. Could you first check whether the included example data works as expected by running
library(CMScaller)
example("CMScaller")
You should see two plots and get (the head of ) a data.frame for the resulting predictions. If that works, I would guess there's something off in the input data. Make sure that the data include coding genes and it's indeed Entrez ids.
The included templates.CMS
data.frame holds the gene symbols and Entrez ids used for making the predictions. You could check how many of the relevant genes are included in your count data by running
## assuming you have loaded your #counts# data matrix
table(rownames(counts) %in% templates.CMS$probe, useNA="always")
Please let me know if you're still not able to sort it out!
Thanks for the quick response. The example works fine and produces nice results. table(rownames(counts) %in% templates.CMS$probe, useNA="always") gave me a handle on the problem and I was able to sort it out. Had made an error in pulling the entrez Ids out of the file (TCGA ran-seq data). I was able in the end to run the TCGA data - with some massaging. Thanks again. John
Great! Best of luck with your research. Peter
Hi,
I am getting the error below and can't figure out why. It does seem that I have entrez style Ids in the counts file. I wasn't sure how to check what that the template had in it. Also, in the vignette, there is mention of setting a parameter to use other gene identifiers but it was unclear to me how to do that.
Thanks
John