Skip to content

Instantly share code, notes, and snippets.

@lwaldron
Last active April 10, 2018 14:30
Show Gist options
  • Save lwaldron/445389241cdb43229f2fd7369e108f11 to your computer and use it in GitHub Desktop.
Save lwaldron/445389241cdb43229f2fd7369e108f11 to your computer and use it in GitHub Desktop.
Accessing HMP controlled metadata
# Before starting, install the NCBI SRA Tookit:
# Debian/Ubuntu:
# apt install sra-toolkit
# macOS:
# brew install sratoolkit
# Windows:
# see https://tinyurl.com/y845ppaa
# Get your dbGaP repository from https://dbgap.ncbi.nlm.nih.gov/aa/wga.cgi?page=list_wishlists
# Click "get dbGaP repository key"
library(HMP16SData)
x = V13()
x = attach_dbGaP(x, "~/Downloads/prj_12146.ngc") #replace with path to dbGaP repository key downloaded above
head(colData(x)) ##should see all the controlled metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment