Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

4 watching

Forks

Latest commit

 

History

327 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kids First CFDE C2M2 Submission Process

Kids First DRC Logo

Kids First DRC CFDE C2M2 Submission Repo License

Repo Description

This repository contains SQL scripts and Python code necessary to generate and package the Kids First Common Fund Data Ecosystem (CFDE) Cross-cut Metadata Model (C2M2) manifest. It queries tables from the D3b Data Warehouse and does some minimal transformations. The user should then utilize the CFDE cfde-c2m2 CLI tool to prepare and validate the manifest. The user can then submit the zipped manifest package via the CFDE data portal.

Submission Process Steps

  1. Set up your environment

    If you have not yet, create a virtual environment by running the following command in your terminal:

    python3.12 -m venv .venv

    Then, activate your virtual environment:

    source ./.venv/bin/activate

    If you have not previously installed the package dependencies, do so by running:

    pip install .
  2. Run the pipeline.

    You can run the entire generation process end-to-end by running the pipeline script:

    source ./src/pipeline.sh

    That script will execute the following code:

    # fill in your tables however you like
    python3.12 ./src/sql_to_tsv_stream.py
    
    # create an empty c2m2 submission OR update your existing submission directory
    cd submission || return
    cfde-c2m2 init
    
    # finish preparing your package by resolving iris
    cfde-c2m2 prepare
    
    # verify integrity of your package and export results to `logs` folder
    cfde-c2m2 validate > "../logs/$(date +"%Y%m%d_%H%M%S")_c2m2_validation.log" 2>&1
    
    # zip the necessary files for a bare minimum package
    cfde-c2m2 package
  3. Submit data to CFDE portal

    Upload the C2M2 manifest zip file via the CFDE Data Portal.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages