Skip to content

Instantly share code, notes, and snippets.

@boboppie
Created September 18, 2012 06:11
Show Gist options
  • Save boboppie/3741524 to your computer and use it in GitHub Desktop.
Save boboppie/3741524 to your computer and use it in GitHub Desktop.
Quick test of using genomes package in Bioconductor for taxonomy search
# genomes - Genome sequencing project metadata
# URL : http://www.bioconductor.org/packages/release/bioc/html/genomes.html
library(genomes)
ncbiTaxonomy("human", summary=TRUE)
#################################
# [1] "1 result found"
# taxid name rank division nucl prot struct genome gene
# 1 9606 Homo sapiens species primates 9936177 677498 20041 51 43470
#################################
ncbiTaxonomy(c("Bacillus anthracis", "Yersinia pestis"))
#################################
# [1] "2 results found"
# taxid name rank division nucl prot struct genome gene
# 1 1392 Bacillus anthracis species firmicutes 3694 184450 290 29 29604
# 2 632 Yersinia pestis species enterobacteria 41568 507490 127 55 47410
#################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment