View source: R/submit_NCBI_BLAST_request.R
get.NCBI.BLAST2DT | R Documentation |
Automatically submits all sequences and retrieves all results in a data.table.
get.NCBI.BLAST2DT(
sequences,
db = "genomic/9606/GCF_000001405.39",
res.dir,
ncores,
auto.rm.dir = TRUE,
delay.req = 10,
email
)
sequences |
Either a |
db |
A |
res.dir |
A |
ncores |
An |
auto.rm.dir |
A |
delay.req |
Mandatory seconds between BLAST request submissions as an
|
email |
Mandatory E-mail adress for NCBI BLAST request, specified
as a |
A data.table
aggregating all NCBI BLAST results.
Yoann Pageaud.
hoardeR: Collect and Retrieve Annotation Data for Various Genomic Data Using Different Webservices.
Johnson, M. et al. NCBI BLAST: a better web interface. Nucleic Acids Research 36, W5–W9 (2008).
#Create 1 row data.frame for the example
df <- data.frame("GBaccessID" = "AC073318", "Start" = 71401, "End" = 72401)
#Submit the sequence extracted from AC073318 to NCBI BLAST API
example.dt <- get.NCBI.BLAST2DT(
sequences = df, db = "genomic/9606/GCF_000001405.25",
res.dir = "~/result_BLAST", ncores = 2, auto.rm.dir = FALSE,
email = "myemailadress@dkfz.de")
#example.dt is a data.table containing all BLAST hits for the sequence submitted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.