CMSclassifier for colorectal cancer dataset
Could someone give me suggestions on how I should prep my data to use it with CMS classifier, R package? I am currently working on subtyping colorectal cancer datasets using CMS and CRIS classifiers, R package. I am constantly running into errors everytime I run the command
CMSdata <- probesToEntrez(data, data_gpl, entrez = "Entrez.Gene")
Error in rowsum.data.frame(data, partition, na.rm = T) :non-numeric data frame in rowsum
Any help wth this, would honestly be appreciated. Much thanks.
• 4,354 views
•
link
0 answers
No answers yet.
Log in to answer this question.
can u post what is there inside data and data_gpl
since its row sum error, i am assuming you have non numeric entries in data. How did you import the data?
Make sure data should be a dataframe with log2_scaled GEP data values, samples in columns, genes in rows, rownames corresponding to Entrez IDs.
The entrez id should be row names, not first column,
Hi! thanks so much for the quick response.I used the following code to import the data
I get the following on using head(data) and head(data_gpl):
Your first column in data contains id, thats why u were getting error. To resolve this try this
Let me know if this doesn't solves
Woah! everything works perfectly now. I've been struggling with this for the past few days.
Honestly, appreciate your help. Thank you so much.
You can upvote the answer if you find useful. Also mark the question as resolved.
You can mark the query as resolved. Thanks
Hello paul.elliot1994!
We believe that this post does not fit the main topic of this site.
Resolved
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!