This project is actively under development. Reach out to bayden.willms@noaa.gov for questions.
Creating new data templates and updating the data dictionary accordingly have now been automated, in addition to the term markdown file generation in generate_term_docs.py
. The new script, generate_template.py
, will perform the following tasks:
study-data-template-dict
Google Sheet) with new terms and update existing terms appropriately.Additionally, there is a script to verify the Google Sheets API connection called test_auth.py
.
An AOML Omics Google Drive admin must grant permission for the Google Sheets and Drive API.
data-templates
.service-account-name@data-templates.iam.gserviceaccount.com
).This project works on both macOS and Windows. Ensure you have Git and Anaconda installed on your computer:
Clone the GitHub project to your local machine:
git clone https://github.com/NOAA-Omics/noaa-omics-templates.git
cd noaa-omics-templates
Configure Anaconda environment using provided environment.yml
conda env create -f environment.yml
conda activate data-templates-env
credentials.json
file.credentials.json
in your 'script-dependencies' folder.test_auth.py
script to test API connection.Create a Copy of an Existing Data Template:
water_sample_data
to sediment_sample_data
.Download MIMARKS File:
script-dependencies
folder in the project.generate_template.py
script at the line:
mimarks_filename = 'MIMARKS.survey.sediment.6.0.xlsx' # EDIT ME
Configure Credentials:
credentials.json
filename and paste it into the generate_template.py
script at the line:
credentials_filename = 'data-templates-c7159dc891a7.json' # EDIT ME
Set Up Google Sheet IDs:
/d/
and /edit
. For example, in the URL https://docs.google.com/spreadsheets/d/abc123XYZ456/edit
, the Google Sheet ID is abc123XYZ456
.study-data-template-dict
.generate_template.py
script at the line:
study_template_dict_sheet_id = "abc123XYZ456" #EDIT ME
new_template_id = "abc123XYZ456" #EDIT ME
cd scripts
python generate_template.py