Package: metamorphr 0.4.1

Yannik Schermer

metamorphr: Tidy and Streamlined Metabolomics Data Workflows

Facilitate tasks typically encountered during metabolomics data analysis including data import, filtering, missing value imputation (Stacklies et al. (2007) <doi:10.1093/bioinformatics/btm069>, Stekhoven et al. (2012) <doi:10.1093/bioinformatics/btr597>, Tibshirani et al. (2017) <doi:10.18129/B9.BIOC.IMPUTE>, Troyanskaya et al. (2001) <doi:10.1093/bioinformatics/17.6.520>), normalization (Bolstad et al. (2003) <doi:10.1093/bioinformatics/19.2.185>, Dieterle et al. (2006) <doi:10.1021/ac051632c>, Zhao et al. (2020) <doi:10.1038/s41598-020-72664-6>) transformation, centering and scaling (Van Den Berg et al. (2006) <doi:10.1186/1471-2164-7-142>) as well as statistical tests and plotting. 'metamorphr' introduces a tidy (Wickham et al. (2019) <doi:10.21105/joss.01686>) format for metabolomics data and is designed to make it easier to build elaborate analysis workflows and to integrate them with 'tidyverse' packages including 'dplyr' and 'ggplot2'.

Authors:Yannik Schermer [aut, cre, cph]

metamorphr_0.4.1.tar.gz
metamorphr_0.4.1.tar.gz(r-4.7-any)metamorphr_0.4.1.tar.gz(r-4.6-any)
metamorphr_0.4.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
metamorphr/json (API)
NEWS

# Install 'metamorphr' in R:
install.packages('metamorphr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yasche/metamorphr/issues

Pkgdown/docs site:https://yasche.github.io

Datasets:
  • atoms - A tibble containing the NIST standard atomic weights
  • toy_metaboscape - A small toy data set created from a feature table in MetaboScape style
  • toy_metaboscape_metadata - Sample metadata for the fictional dataset 'toy_metaboscape'
  • toy_mgf - A small toy data set containing MSn spectra

On CRAN:

Conda:

3.60 score 5 scripts 170 downloads 62 exports 62 dependencies

Last updated from:594805f524. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK190
source / vignettesOK303
linux-release-x86_64OK224
wasm-releaseOK164

Exports:%>%calc_kmcalc_kmdcalc_neutral_losscalc_nominal_kmcollapse_maxcollapse_meancollapse_mediancollapse_minconvert_from_matrixconvert_from_widecreate_metadata_skeletonfilter_blankfilter_cvfilter_global_mvfilter_grouped_mvfilter_msnfilter_mzfilter_neutral_lossformula_to_massimpute_bpcaimpute_global_lowestimpute_knnimpute_llsimpute_lodimpute_meanimpute_medianimpute_minimpute_nipalsimpute_ppcaimpute_rfimpute_svdimpute_user_valuejoin_metadatamsn_calc_nlmsn_scalenormalize_cyclic_loessnormalize_factornormalize_mediannormalize_pqnnormalize_quantile_allnormalize_quantile_batchnormalize_quantile_groupnormalize_quantile_smoothnormalize_refnormalize_sumplot_pcaplot_volcanoread_featuretableread_featuretable_mzmineread_mgfremove_empty_colsscale_autoscale_centerscale_levelscale_paretoscale_rangescale_vastscale_vast_groupedsummary_featuretabletransform_logtransform_power

Dependencies:backportsBiobaseBiocGenericsbitbit64broomclicliprcodetoolscpp11crayondigestdoRNGdplyrfarverforeachgenericsggplot2gluegtablehmsimputeisobanditeratorsitertoolslabelinglatticelifecyclemagrittrMASSMatrixmissForestpcaMethodspillarpkgconfigprettyunitsprogresspurrrR6randomForestrangerrbibutilsRColorBrewerRcppRcppEigenRdpackreadrrlangrngtoolsS7scalesstringistringrtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Conjugate Screening

Rendered fromconjugate-screening.Rmdusingknitr::rmarkdownon Jun 10 2026.

Last update: 2026-03-04
Started: 2025-09-01

metamorphr

Rendered frommetamorphr.Rmdusingknitr::rmarkdownon Jun 10 2026.

Last update: 2025-09-01
Started: 2025-09-01

Readme and manuals

Help Manual

Help pageTopics
A tibble containing the NIST standard atomic weightsatoms
Calculate the Kendrick masscalc_km
Calculate the Kendrick mass defect (KMD)calc_kmd
Calculate neutral losses from precursor ion mass and fragment ion massescalc_neutral_loss
Calculate the nominal Kendrick masscalc_nominal_km
Collapse intensities of technical replicates by calculating their maximumcollapse_max
Collapse intensities of technical replicates by calculating their meancollapse_mean
Collapse intensities of technical replicates by calculating their mediancollapse_median
Collapse intensities of technical replicates by calculating their minimumcollapse_min
Convert a wide matrix to a tidy tibbleconvert_from_matrix
Convert a wide feature table to a tidy tibbleconvert_from_wide
Create a blank metadata skeletoncreate_metadata_skeleton
Filter Features based on their occurrence in blank samplesfilter_blank
Filter Features based on their coefficient of variationfilter_cv
Filter Features based on the absolute number or fraction of samples it was found infilter_global_mv
Group-based feature filteringfilter_grouped_mv
Filter Features based on occurrence of fragment ionsfilter_msn
Filter Features based on their mass-to-charge ratiosfilter_mz
Filter Features based on occurrence of neutral lossesfilter_neutral_loss
Calculate the monoisotopic mass from a given formulaformula_to_mass
Impute missing values using Bayesian PCAimpute_bpca
Impute missing values by replacing them with the lowest observed intensity (global)impute_global_lowest
Impute missing values using nearest neighbor averagingimpute_knn
Impute missing values using Local Least Squares (LLS)impute_lls
Impute missing values by replacing them with the Feature 'Limit of Detection'impute_lod
Impute missing values by replacing them with the Feature meanimpute_mean
Impute missing values by replacing them with the Feature medianimpute_median
Impute missing values by replacing them with the Feature minimumimpute_min
Impute missing values using NIPALS PCAimpute_nipals
Impute missing values using Probabilistic PCAimpute_ppca
Impute missing values using random forestimpute_rf
Impute missing values using Singular Value Decomposition (SVD)impute_svd
Impute missing values by replacing them with a user-provided valueimpute_user_value
Join a featuretable and sample metadatajoin_metadata
Calculate neutral losses from precursor ion mass and fragment ion massesmsn_calc_nl
Scale intensities in MSn spectra to the highest value within each spectrummsn_scale
Normalize intensities across samples using cyclic LOESS normalizationnormalize_cyclic_loess
Normalize intensities across samples using a normalization factornormalize_factor
Normalize intensities across samples by dividing by the sample mediannormalize_median
Normalize intensities across samples using a Probabilistic Quotient Normalization (PQN)normalize_pqn
Normalize intensities across samples using standard Quantile Normalizationnormalize_quantile_all
Normalize intensities across samples using grouped Quantile Normalization with multiple batchesnormalize_quantile_batch
Normalize intensities across samples using grouped Quantile Normalizationnormalize_quantile_group
Normalize intensities across samples using smooth Quantile Normalization (qsmooth)normalize_quantile_smooth
Normalize intensities across samples using a reference featurenormalize_ref
Normalize intensities across samples by dividing by the sample sumnormalize_sum
Draws a scores or loadings plot or performs calculations necessary to draw them manuallyplot_pca
Draws a Volcano Plot or performs calculations necessary to draw one manuallyplot_volcano
Read a feature table into a tidy tibbleread_featuretable
Read a 'full_feature_table' from 'mzmine' into a tidy tibbleread_featuretable_mzmine
Read a MGF file into a tidy tibbleread_mgf
Remove empty columns from a tibble or data frameremove_empty_cols
Scale intensities of features using autoscalescale_auto
Center intensities of features around zeroscale_center
Scale intensities of features using level scalingscale_level
Scale intensities of features using Pareto scalingscale_pareto
Scale intensities of features using range scalingscale_range
Scale intensities of features using vast scalingscale_vast
Scale intensities of features using grouped vast scalingscale_vast_grouped
General information about a feature table and sample-wise summarysummary_featuretable
A small toy data set created from a feature table in MetaboScape styletoy_metaboscape
Sample metadata for the fictional dataset 'toy_metaboscape'toy_metaboscape_metadata
A small toy data set containing MSn spectratoy_mgf
Transforms the intensities by calculating their logtransform_log
Transforms the intensities by calculating their _n_th roottransform_power