setFlag
Class: BioMap
Set read sequence flags for BioMap object
Description
returns NewObj = setFlag(BioObj, FlagValues)NewObj, a new BioMap object,
constructed from BioObj, an existing
BioMap object, with the Flag property
set to FlagValues, a vector of nonnegative integers indicating
the bit-wise information that specifies the status of each of the 11 flags described
by the SAM format specification.
sets
the NewObj = setFlag(BioObj, FlagValues, Subset)Flag property of the elements specified by Subset to FlagValues.
Input Arguments
Output Arguments
Examples
Alternatives
An alternative to using the setFlag method
to update an existing object is to use dot indexing with the Flag property:
BioObj.Flag(Indices) = NewFlag
In the previous syntax, Indices is
a vector of positive integers or a logical vector. Indices cannot
be a cell array of character vectors containing sequence headers. NewFlag is
a vector of nonnegative integers indicating the bit-wise information
that specifies the status of each of the 11 flags described by the
SAM format specification. Each integer corresponds to one read sequence
in a BioMap object. Indices and NewFlag must
have the same number and order of elements.