extractseqs | R Documentation |
The function allows to extract large amount of data as whole genome sequences,using different output formats and types of extraction. This function is not yet available for windows in zlib mode.
extractseqs(listname,socket = autosocket(), format="fasta",
operation="simple",feature="xx", bounds="xx", minbounds="xx",
verbose = FALSE, nzlines=1000, zlib = FALSE)
exseq(listname,socket = autosocket(),
format="fasta",operation="simple", feature="xx",
bounds="xx", minbounds="xx", verbose = FALSE, nzlines=1000, zlib = FALSE)
listname |
the name of list on server (may be a virtual list) |
socket |
an object of class |
format |
the format of output.Can be |
operation |
the type of extraction. Can be |
feature |
-optional- the feature to be extracted (for operations "feature" or "region"): a feature table item (CDS, mRNA,...) |
bounds |
-optional- the bounds for extraction (for operations "fragment" or "region") |
minbounds |
-optional- the minimal bounds for extraction (for operations "fragment" or "region") |
verbose |
if |
nzlines |
number of line in zlib mode |
zlib |
logical. If TRUE sequences are download in zlib compress mode. |
To extract a list of sequences (lrank argument) or a single sequence (seqnum argument) using different output formats and types of extraction. All formats except "coordinates" extract sequence data. Format "coordinates" extract coordinate data; start > end indicates the complementary strand.
sequence list name.
a socket of class connection and sockconn returned by choosebank
.
Default value (auto) means that the socket will be set to to the socket component of the banknameSocket variable.
acnuc
, fasta
, flat
or coordinates
simple
, translate
, fragment
, feature
or region
(for operations "feature" or "region") a feature table item (CDS, mRNA,...).
each sequence or subsequence is extracted.
meaningful only for protein-coding (sub)sequences that are extracted as protein sequences. Nothing is extracted for non-protein coding sequences.
Allows to extract any part of the sequence(s) in list. Such part is specified by the bounds and minbounds arguments according to the syntax suggested by these examples:
132,1600 | to extract from nucl. 132 to nucl 1600 of the sequence. If applied to a subsequence, coordinates are in the parent seq relatively to the subsequence start point. | |
-10,10 | to extract from 10 nucl. BEFORE the 5' end of the sequence to nucl. 10 of it. Useful only for subsequences, and produces a fragment extracted from its parent sequence. | |
e-20,e+10 | to extract from 20 nucl. BEFORE the 3' end of the sequence to 10 nucl. AFTER its 3' end. Useful only for subsequences, and produces a fragment extracted from its parent sequence. | |
-20,e+5 | to extract from 20 nucl. BEFORE the 5' end of the sequence to 5 nucl. AFTER its 3' end. |
(for operations "fragment" or "region") see syntax above.
same syntax as bounds. When the sequence data is too short for this quantity to be extracted, nothing is extracted. When the sequence data is between minbounds and bounds, extracted sequence data is extended by N's to the desired length.
Sequence data.
S. Penel
citation("seqinr")
choosebank
,
query
getlistrank
## Not run: # Need internet connection
choosebank("emblTP")
mylist <- query("mylist", "k=globin", virtual = TRUE)
mylist.fasta <- exseq("mylist", verbose = TRUE)
# 103 lines of FASTA
stopifnot(length(mylist.fasta) == 103)
closebank()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.