Skip to contents

Constructor methods for creating an object of S4 class Assignment.

Usage

assignment(feature_data, parameters, ...)

# S4 method for tbl_df,AssignmentParameters
assignment(feature_data, parameters)

# S4 method for AnalysisData,AssignmentParameters
assignment(feature_data, parameters)

# S4 method for Analysis,AssignmentParameters
assignment(feature_data, parameters, type = c("pre-treated", "raw"))

Arguments

feature_data

a tibble or an object of S4 class AnalysisData or Analysis containing the feature intensity matrix of m/z for which to assign molecular formulas. See details.

parameters

an S4 object of class AssignmentParamters containing the parameters for molecular formula assignment

...

arguments to pass to the relevant method

type

type pre-treated or raw data on which to perform assignment when argument feature_data is of class Analysis

Value

An object of S4 class Assignment.

Examples

mf_assignments <- assignment(feature_data,assignmentParameters('FIE-HRMS'))
mf_assignments
#> 
#> assignments v1.0.2 
#> Assignment: 
#> 	 Features:		 10 
#> 	 Correlations:		 0 
#> 	 Relationships:		 0 
#>