datacamp / datacamp/datacamp-light

Pbs with Normalisation / Error in abs(data[data != 0]) non-numeric argument to mathematical function

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.