Learn R Programming

biomaRt (version 2.28.0)

getXML: Retrieves information from the BioMart database using an XML query

Description

This function is a low level query function bypassing lots of biomaRts internal controls. It allows for a direct XML query to a known BioMart webservice host.

Usage

getXML(host="http://www.biomart.org/biomart/martservice?", xmlquery)

Arguments

host
URL to BioMart webservice, is set to http://www.biomart.org/biomart/martservice? by default
xmlquery
XML query that needs to be send to the webservice

Examples

Run this code
if(interactive()){
getXML(xmlquery="<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE Query><Query  virtualSchemaName = 'default' uniqueRows = '1' count = '0' datasetConfigVersion = '0.6'> <Dataset name = 'hsapiens_gene_ensembl'><Attribute name = 'ensembl_gene_id'/><Filter name = 'chromosome_name' value = 'Y' /></Dataset></Query>")
}

Run the code above in your browser using DataLab