Description Usage Arguments Details Value Author(s) References See Also Examples
Returns the set of sequences meeting the search criteria.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
dbFile |
A SQLite connection object or a character string specifying the path to the database file. |
tblName |
Character string specifying the table where the sequences are located. |
identifier |
Optional character string used to narrow the search results to those matching a specific identifier. If "" (the default) then all identifiers are selected. |
type |
The type of |
limit |
Number of results to display. The default ( |
replaceChar |
Optional character used to replace any characters of the sequence that are not present in the |
nameBy |
Character string giving the column name for naming the |
orderBy |
Character string giving the column name for sorting the results. Defaults to the order of entries in the database. Optionally can be followed by |
countOnly |
Logical specifying whether to return only the number of sequences. |
removeGaps |
Determines how gaps ("-" or "." characters) are removed in the sequences. This should be (an unambiguous abbreviation of) one of |
clause |
An optional character string to append to the query as part of a “where clause”. |
quality |
The type of quality object to return if |
processors |
The number of processors to use, or |
verbose |
Logical indicating whether to display queries as they are sent to the database. |
If type
is "DNAStringSet"
then all U's are converted to T's before creating the DNAStringSet
, and vise-versa if type
is "RNAStringSet"
. All remaining characters not in the XStringSet
's alphabet are converted to replaceChar
or removed if replaceChar
is ""
. Note that if replaceChar
is NA
(the default), it will result in an error when an unexpected character is found. Quality information is interpreted as PredQuality
scores.
An XStringSet
or QualityScaledXStringSet
with the sequences that meet the specified criteria. The names
of the object correspond to the value in the nameBy
column of the database.
Erik Wright eswright@pitt.edu
ES Wright (2016) "Using DECIPHER v2.0 to Analyze Big Biological Sequence Data in R". The R Journal, 8(1), 352-359.
1 2 3 4 5 6 7 8 9 10 | db <- system.file("extdata", "Bacteria_175seqs.sqlite", package="DECIPHER")
# get all sequences in the default table:
dna <- SearchDB(db)
# select a random sequence:
dna <- SearchDB(db, orderBy="random()", limit=1)
# remove gaps from "Mycobacterium" sequences:
dna <- SearchDB(db, identifier="Mycobacterium", removeGaps="all")
# provide a more complex query:
dna <- SearchDB(db, nameBy="description", orderBy="bases", removeGaps="common",
clause="nonbases is 0")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.