Skip to main content

Data Management & GISAID Compliance

This pipeline operates on large genomic datasets sourced from public repositories, principally GISAID (Global Initiative on Sharing All Influenza Data) and NCBI GenBank. Managing these datasets requires careful adherence to data access agreements, data integrity validation, and efficient local storage practices.

1. GISAID Data Access & Compliance

All data downloaded from GISAID (via the EpiFlu or EpiCoV portals) is subject to the GISAID Database Access Agreement (DAA).

Core DAA Requirements:

  • No Redistribution: You must never upload raw GISAID FASTA sequences or full metadata CSV/TSV files to public code repositories (e.g., GitHub, GitLab) or public data sharing services.
  • Acknowledge Lab Contributions: Publications using data from GISAID must acknowledge the Originating and Submitting laboratories. The pipeline does not store these lists automatically, so keep a copy of the downloaded acknowledgment table.
  • Fair Use: GISAID data should be accessed only through authorized credentials. Sharing accounts or API access keys is prohibited.

Compliance in the Codebase:

  • The .gitignore file of this repository is configured to exclude dataset/ and results/ folders where GISAID files are stored.
  • DO NOT modify the .gitignore to track sequence FASTAs or metadata CSVs.
  • Only share configuration profiles (config/*.yaml) containing public parameters, paths, and queries — never the sequences themselves.

2. Managing NCBI GenBank Data

GenBank data (accessed via NCBI Virus or the NCBI Datasets API) is public domain. However, large downloads can consume significant network bandwidth and local disk space.

NCBI API Key Configuration:

When running with database: ncbi, the pipeline invokes ncbi-datasets-cli to pull records. NCBI throttles anonymous requests to 3 requests per second. To prevent timeout failures during large downloads, get an API key and set it in your environment:

3. Data Integrity & Verification

Large sequence files are prone to truncation during download or extraction. Always verify the checksums of your local datasets before initiating a run:

Checking for Header Mismatches:

A common cause of M01 enrichment failure is a mismatch between the FASTA sequence headers and the metadata strain (or accession) identifiers. Run this quick diagnostic script before launching:
If the count is high, check if your metadata format matches local_input.format in the config profile.

4. Local Database Directory Conventions

To keep the workspace clean and compliant, follow these directory conventions for datasets and references:
Keep the dataset/ folder strictly outside the code tracks, and never commit clinical sample FASTAs or raw patient metadata to the repository.