Contraints:
In the terra environment, /usr/local/share is write only so the seqrepo needs to be installed in a user controlled directory
e.g. ~/seqrepo this directory should not be hard coded.
Rough steps:
Setup
install seqrepo CLI, pip install seqrepo
determine latest release, 2021-01-29 in this example
mkdir seqrepo
export SEQREPO_ROOT=~/seqrepo
# can you determine which of these is the best way to maintain
seqrepo pull -i 2021-01-29 --root-directory ~/seqrepo
seqrepo --root-directory ~/seqrepo pull -i 2021-01-29
seqrepo pull -i 2021-01-29
See biocommons Specifically local read-only archive
Contraints: In the terra environment,
/usr/local/share
is write only so the seqrepo needs to be installed in a user controlled directory e.g.~/seqrepo
this directory should not be hard coded.Rough steps:
Setup
pip install seqrepo
Testing
Manual testing
pytest
Implement a pytest module that will replicate manual tests above
e.g.
tests/unit/your-test-here.py