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

Add setters for PandasData and MatchMSData #7

Merged
merged 10 commits into from
Apr 26, 2021
Merged

Conversation

maximskorik
Copy link
Member

@maximskorik maximskorik commented Apr 15, 2021

#4
PandasData:

  • Changed _set_rt_index() to _set_rt_index_n_position(). Besides fetching RT column name it now fetches its numerical index.
  • Changed getter for RIs retention_indices() to return column with RIs if exists.
  • Implemented setter for retention_indices() - after comparing RIs list/tuple length to length of features puts RIs in a new column next to RTs.

MatchMSData:

  • Implemented setter for retention_indices() - after after comparing RIs list/tuple length to length of features adds RI to metadata attribute of Spectra object. After exporting metadata back to .msp RI will appear as the last item of metadata. I'd like to put it after RT, but don't have an idea yet how to do that without cryptic code like this.

Closes #4

@maximskorik maximskorik changed the title Issue4 Add getters to PandasData and MatchMSData Apr 15, 2021
@maximskorik maximskorik changed the title Add getters to PandasData and MatchMSData Add getters for PandasData and MatchMSData Apr 15, 2021
@hechth hechth changed the title Add getters for PandasData and MatchMSData Add setters for PandasData and MatchMSData Apr 16, 2021
RIAssigner/data/MatchMSData.py Outdated Show resolved Hide resolved
RIAssigner/data/PandasData.py Outdated Show resolved Hide resolved
RIAssigner/data/PandasData.py Outdated Show resolved Hide resolved
RIAssigner/data/PandasData.py Outdated Show resolved Hide resolved
@maximskorik maximskorik marked this pull request as draft April 19, 2021 15:19
@maximskorik maximskorik marked this pull request as ready for review April 22, 2021 13:40
@maximskorik maximskorik requested a review from hechth April 22, 2021 13:42
@hechth hechth merged commit 4da7d43 into RECETOX:main Apr 26, 2021
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.

Implement retention index setters for Data realizations
2 participants