Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in result_increasedoe function #5

Open
adelabriere opened this issue Aug 4, 2021 · 2 comments
Open

bug in result_increasedoe function #5

adelabriere opened this issue Aug 4, 2021 · 2 comments

Comments

@adelabriere
Copy link

Dear OptiLCMS developpers,

I was trying to use MetaboAnalystR package and encountered a something which is obviously a bug. I was running the PerformParamsOptimization function and encountered the following error message :

Defining peak areas for filling-in....Requesting 44 peaks from A_PSS_0_110.mzXML ... got 42.
Requesting 49 peaks from A_PSS_0_144.mzXML ... got 49.
Requesting 43 peaks from A_PSS_0_178.mzXML ... got 41.
. OK, Done!
Round 1 Finished !
Model Parsing...
Model Parsing Done !

Error: $ operator is invalid for atomic vectors

I looked at the incriminated funtion and something seems clearly off in the code:

resultIncreased_doe <- function (history) 
{
  index = length(history)
  if (**history[[index]]$PPS$PPS** == 0 & index == 1) {
    MessageOutput(paste("Error: No isotopes detected in your \n                        Intensive ROI of your data, Please manually customize the parameter!"), 
      "\n")
    return(NULL)
  }

It seems to me that the part in bold should definitely not be history[[index]]$PPS$PPS but history[[index]]$PPS. I guess it is a bug.

Would you be kind enough to fix it ?

@adelabriere adelabriere changed the title Critical bug in result_increasedoe function bug in result_increasedoe function Aug 5, 2021
@bwyu-dayspring
Copy link

I'm also getting a similar error running PerformParamsOptimization:

`
Round:1
DoE Running Begin...
Done!
Round 1 Finished !
Model Parsing...
Gaussian peak ratio (%): 66.4.
Model Parsing Done !

Round:2
DoE Running Begin...
Done!
Round 2 Finished !
Model Parsing...
Gaussian peak ratio (%): 66.4.
Model Parsing Done !

Round:3
DoE Running Begin...
Done!
Round 3 Finished !
Model Parsing...
Model Parsing Done !

Error: $ operator is invalid for atomic vectors
`
not sure if the line referenced in the previous comment is the offending line or whether this is due to something in my data?

@adelabriere
Copy link
Author

Hi, @bwyu-dayspring. Just for your information. I contacted the developpers by emails and they are having a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants