BioRead
Contain sequence reads and their quality data
Description
The BioRead
object contains sequencing read data, including
sequence headers, nucleotide sequences, and quality scores.
Create a BioRead object from NGS (next-generation sequencing) data stored in an FASTQ-
or SAM-formatted file. Each element in the object has a sequence, header, and quality
score associated with it. Use the object properties and functions to explore, access,
filter, and manipulate all the data or a subset of the data. If you have data with reads
that are already mapped to a reference sequence, and you need to access alignment
records, use BioMap
instead.
Creation
Syntax
Description
creates an
empty bioreadObj
= BioReadBioRead
object bioreadObj
.
creates a bioreadObj
= BioRead(File
)BioRead
object from File
, an
FASTQ- or SAM-formatted file. The data remains in the source file after the
object is created, and you have access to data through the object properties but
cannot modify the properties, except the Name
property.
creates a bioreadObj
= BioRead(S
)BioRead
object from S
, a
MATLAB® structure, containing the fields Header
,
Sequence
, and Quality
. The data from
S
remains in memory, and you can modify the properties
of the object.
creates a bioreadObj
= BioRead(Seqs
)BioRead
object from Seqs
, a cell
array of character vectors or string vector containing nucleotide
sequences.
specifies options using one or more name-value pair arguments in addition to
input arguments in previous syntaxes. For instance, bioreadObj
= BioRead(___,Name,Value
)br =
BioRead('SRR005164_1_50.fastq','InMemory',true)
specifies to load
the data in memory instead of leaving it in the source file.
Input Arguments
Properties
Object Functions
combine | Combine two objects |
get | Retrieve property of object |
getHeader | Retrieve sequence headers from object |
getQuality | Retrieve sequence quality information from object |
getSequence | Retrieve sequences from object |
getSubsequence | Retrieve partial sequences from object |
getSubset | Retrieve subset of elements from object |
set | Set property of object |
setHeader | Update header information of reads |
setQuality | Update quality information |
setSequence | Update read sequences |
setSubsequence | Update partial sequences |
setSubset | Update elements of object |
write | Write contents of BioRead or BioMap object to file |
Examples
Version History
Introduced in R2010a