filter_unshared: filter_unshared

Description Usage Arguments Value Examples

View source: R/metaprotr_filter_unshared.R

Description

Keeps the elements from a "spectral_count_object" that are specific to one level of a provided explanatory variable. This variable MUST correspond to the name of ONE column of the dataframe "metadata" (eg. conditions or samples). This function allows to identify the elements that are specific to one condition or one sample.

Usage

1
filter_unshared(spectral_count_object, metadata_feature)

Arguments

spectral_count_object

List containing dataframes with proteomics elements whose abundance is expressed as spectral counts and are organized by peptides, subgroups, groups or taxonomic levels. The format of this object is similar to that generated from the functions "getsc_specific" and "crumble_taxonomy".

metadata_feature

Character indicating the name of one explanatory variable (ONE column name) of the dataframe "metadata".

Value

A list defined as "spectral_count_object" with the specific elements per sample or condition, having at least one spectra.

Examples

1
2
3
4
5
6
data(fecal_waters)
data(species_fw)

specific_elements_per_sample <- filter_unshared(fecal_waters, "SampleID")

specific_elements_per_condition <- filter_unshared(species_fw, "Condition")

metaprotr documentation built on Feb. 5, 2021, 9:06 a.m.