
Last chance! 50% off unlimited learning
Sale ends in
blastSequences(x, database, hitListSize, filter, expect, program, timeout=40, as=c("DNAMultipleAlignment", "data.frame", "XML"))
x = ">ID-1\nACATGCTA\n>ID-2\nAAACCACTT"
.
as="XML"
DNAMultipleAlignment
instances,
represented as a data.frame
, or returned as XML.
DNAMultipleAlignment
(see
MultipleAlignment-class
objects. Alternatively, a data.frame
or XML document returned
from the NCBI server. The data.frame
is a ‘long form’
representation of the ‘Iteration’, ‘Hit’ and
‘Hsp’ results returned from the server. The XML document is the
result of the xmlParse
function of the XML library, and follows
the format described by
http://www.ncbi.nlm.nih.gov/dtd/NCBI_BlastOutput.dtd and
http://www.ncbi.nlm.nih.gov/dtd/NCBI_BlastOutput.mod.dtd. The NCBI URL api used by this function is documented at http://www.ncbi.nlm.nih.gov/blast/Doc/urlapi.html
## x can be an entrez gene ID
blastSequences(17702, timeout=40, as="data.frame")
if (interactive()) {
## or x can be a sequence
blastSequences(x = "GGCCTTCATTTACCCAAAATG")
## hitListSize does not promise that you will get the number of
## matches you want.. It will just try to get that many.
blastSequences(x = "GGCCTTCATTTACCCAAAATG", hitListSize="20")
}
Run the code above in your browser using DataLab