Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

staphopia/staphopia-r

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

DOI

As of August 31st, 2023 the Staphopia API has reached end-of-life

If your research was affected by this shut down, please reach out to Tim Read and/or Robert Petit.

staphopia-r

A R library to extract data from the Staphopia API

Installation

Tested on R version 3.4

First install the Bioconductor Biostrings and devtools package (if not already installed)

source("https://bioconductor.org/biocLite.R")
biocLite("Biostrings")
install.packages("devtools")
library(devtools)

Install and test staphopia-r from github (running the test might take 1-2 min)

install_github("staphopia/staphopia-r/staphopia")
library("staphopia")
test_staphopia()

On Mac/ Linux

Create a file in your home directory called ".staphopia" for logging into the API. The file should contain two lines.

TOKEN = "xxxxxxxxxxxxxxxxxxxxxx"
USE_DEV = FALSE

For 'TOKEN' substitute the API authenication token string acquired as described above (USE_DEV is a variable for script development and can be ignored)

On Windows

TBD

Example Commands