How to care for the data model and do important operations with schematic!
For quick and reproducible workflow, this guide is based on devcontainers, which:
- Should have the correct version of schematic installed with the schematic
config.yml
in the repository. - Has all the creds you need.
In upper menu button, Code > Create codespace on main. You may need to wait a bit for the container to install tools and finish other setup.
- Modify a
.yaml
file in themodules
directory. - In the devcontainer at the root of the repo, type
make
. Animation of what it should look like:
This is the command-line equivalent of using the schematic API or using the DCA UI to generate a template.
-
For generating templates, you need creds. You only need to do this once when starting up a new codespace. Run this simple bash script at the codespace command line:
./scripts/setup_creds.sh
. You should see acreds.json
and.synapseConfig
file at the root of the repo, next to the.jsonld
file. Locally, we can keep these files around but .gitignore them so they are not committed to the repo. Also, for local use, you may want to set up.synapseConfig
using your own credentials. Feel free to skim the bash script and creds files. -
Generate a blank Excel template for e.g. scRNAseq-Level1 by running
./scripts/gen_template.sh ImagingLevel2
. This generates an Excel template by default. Try replacing with another template ID. Try also copy-pasting contents of the script to the command-line to run schematic command natively, replacing variables as needed.
TODO - adapt script to allow these steps @cconrad8
-
Generate a blank Google template.
-
Generate a filled-in Google or Excel template for existing files on Synapse. An example for where this would apply is the public ScRNA-seqLevel1 dataset
syn26560315
.
Note: this does not require creds setup.
TODO - add script for this step