Methods
Public methods
Method new()
initialize
Usage
ProteinAnnotation\$new(
lfqdata,
row_annot = NULL,
description = NULL,
cleaned_ids = NULL,
full_id = NULL,
exp_nr_children = "nr_peptides",
pattern_contaminants = NULL,
pattern_decoys = NULL
)
Arguments
-
lfqdata
-
data frame from
setup_analysis
-
row_annot
-
data frame with row annotation. Must have columns matching
config$hierarchy_keys_depth()
-
description
-
name of column with description
-
cleaned_ids
-
names of columns with cleaned Ids
-
full_id
-
column with full protein ID
-
exp_nr_children
-
column with the number of children
-
pattern_contaminants
-
pattern_contaminants
-
pattern_decoys
-
pattern_decoys
Method get_rev_pattern()
configured decoy pattern, or NULL when none was set
Usage
ProteinAnnotation\$get_rev_pattern()
Method annotate_contaminants()
annotate contaminants
Sets the logical CON column via the shared prolfqua::is_contaminant detector (configured pattern unioned with the built-in defaults; an empty / NULL / “a^” pattern falls back to the defaults only – never grepl(““, x), which would flag every protein). This is the same detector the quant layer uses.
Usage
ProteinAnnotation\$annotate_contaminants()
Method get_summary()
get summary (contaminants only; decoys are removed at construction)
Usage
ProteinAnnotation\$get_summary()
Method nr_clean()
number of proteins kept after clean()
Usage
ProteinAnnotation\$nr_clean(contaminants = TRUE)
Arguments
-
contaminants
-
remove contaminants
Method clean()
remove contaminants (always) and, when a decoy pattern was configured, decoy proteins from the annotation
Usage
ProteinAnnotation\$clean(contaminants = TRUE)
Arguments
-
contaminants
-
remove contaminants
Method filter_by_nr_children()
filter by number children
Usage
ProteinAnnotation\$filter_by_nr_children(exp_nr_children = 2)
Arguments
-
exp_nr_children
-
minimum number of children required
Method clone()
The objects of this class are cloneable with this method.
Usage
ProteinAnnotation\$clone(deep = FALSE)
Arguments
-
deep
-
Whether to make a deep clone.