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

Error with egh fit on get_peaks #35

Open
paxhl5 opened this issue Dec 10, 2024 · 1 comment
Open

Error with egh fit on get_peaks #35

paxhl5 opened this issue Dec 10, 2024 · 1 comment

Comments

@paxhl5
Copy link

paxhl5 commented Dec 10, 2024

Hi,

I've been going through the starting workflow using my own data. When trying to detect peaks with the egh fit using the code below:

# find and integrate peaks using gaussian peak fitting
pks_gauss <- get_peaks(warp.254, sd.max = 40, fit = "gaussian")
 
# find and integrate peaks using exponential-gaussian hybrid model
pks_egh <- get_peaks(warp.254, sd.max = 40, fit = "egh")
 
# find and integrate peaks without modeling peak shape
pks_raw <- get_peaks(warp.254, sd.max = 100, fit = "raw")

This error appears for pks_egh:
Error in [<-.data.frame(*tmp*, , c("rt", "start", "end"), value = list( :
replacement element 1 has 186 rows, need 187

Both the standard gaussian and the raw functions work fine.

Thanks for any help with this!

@ethanbass
Copy link
Owner

Hi,
Thanks for reporting this. I will likely need an example file to help track down the issue? Do you think you could figure identify one of the chromatograms that is triggering the problem and share it with me (either here, or at my email ethanbass@gmail.com).
Thanks!
Ethan

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