Skip to content

Generate Terra table insert  #5

@tomkinsc

Description

@tomkinsc

In addition to creating a README.txt file when a run has finished uploading, the upload script should have an option to generate a TSV that can be used to add a row to a Terra table with the run ID, the gs:// path to the finished tarball, and an array of placeholders for sample sheets.

The resulting format should be something like this:

entity:flowcell_id	flowcell_tar	samplesheets
YYMMDD_InstrumentID_RunNumber_FlowCellID	gs://bucket/path/to/YYMMDD_InstrumentID_RunNumber_FlowCellID.tar.gz	["lane1_samplesheet_placeholder","lane2_samplesheet_placeholder"]

The table name (flowcell in the above example) should be configurable, with a default value of "flowcell". There should be a toggle in the script to (en|dis)able this feature (enabled by default?).

If the service worker account used for gcloud auth activate-service-account has write access to a Terra workspace, the script could even make a POST request to automatically import the tsv via the API function:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions