Closed ShawnWx2019 closed 2 years ago
Yes. Your understanding is correct.
You can try bracket the code, and the algorithm may still work. However, be careful with overfitting.
Thanks for your reply, I tried the changed code, and the result was also in line with expectations.
Hi Dr. Fan,
Thanks for developing SERRF algorithm, It helps me effectively eliminate systematic errors in my untargeted metabolomics project. I am very interested in SERRF algorithm, so I have studied your code carefully. But the usage of any function make me confused in app.R line 720
any(table(p_qc$batch)
always returnsTRUE
, I guess you may have accidentally written<7
outside the brackets.If we move it into brackets, I think this code means that if the number of QC samples in any of the batches is less than
<7
, ratio will select 0.7, otherwise select 0.8.I'm still a rookie for R programming, and I'm not sure whether I understand your code correctly.
Looking forward for your reply.
Shawn