Skip to content

Latest commit

 

History

History
43 lines (21 loc) · 2.02 KB

getting_started.md

File metadata and controls

43 lines (21 loc) · 2.02 KB

Getting started

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.

Update and make data model jsonld

  1. Modify a .yaml file in the modules directory.
  2. In the devcontainer at the root of the repo, type make. Animation of what it should look like:

make demonstration

Generate templates

This is the command-line equivalent of using the schematic API or using the DCA UI to generate a template.

  1. 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 a creds.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.

  2. 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

  1. Generate a blank Google template.

  2. 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.

Validate manifest

Note: this does not require creds setup.

TODO - add script for this step