# LCMS - groupChromPeaks error

**URL:** <https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360>\
**Category:** Workflow4Metabolomics\
**Created:** [Mai 30, 2024, 12:36 UTC](https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360 "2024-05-30T12:36:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmekuli](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/rmekuli/32/1418_2.png) [@rmekuli](https://community.france-bioinformatique.fr/u/rmekuli)\
**Post date:** [Mai 30, 2024, 12:36 UTC](https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360/1 "2024-05-30T12:36:56Z")

</div>

Hello,

I am using the LCMS preprocessing workflow and am having problems with groupChromPeaks. I have a dataset with samples, blanks and pools as classes (second column of metadata). Running groupChromPeaks using these classes and parameters below works well:

Method to use for grouping: PeakDensity  
Bandwidth: 5.0  
Minimum fraction of samples: 0.3  
Minimum number of samples: 32 (blank+1)  
Width of overlapping m/z slices: 0.001  
Maximum number of groups to identify in a single m/z slice: 100  
Reported intensity values: into

I wanted to use different classes. This time I used the treatment column as the class (2 treatments in total). I ran into the error:

Fatal error: Exit code 1 ()  
Processing 157986 mz slices ... Error in if (!any(tt/sampleGroupTable[names(tt)] \>= minFraction & tt \>= :  
missing value where TRUE/FALSE needed  
Calls: groupChromPeaks ... .local -\> do\_groupChromPeaks\_density -\> .group\_peaks\_density  
Execution halted

Initially, I used these parameters:

Method to use for grouping: PeakDensity  
Bandwidth: 5.0  
Minimum fraction of samples: 0.5  
Minimum number of samples: 8  
Width of overlapping m/z slices: 0.01  
Maximum number of groups to identify in a single m/z slice: 100  
Reported intensity values: into

I have tried playing with these parameters a bit (increasing and decreasing bw and minFraction) but I still get the same error. For minimum number of samples, I put the number of samples of the class that has the lower number of samples.

Do you have any suggestion on what else I can try?

Clarification: For the pool and blank samples, I left the sampleClass empty, could this be causing the problem?

Thank you,  
Rina

---

<div class="post-metadata">

**Author:** ![melpetera](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/melpetera/32/247_2.png) [@melpetera](https://community.france-bioinformatique.fr/u/melpetera)\
**Post date:** [Mai 30, 2024, 2:29 UTC](https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360/2 "2024-05-30T14:29:58Z")

</div>

Hi Rina,

Since your design includes pools and blanks, how did you handle your class column once using the treatment groups? Did you leave the class column with empty cells for the pools' and blanks' lines in the metadata file? If it is the case, you may consider filling these lines with an approprite additional class (my advice would be to keep considering pools and blanks in separate classes but depending on your objectives you might also gather the two of them in a single class).

Mélanie

---

<div class="post-metadata">

**Author:** ![rmekuli](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/rmekuli/32/1418_2.png) [@rmekuli](https://community.france-bioinformatique.fr/u/rmekuli)\
**Post date:** [Mai 30, 2024, 3:10 UTC](https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360/3 "2024-05-30T15:10:06Z")

</div>

That was indeed my mistake. Thanks for the quick response!

---

<div class="post-metadata">

**Author:** ![melpetera](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/melpetera/32/247_2.png) [@melpetera](https://community.france-bioinformatique.fr/u/melpetera)\
**Post date:** [Mai 31, 2024, 9:22 UTC](https://community.france-bioinformatique.fr/t/lcms-groupchrompeaks-error/4360/4 "2024-05-31T09:22:29Z")

</div>

No problem 🙂

Have a nice trip on W4M!

Mélanie
