SlideShare a Scribd company logo
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

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
raymond91105
 
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
raymond91105
 
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
raymond91105
 
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 2017
raymond91105
 

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

Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Sérgio Sacani
 
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdf
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdfPests of sugarcane_Binomics_IPM_Dr.UPR.pdf
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdf
PirithiRaju
 
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdfPests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
PirithiRaju
 
Aerodynamics. flippatterncn5tm5ttnj6nmnynyppt
Aerodynamics. flippatterncn5tm5ttnj6nmnynypptAerodynamics. flippatterncn5tm5ttnj6nmnynyppt
Aerodynamics. flippatterncn5tm5ttnj6nmnynyppt
sreddyrahul
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
AADYARAJPANDEY1
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptx
RUDYLUMAPINET2
 

Recently uploaded (20)

The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
 
Hemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxHemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptx
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classification
 
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
 
Microbial Type Culture Collection (MTCC)
Microbial Type Culture Collection (MTCC)Microbial Type Culture Collection (MTCC)
Microbial Type Culture Collection (MTCC)
 
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdfGEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdf
 
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdf
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdfPests of sugarcane_Binomics_IPM_Dr.UPR.pdf
Pests of sugarcane_Binomics_IPM_Dr.UPR.pdf
 
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
 
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdfPests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
Pests of Green Manures_Bionomics_IPM_Dr.UPR.pdf
 
Transport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSETransport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSE
 
Aerodynamics. flippatterncn5tm5ttnj6nmnynyppt
Aerodynamics. flippatterncn5tm5ttnj6nmnynypptAerodynamics. flippatterncn5tm5ttnj6nmnynyppt
Aerodynamics. flippatterncn5tm5ttnj6nmnynyppt
 
SAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniquesSAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniques
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptx
 
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
 
Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...
 

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