setMatePosition
Set mate positions of read sequences in BioMap
object
Description
returns a new NewObj
= setMatePosition(BioObj
,MatePos
)BioMap
object constructed from
BioObj
with the MatePosition
property
set to MatePos
.
To update mate positions in an existing BioMap
object, use
the same object as the input BioObj
and the output
NewObj
. For example,
BioObj = setMatePosition(BioObj,MatePos)
Note
To set the mate position, when constructing BioObj
you
must set the InMemory
name-value argument to
true
. See Manage Sequence Read Data in Objects.
Examples
Input Arguments
Alternative Functionality
An alternative to using setMatePosition
is to use dot indexing
with the MatePosition
property:
BioObj.MatePosition(Indices) = NewMatePos
In this syntax, Indices
is a vector of positive integers or a
logical vector. Indices
cannot be a cell array of character vectors
containing sequence headers. NewMatePos
is a vector of integers
specifying the mate positions of the read sequences with respect to the position numbers
in the reference sequence. Indices
and NewMatePos
must have the same number and order of elements.
Version History
Introduced in R2010b