This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: BioMap

Set name of reference sequence for BioMap object


newObj = setReference(Obj,RefSeqName)
newObj = setReference(Obj,RefSeqName,Indices)


newObj = setReference(Obj,RefSeqName) returns a new BioMap object newObj, constructed from an existing object Obj, with the Reference property set to RefSeqName, a character vector specifying the name of the reference sequence.

newObj = setReference(Obj,RefSeqName,Indices) sets the Reference property of the elements indexed by Indices to RefSeqName.

Input Arguments

expand all

Object of the BioMap class, specified as a BioMap object.

Name of reference sequence, specified as a character vector or cell array of character vectors.

Indices to the elements of the input object, specified as a positive integer, vector of positive integers, logical array, character vector, or cell array of character vectors. For character vectors, they must correspond to the valid Header values of the input object Obj.

Output Arguments

expand all

Object of the BioMap class, returned as a BioMap object.


expand all

Create a BioMap object from a SAM file. Set 'InMemory' to true to allow modifying the object properties.

bm = BioMap('ex2.sam','InMemory',true);

Check the reference sequence of the 5th read sequence.

ans =

  1x1 cell array


Change the reference sequence to another one in the sequence dictionary.

bm2 = setReference(bm,{'seq2'},5);
ans =

  1x1 cell array


Was this topic helpful?