newObject = setSubset(object,elements,subset)
returns a new object that is a copy of object with a subset of
elements set to elements. A one-to-one relationship must exist
between the number and order of elements in elements and
subset.
Replace the first two elements in brObj1 with the elements in brObj2. The object brObj2 must contain the same number of elements as the number of elements in subset (in this case, 2).
Object containing the read data, specified as a BioRead or BioMap object. If the object is not stored in memory,
you cannot modify its properties, except the Name property.
Example: readData
elements — Object containing information related to read data BioRead object | BioMap object
Object containing information related to the read data, specified as a
BioRead or BioMap object. The object must contain the
same number of elements as the number of elements in
subset.
Example: brObject
subset — Subset of elements in object vector of positive integers | logical vector | string vector | cell array of character vectors
Subset of elements in the object, specified as a vector of positive integers, logical vector,
string vector, or cell array of character vectors containing valid sequence
headers.
Example: [1 3]
Tip
When you use a sequence header (or a cell array of headers) for subset, a
repeated header specifies all elements with that header.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.