Biom2Neo

This driver contains functions for writing BIOM files to the database, and also for writing BIOM files from the database to disk.

Biom2Neo.convert_biom(biomfile, exp_id, obs=True)

Stores a BIOM object in the database. To speed up this process, all data from the BIOM object is first converted to dictionaries or lists that can be used in parameterized batch queries. If obs is set to false, all taxa are only connected to a single “mock” sample. This can lead to a rapid speed-up for data set uploading, if sample counts are not necessary.

  • biomfile: BIOM object
  • exp_id: Label of experiment used to generate BIOM file
  • obs: Relationships between samples and taxa are only created if obs is set to True

Biom2Neo.convert_taxonomy(taxonomy_table, exp_id)

Stores a taxonomy dataframe in the database. To speed up this process, all data from the taxonomy table is first converted to dictionaries or lists that can be used in parameterized batch queries.

  • taxonomy_table: BIOM object
  • exp_id: Pandas dataframe of taxonomy
  • exp_id: Label of experiment used to generate taxonomy file