Skip to content

submission prep script

abradyIGS edited this page Feb 10, 2022 · 15 revisions

# Overview

python prepare_C2M2_submission.py (previously build_term_tables.py) is a Python script that builds C2M2 controlled-vocabulary (CV) term usage tables for anatomy, assay type, file data type, file format, disease and taxonomy metadata.

Usage

0. First build your file.tsv, biosample.tsv, biosample_disease.tsv, subject_disease.tsv, and subject_role_taxonomy.tsv tables. (Some of these can be left empty (as header-only TSVs) if desired: see the C2M2 table wiki for requirements.)

2. Download the CV reference files [Last updated 9/7/21] at OSF (select external_CV_reference_files and then 'Download as zip'.)

3. Unzip the external_CV_reference_files folder

4. Put external_CV_reference_files and prepare_C2M2_submission.py into the same folder

5. Edit line 42 of the script to match the location of your file.tsv, biosample.tsv, (etc.) TSV files

6. Use the command line to run the script: python prepare_C2M2_submission.py

This script is under active development: please contact us with any questions by emailing the helpdesk at [email protected] or posting to Discussions

Clone this wiki locally