getParamart: Return a database object initialized with paraSite (Wormbase)

View source: R/format_BM_from_XML.R

getParamartR Documentation

Return a database object initialized with paraSite (Wormbase)

Description

This function returns a "mart" object with paraSite options as default. See biomaRt::useMart for alternative marts and the required arguments for them.

Usage

getParamart(
  biomart = "parasite_mart",
  dataset = "wbps_gene",
  host = "https://parasite.wormbase.org",
  port = 443,
  ...
)

Value

A Mart object from package biomaRt.

Examples

query = format_BM_from_XML('<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Query>
<Query  virtualSchemaName = "parasite_mart" formatter = "TSV" header = "0" uniqueRows = "0" count = "" datasetConfigVersion = "0.6" >
  <Dataset name = "wbps_gene" interface = "default" >
     <Filter name = "biotype" value = "lincRNA"/>
     <Filter name = "species_id_1010" value = "caelegprjna13758"/>
     <Attribute name = "wbps_gene_id" />
  </Dataset>
</Query>')

library(biomaRt)
mart = getParamart()
lincs = runWithMart(query, mart)

meekrob/ParasiteXML documentation built on March 11, 2023, 10:53 a.m.