Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2.6 KB

README.md

File metadata and controls

59 lines (38 loc) · 2.6 KB

🚄 vitessce-data

Utils to pre-process data for Vitessce.

Sample datasets come from:

JSON is our target format right now because it is easily read by Javascript, and not so inefficient as to cause problems with storage or processing. For example: The mRNA HDF5 is 30M, but as JSON it is still only 37M.

Install

Set up the vitessce-data environment using conda:

conda env create -f environment.yml

Users may also install the dependencies with pip:

pip install -r requirements.txt

Develop and run

conda activate vitessce-data

# To update with new packages:
conda env update --file environment.yml --prune
  • test.sh exercises all the scripts, using the fixtures in fake-files/, and errors if the output is not what is expected.
  • process.sh downloads full data from the internet, caches these input files in big-files/input, processes them, caches the output in big-files/output, and pushes to S3.

process.sh only performs the work necessary. To regenerate just a portion of the data, delete the files in big-files/output that need to be replaced.

Configure AWS and Google Cloud CLIs

Install aws CLI and add to your PATH (reference).

Install gcloud and gsutil and add to your PATH (reference).

Configure the AWS CLI by setting AWS environment variables (reference) or running aws configure (reference).

Configure the Google Cloud CLI by running gcloud auth login (reference).

Creating a new release

Update the contents of cloud_target.txt to bump the version number. Then update the version where it is referenced in test fixtures in the fake-files/ directory.