datacamp / datacamp/datacamp-light
Pbs with Normalisation / Error in abs(data[data != 0]) non-numeric argument to mathematical function
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 366
- Avg merge
- 2h 17m
- Merged PRs (30d)
- 2
Description
Hi,
I tried to run the code of the data camp, the first step worked well but for the normalisation I had the error:
Error in abs(data[data != 0]) :
non-numeric argument to mathematical function
library("MetaboAnalystR")
mSet<-InitDataObjects("conc", "stat", FALSE)
mSet<-Read.TextData(mSet, "http://www.metaboanalyst.ca/MetaboAnalyst/resources/data/human_cachexia.csv", "rowu", "disc");
mSet<-SanityCheckData(mSet);
mSet<-ReplaceMin(mSet);
mSet<-Normalization(mSet, "NULL", "LogNorm", "MeanCenter", "S10T0", ratio=FALSE, ratioNum=20)
Error in abs(data[data != 0]) :
non-numeric argument to mathematical function
Thank you,
Virgg
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the MetaboAnalystR example using the human_cachexia.csv URL and the listed InitDataObjects, Read.TextData, SanityCheckData, ReplaceMin, and Normalization calls. Check whether the error belongs to datacamp-light or the external MetaboAnalystR workflow; done means identifying a repository-scoped failure or documenting that it is external.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100