samread
Read data from SAM file
Description
[ returns the alignment and header data in two
separate variables.SAMStruct,HeaderStruct]=
samread(File)
___=samread(
specifies options using one or more name-value arguments in addition to the arguments in
previous syntaxes.File,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
Use the
saminfofunction to investigate the size and content of a SAM-formatted file before using thesamreadfunction to read the file contents into a MATLAB array of structures.If your SAM-formatted file is too large to read using available memory, try one of the following:
Use the
BlockReadparameter with thesamreadfunction to read a subset of entries.Create a
BioIndexedFileobject from the SAM-formatted file, then access the entries using methods of theBioIndexedFileclass.
Use the
SAMStructoutput argument thatsamreadreturns to create aBioMapobject, which lets you explore, access, filter, and manipulate all or a subset of the data, before doing subsequent analyses or viewing the data.
Version History
Introduced in R2010a