SlideShare a Scribd company logo
1 of 10
Programmatic access to
WormBase ParaSite
Access using R
• Access our database directly from R, via the biomaRt
package
• Syntax almost identical to Ensembl
• Very quick access to large amounts of multi-species
data
• Ideal for downloading a large dataset once, for further
offline processing
WormBase ParaSite in R
• Install the biomaRt package:
source("http://bioconductor.org/biocLite.R")
biocLite("biomaRt")
• Include the biomaRt package:
library(biomaRt)
WormBase ParaSite in R
• Establish a connection to WormBase ParaSite
mart <- useMart("parasite_mart”,
dataset = "wbps_gene",
host = "parasite.wormbase.org")
WormBase ParaSite in R
• Example: get all the Schistosoma mansoni genes with a C. elegans
orthologue:
genes <- getBM(mart = mart,
filters = c("species_id_1010",
"with_celegans_homologue"),
value = list("prjea36577", TRUE),
attributes = c(”wbps_gene_id",
"celegans_gene”))
head(genes)
wbps_gene_id celegans_gene
1 Smp_078570 WBGene00009448
2 Smp_063300 WBGene00004450
3 Smp_210640 WBGene00009305
4 Smp_049930 WBGene00010465
5 Smp_132740 WBGene00001395
6 Smp_132740 WBGene00001396
Language neutral queries
• REST API allows access using any programming
language
• For processing large amounts of data: consider
whether making one query to BioMart may be more
suitable
• Examples provided in Perl, Python, Ruby, Java, Curl
and Wget
Endpoint Catalogue
Endpoint Specifics
Endpoint Examples
Code Examples

More Related Content

More from raymond91105

Programmatic access to wormbase data WormBase Workshop International Worm Mee...
Programmatic access to wormbase data WormBase Workshop International Worm Mee...Programmatic access to wormbase data WormBase Workshop International Worm Mee...
Programmatic access to wormbase data WormBase Workshop International Worm Mee...raymond91105
 
Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017raymond91105
 
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017raymond91105
 
SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017raymond91105
 
AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017raymond91105
 
Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017raymond91105
 
J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...raymond91105
 
Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017raymond91105
 
Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015raymond91105
 
Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015raymond91105
 
Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015raymond91105
 
Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015raymond91105
 
J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015raymond91105
 
Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015raymond91105
 
Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015raymond91105
 

More from raymond91105 (15)

Programmatic access to wormbase data WormBase Workshop International Worm Mee...
Programmatic access to wormbase data WormBase Workshop International Worm Mee...Programmatic access to wormbase data WormBase Workshop International Worm Mee...
Programmatic access to wormbase data WormBase Workshop International Worm Mee...
 
Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017
 
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
 
SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017
 
AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017
 
Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017
 
J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...
 
Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017
 
Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015
 
Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015
 
Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015
 
Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015
 
J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015
 
Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015
 
Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015
 

Recently uploaded

Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 sciencefloriejanemacaya1
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 

Recently uploaded (20)

Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Boyles law module in the grade 10 science
Boyles law module in the grade 10 scienceBoyles law module in the grade 10 science
Boyles law module in the grade 10 science
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 

Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017

  • 2. Access using R • Access our database directly from R, via the biomaRt package • Syntax almost identical to Ensembl • Very quick access to large amounts of multi-species data • Ideal for downloading a large dataset once, for further offline processing
  • 3. WormBase ParaSite in R • Install the biomaRt package: source("http://bioconductor.org/biocLite.R") biocLite("biomaRt") • Include the biomaRt package: library(biomaRt)
  • 4. WormBase ParaSite in R • Establish a connection to WormBase ParaSite mart <- useMart("parasite_mart”, dataset = "wbps_gene", host = "parasite.wormbase.org")
  • 5. WormBase ParaSite in R • Example: get all the Schistosoma mansoni genes with a C. elegans orthologue: genes <- getBM(mart = mart, filters = c("species_id_1010", "with_celegans_homologue"), value = list("prjea36577", TRUE), attributes = c(”wbps_gene_id", "celegans_gene”)) head(genes) wbps_gene_id celegans_gene 1 Smp_078570 WBGene00009448 2 Smp_063300 WBGene00004450 3 Smp_210640 WBGene00009305 4 Smp_049930 WBGene00010465 5 Smp_132740 WBGene00001395 6 Smp_132740 WBGene00001396
  • 6. Language neutral queries • REST API allows access using any programming language • For processing large amounts of data: consider whether making one query to BioMart may be more suitable • Examples provided in Perl, Python, Ruby, Java, Curl and Wget

Editor's Notes

  1. Syntax is the same as Ensembl, so there is plenty of guidance available online at sites like BioStars