Skip to content

Instantly share code, notes, and snippets.

@sminot
Last active June 26, 2020 14:55
Show Gist options
  • Select an option

  • Save sminot/76abba246f855f9bb4448adc9b491fa7 to your computer and use it in GitHub Desktop.

Select an option

Save sminot/76abba246f855f9bb4448adc9b491fa7 to your computer and use it in GitHub Desktop.
Import data from Geneshot HDF5
# Read in data from the HDF store
assert os.path.exists(hdf_fp)
cag_annot = pd.read_hdf(hdf_fp, "/annot/cag/all").set_index("CAG")
cag_abund = pd.read_hdf(hdf_fp, "/abund/cag/wide").set_index("CAG")
corncob_df = pd.read_hdf(hdf_fp, "/stats/cag/corncob")
betta_df = pd.read_hdf(hdf_fp, "/stats/enrichment/betta")
manifest = pd.read_hdf(hdf_fp, "/manifest").set_index("specimen")
specimen_summary = pd.read_hdf(hdf_fp, "/summary/all").set_index("specimen")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment