cgplab / RadAR

A tool to perform comprehensive analysis of high-dimensional radiomic datasets
MIT License
14 stars 5 forks source link

problem with pre-processing (normalization) #8

Open isglobal-brge opened 2 years ago

isglobal-brge commented 2 years ago

I got this error:

> library(RadAR)
> lung1_rdr <- normalize_feature_values(rdr = lung1_rdr, 
+                                 which_data = "scaled")
Error in t.default(data) : argument is not a matrix

Do you know what I am doing wrong?

matteobenelli commented 2 years ago

Hi, have you scaled data first with

lung1_rdr <- scale_feature_values(lung1_rdr)

isglobal-brge commented 2 years ago

Thanks, this was the problem.. The error message is not useful at all ... I would recommend you to check whether the input object is the required one. I know this is more coding, but it will help end users

matteobenelli commented 2 years ago

Agree, will be added soon.