fcff_filter_features: Filter Features

Description Usage Arguments Value Examples

View source: R/fc_feat_filt.R

Description

Filter features based on keyword. You can keep those, remove those, and many other things.

Usage

1
2
3
4
5
6
7
fcff_filter_features(
  fc,
  feats,
  action,
  behavior = "permissive",
  diff_opts = NULL
)

Arguments

fc

The Fc Array data frame.

feats

Vector of strings for the features you want to keep or remove.

action

String specifying whether you want to "keep" or "toss" the features in feats.

behavior

Whether the feature names will be matched by:

  • containing any of the strings in feats ("permissive").

  • containing all of the strings in feats ("strict").

  • Alternatively, "differs" specifies that features will be removed by difference from baseline. This will be done instead of keyword filtering (so to do both, call this function twice).

diff_opts

list of options if behavior = "differs". see ?fcff_feats_diff.

Value

The Fc Array data frame filtered based on what you specified.

Examples

1
2
3
4
new_fc = fcff_filter_features(fc, c("gp41", "gp120"), "keep")
my_diff_opts = list() # fill with stuff
diff_fc = fccu_filter_features(fc, NULL, NULL, behavior="differs",
					diff_opts=my_diff_opts)

kmorrisongr/fcan documentation built on Sept. 9, 2020, 10:12 a.m.