www.gusucode.com > bioinfo 案例源码程序 matlab代码 > bioinfo/ConstructABioMapObjectExample.m

    %% Construct a BioMap object 
% This example shows how to construct a BioMap object from a SAM file and
% from a structure.

% Copyright 2015 The MathWorks, Inc.


%%
% Construct a BioMap object from a SAM-formatted file that is provided with
% Bioinformatics Toolbox(TM) and set the Name property.
BMObj1 = BioMap('ex1.sam', 'Name', 'MyObject')

%%
% Construct a structure containing information from a SAM file.
SAMStruct = samread('ex1.sam');

%%
% Construct a BioMap object from this structure.
BMObj2 = BioMap(SAMStruct)