View source: R/submit_NCBI_BLAST_request.R
split_queries | R Documentation |
Splits a set of BLAST queries into a list of smaller DNA sequences.
split_queries(x = x, by = 7000, ncores = 1)
x |
Supports 2 possible formats:
|
by |
An |
ncores |
An |
A list
of DNA sequences of the requested length.
Yoann Pageaud.
#Using an example data.frame of 1 Genbank ID
ls.seq <- split_queries(
x = data.frame("GB.access" = "AC073318", "Start" = 71401, "End" = 120576),
by = 7025)
#Using an example list of DNA sequences
ls.seq <- list(
"7qtel" = "CCCTAACACTGTTAGGGTTATTATGTTGACTGTTCTCATTGCTGTCTTAG",
"1ptel" = "GATCCTTGAAGCGCCCCCAAGGGCATCTTCTCAAAGTTGGATGTGTGCAT",
"17qtel" = "CCCTAACCCTAAACCCTAGCCCTAGCCCTAGCCCTAGCCCTAGCCCTAGC")
ls.seq <- split_queries(x = ls.seq, by = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.