Skip to contents

Get and set methods for the FilePathInput S4 class.

Usage

filePaths(x)

# S4 method for FilePathInput
filePaths(x)

filePaths(x) <- value

# S4 method for FilePathInput
filePaths(x) <- value

sampleInformation(x)

# S4 method for FilePathInput
sampleInformation(x)

sampleInformation(x) <- value

# S4 method for FilePathInput
sampleInformation(x) <- value

Arguments

x

S4 object of class FilePathInput

value

value to set

Examples

file_paths <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')
sample_information <- metaboData::runinfo('FIE-HRMS','BdistachyonEcotypes')

workflow_input <- inputFilePath(file_paths,sample_information)

## Return the input file paths
if (FALSE) {
filePaths(workflow_input)
}
## Set the input file paths
filePaths(workflow_input) <- c('a_file.mzML')

## Return the sample information 
sampleInformation(workflow_input)
#> # A tibble: 68 × 7
#>    fileOrder injOrder fileName   batch block name    class
#>        <dbl>    <dbl> <chr>      <dbl> <dbl> <chr>   <chr>
#>  1         1       64 1.mzML.gz      1     5 ABR1_1  ABR1 
#>  2         2       40 10.mzML.gz     1     3 ABR1_10 ABR1 
#>  3         3       52 11.mzML.gz     1     4 ABR1_11 ABR1 
#>  4         4       67 12.mzML.gz     1     5 ABR1_12 ABR1 
#>  5         5       32 13.mzML.gz     1     3 ABR1_13 ABR1 
#>  6         6       53 14.mzML.gz     1     4 ABR1_14 ABR1 
#>  7         7        4 15.mzML.gz     1     1 ABR1_15 ABR1 
#>  8         8       34 16.mzML.gz     1     3 ABR5_1  ABR5 
#>  9         9       38 17.mzML.gz     1     3 ABR5_2  ABR5 
#> 10        10       59 18.mzML.gz     1     5 ABR5_3  ABR5 
#> # ℹ 58 more rows

## Set the sample information
sampleInformation(workflow_input) <- tibble::tibble(fileName = 'a_file.mzML')