Removes Uniprot IDs from an msarc object if they also occur in a
"control" object (or a simple vector of Uniprot IDs).
Usage
msarc.subtract(source, control)
Arguments
source
the msarc object of interest
control
the background control, either another msarc object,
or a simple vector of Uniprot IDs
Value
the modified source msarc object.
Details
Typically this will be used to remove ``background'' proteins, such as
those obtained from an IgG control, from an experiment, to reveal those
proteins which are specific to the experiment of interest.
Customarily, a mass spec experiment will include a treated sample of some
sort, and a corresponding untreated sample. The peptides that are identified
only in the treated sample are taken to be the interesting ones. This
function allows the straightforward removal from the treatment object of
proteins that also occur in the untreated control.
# Load a data set and controldata('sample_initial',package="msarc")
data('control_initial',package="msarc")
sample_subtracted <- msarc.subtract(sample_initial,control_initial)