extract-methods: Extract Elements

Description Usage Arguments Details Value Examples

Description

Extract elements from FastqcDataList Object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'FastqcDataList,numeric,missing,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'FastqcDataList,character,missing,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'FastqcDataList,logical,missing,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'FastqcDataList,ANY,missing,ANY'
x[i, j, ..., drop = TRUE]

Arguments

x

A FastqcDataList

i

character, logical or integer vector

j

not used

...

not used

drop

not used

Details

Extract elements in a consistent manner with R conventions

Value

Will return a subset of the original object following the standard rules for subsetting objects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Get the files included with the package
packageDir <- system.file("extdata", package = "ngsReports")
fl <- list.files(packageDir, pattern = "fastqc.zip", full.names = TRUE)

# Load the FASTQC data as a FastqcDataList object
fdl <- FastqcDataList(fl)

# Subsetting using the standard methods
fdl[1]
fdl[[1]]

ngsReports documentation built on Nov. 23, 2020, 2:01 a.m.