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

Convert carbon markers RT in minutes to match library spectral library #727

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lfnothias
Copy link
Member

@lfnothias lfnothias commented May 11, 2021

  1. Fix the RT units
    The documentation indicates the carbon marker file must be in minutes:
    See https://ccms-ucsd.github.io/GNPSDocumentation/gc-ms-library-molecular-network/
    But the retention index calculation requires retention time in seconds.

  2. Correct the Kovatz retention index formula from
    Original_Annotation_KI_calculated = 100.0*(n+(N-n)*((rt-tr_n))/(tr_N -tr_n))
    to
    Original_Annotation_KI_calculated = 100.0*(n+(N-n)*((math.log(rt)-math.log(tr_n))/(math.log(tr_N) - math.log(tr_n))))

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

Successfully merging this pull request may close these issues.

1 participant