Description Usage Arguments Slots Extends Methods Author(s) See Also Examples
SffReadsQ class is a container for storing, next-generation sequencing read data, read id, and sequencing quality information imported directly from SFF files generated by technologies such as Roche 454 and Life Sciences Ion Torrent. This class provides a way to store and manipulate, in a coordinated fashion, next generation reads stored in SFF files, their identifiers and quality scores.
Objects from this class are the result of readSff
, or
can be constructed from DNAStringSet
, QualityScore
, and
BStringSet
objects, using a call to the
constructor SffReadsQ
, as described below.
1 2 3 |
sread |
an object of class |
quality |
an object of class |
qualityIR |
an object of type |
adapterIR |
an object of type |
customIR |
an object of type |
## qualityIR, adapterIR, and customIR are allowed to by empty
clipMode |
a character string specifying the clipping mode to use for the object, see availableClipModes for more information. |
header |
a list object with sff header information, see |
Slot header
is inherited from SffHeader
.
Slots sread
, qualityIR
, adapterIR
, customIR
and clipMode
are inherited from SffReads
.
An additional slot defined in this class is:
quality
:Object of class "BStringSet"
representing a quality score (see readFastq
for some
discussion of quality score).
Class "SffReads"
, directly.
Class "SffHeader"
, by class "SffReads", distance 2.
inherited from signature(object = "ANY")
:
access the quality slot of object
.
signature(x = "SffReads", i = "ANY", j = "missing")
:
This method creates a new SffReads
object containing only
those reads indexed by i
. Additional methods on
‘[,SffReads’ do not provide additional functionality, but
are present to limit appropriate use.
signature(object = "SffReadsQ")
: ...
signature(object = "SffReadsQ", file = "character", mode="character", ...)
:
Write object
to file
in fastq format. mode
defaults to ‘w’. This creates a new file, or fails if
file
already exists. Use mode="a"
to append to an
existing file. file
is expanded using path.expand
.
signature(object = "FastqQuality", filepath, mode="w")
signature(object = "SffReadsQ", filepath, mode="w")
:
Write object
's quality values to filepath
in phred qual format (numeric).
append
defaults to ‘w’. This creates a new file, or fails if filepath
already exists.
Use mode="a"
to append to an existing file. filepath
is expanded using path.expand
.
signature(object = "SffReadsQ", basefilename = "character", append="logical", ...)
:
Write object
to basefilename
in fasta and phred qual format. append
defaults to ‘FALSE’. This creates a new file, or fails if
basefilename
already exists. Use append=TRUE
to append to an
existing file. basefilename
is expanded using path.expand
and
the suffixes [basefilename].fasta (sequence) and [basefilename].fasta.qual (qualities) are added.
signature(x = "SffReadsQ", values = "SffReads", length = "missing")
:
append the sread
, quality
and id
slots of
values
after the corresponding fields of x
.
Matt Settles with lots of code 'borrowed' from Martin Morgan's ShortRead Package
readSff
for creation of objects of this class from
SFF files.
1 2 3 4 5 6 7 8 | showClass("SffReadsQ")
showMethods(class="SffReadsQ", where=getNamespace("rSFFreader"),
inherit=FALSE)
showMethods(class="SffReads", where=getNamespace("rSFFreader"),
inherit=FALSE)
sff <- readSff(system.file("extdata","Small454Test.sff",package="rSFFreader"))
quality(sff)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.