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

Cleanup utility functions #164

Merged
merged 15 commits into from
Nov 28, 2022
Merged

Conversation

xtrojak
Copy link

@xtrojak xtrojak commented Nov 24, 2022

This PR is part of #159 with focus on removing obsolete functions and moving some utility functions to a more suitable locations. In particular, it covers the following changes:

  • Remove obsolete functions (or even files)
    • make.known.tables
    • create_feature_sample_table
    • plot_rt_histograms
    • sort_samples_by_acquisition_number
  • Move
    • recover_weaker to two.step.hybrid.R
    • as_wide_aligned_table to two.step.hybrid.R
    • extract_pattern_colnames to two.ste.hybrid.R
    • long_to_wide_feature_table (and vice versa) to two.step.hybrid.R
    • pivot_feature_values to two.step.hybrid.R
    • recover_weaker_signals to two.step.hybrid.R
    • find_mz_match to hybrid.R
    • as_feature_crosstab to two.step.hybrid.R
  • Mark two.step.hybrid.R as obsolete

Comment on lines -3 to -6
function(metabolite.table, adduct.table, ion.mode="+")
### the metabolite.table should be a four-column data frame. The columns should be chemical formula, HMDB_ID, KEGG ID, and monoisotopic mass
### The two IDs can be substitute by others
### the adduct table should be a four-column data frame. The columns are adduct type, mass divider (absolute value of the number of charges), mass addition (after dividing), and charge of the ion form.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality is actually also in some way implemented in recetox-xmsannotator - is it really not needed in this repository? Was it for sure not somehow used in the hybrid?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's not used at all.

@hechth hechth merged commit 9e9fc64 into RECETOX:master Nov 28, 2022
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.

3 participants