Return information about SAM file
InfoStruct
= saminfo(File
)
InfoStruct = saminfo(File,Name,Value)
returns
a MATLAB® structure containing summary information about a SAM-formatted
file.InfoStruct
= saminfo(File
)
returns
a MATLAB structure with additional options specified by one or
more InfoStruct
= saminfo(File
,Name,Value
)Name,Value
pair arguments.
|
Character vector or string specifying a file name or path and file name of a SAM-formatted file. If you specify only a file name, that file must be on the MATLAB search path or in the Current Folder. |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Logical that controls the inclusion of a Note Setting Default: |
|
Logical that controls the scanning of the SAM-formatted file
to determine the reference names and the number of reads aligned to
each reference. If Default: |
|
MATLAB structure containing summary information about a SAM-formatted file. The structure contains these fields.
* — The ** — These structures and their fields appear in the output structure only if they are in the SAM file. The information in these structures depends on the information in the SAM file. |
Return information about the ex1.sam
file
included with Bioinformatics Toolbox™:
info = saminfo('ex1.sam')
info = Filename: 'ex1.sam' FilePath: [1x89 char] FileSize: 254270 FileModDate: '12-May-2011 14:23:25' Header: [1x1 struct] SequenceDictionary: [1x1 struct] ReadGroup: [1x2 struct] NumReads: [] ScannedDictionary: {0x1 cell} ScannedDictionaryCount: [0x1 uint64]
Return information about the ex1.sam
file
including the number of sequence reads:
info = saminfo('ex1.sam','numofreads', true)
info = Filename: 'ex1.sam' FilePath: [1x89 char] FileSize: 254270 FileModDate: '12-May-2011 14:23:25' Header: [1x1 struct] SequenceDictionary: [1x1 struct] ReadGroup: [1x2 struct] NumReads: 1501 ScannedDictionary: {0x1 cell} ScannedDictionaryCount: [0x1 uint64]
Use saminfo to investigate the size and
content of a SAM file before using the samread function
to read the file contents into a MATLAB structure. |
BioIndexedFile
| BioMap
| fastainfo
| fastaread
| fastawrite
| fastqinfo
| fastqread
| fastqwrite
| samread
| sffinfo
| sffread