ENCODE-DCC / chip-seq-pipeline2

ENCODE ChIP-seq pipeline
MIT License
241 stars 123 forks source link

Terra output missing metadata.json #278

Open elisadonnard opened 2 years ago

elisadonnard commented 2 years ago

Hello, I am wondering if it is possible to get the Terra workflow to generate the metadata.json file with paths to all relevant results. Would significantly improve the usability of the pipeline in Terra. Thanks in advance.

leepc12 commented 2 years ago

You can use Broad's fire cloud api to get metadata JSON object. Please see this for details. https://github.com/DataBiosphere/terra-examples/blob/00db055fcb50f38893fd5127150472dd6a8c9f06/cloud_functions/submissions_export/submissions_export.py#L8

Open a jupyter notebook and import firecloud api and use this function. namespace means Terra billing account name.