Skip to content

cuttlefishh/metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Python notebooks and scripts for handling EMP metadata

Metadata exploration and refinement

emp20k_metadata_explore.ipynb https://github.com/cuttlefishh/metadata/blob/master/emp20k_metadata_explore.ipynb

emp20k_metadata_refine.ipynb -- now located in https://github.com/biocore/emp https://github.com/cuttlefishh/metadata/blob/master/emp20k_metadata_refine.ipynb

Inputs

  • Individual Qiime mapping files (list of studies and path to directory)
  • NCBI taxonomy files (names.dmp)
  • EMP Ontology data dictionary (.xlsx)
  • Study titles and quality information (.xlsx)
  • Observations -- sequences after split libraries, mapped sequences after OTU picking -- per sample (.tsv)

Outputs

  • Merged un-refined all columns of Qiime mapping files plus EMPO ontology (.tsv)
  • Merged refined select columns of Qiime mapping files (.tsv)
  • Individual refined select columns of Qiime mapping files (.tsv)
  • List of studies with number of samples by sample type (.tsv)

Metadata template generator

metadata_template_generator.md (ipynb in markdown format) https://github.com/biocore/emp/blob/master/ipynb/metadata_template_generator.md

metadata_template_generator.py (python executable) https://github.com/biocore/emp/blob/master/ipynb/metadata_template_generator.py

Generates metadata templates consistent with instructions on EMP website, similar to instructions on Qiita website.

Python executable:

$ metadata_template_generator.py --help

Usage: metadata_template_generator.py [OPTIONS]

  Generate metadata template and readme csv files

Options:
  --qiita_ebi_mims_path PATH   Excel file with Qiita/EBI and MIMS required
                               fields. Example: Qiita_EBI_MIMS_v1.xlsx
                               [required]
  --migs_mims_path PATH        Excel file with MIxS standards. Example:
                               MIGS_MIMS_v4.xls  [required]
  --list_of_env_pkg TEXT       One (recommended) or more (separated by commas)
                               environmental package. Choose from: air, built
                               environment, host-associated, human-associated,
                               human-skin, human-oral, human-gut, human-
                               vaginal, microbial mat/biofilm, misc
                               environment, plant-associated, sediment, soil,
                               wastewater/sludge, water  [required]
  --number_of_samples INTEGER  Number of samples (per environmental package)
                               to create rows for in the template  [required]
  --sample_prefix TEXT         Prefix string to prepend to sample numbers in
                               row indexes. Example: Metcalf40 (EMP500 PI and
                               study number)  [required]
  --help                       Show this message and exit.

Example:

$ metadata_template_generator.py \
	--qiita_ebi_mims_path ~/git/emp/data/MIxS/Qiita_EBI_MIMS_v1.xlsx \
	--migs_mims_path ~/git/emp/data/MIxS/MIGS_MIMS_v4.xls \
	--list_of_env_pkg host-associated \
	--number_of_samples 20 \
	--sample_prefix Thomas19

Issues:

  • Still need to decide how to record units. i. MIxS recommends to add the units to the column. ii. Another approch is to create a separate column for the units, either directly or parsed from (i). iii. Either way, we want a separate document that describes the units for each column plus full description for any non-standard columns.
  • Text input is all free text. We need a smarter way to suggest and enforce valid inputs. Similar to the old QIIME-db but with more features.

Future: web-based metadata input with contextual input (smart type detection and graphical metadata feedback)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published