This repository provides a sequence uploader for the COVID-19 sequences. There are two versions, one that runs on the command line and another that acts as web interface. You can use it to upload the genomes of SARS-CoV-2 samples to make them publicly and freely available to other researchers.
To get started, first install the uploader, and use the hguploader
command to upload your data.
There are several ways to install the uploader. The most portable is with a virtualenv.
- Prepare your system. You need to make sure you have Python, and the ability to install modules such as
pycurl
andpyopenssl
. On Ubuntu 18.04, you can run:
sudo apt update
sudo apt install -y virtualenv git libcurl4-openssl-dev build-essential python3-dev libssl-dev
- Create and enter your virtualenv. Go to some memorable directory and make and enter a virtualenv:
virtualenv --python python3 venv
. venv/bin/activate
Note that you will need to repeat the . venv/bin/activate
step from this directory to enter your virtualenv whenever you want to use the installed tool.
- Install the tool. Once in your virtualenv, install this project:
Install from git:
pip3 install git+https://github.com/bio-ontology-research-group/hguploader.git@master
- Test the tool. Try running:
hguploader --help
It should print some instructions about how to use the uploader.
Make sure you are in your virtualenv whenever you run the tool! If you ever can't run the tool, and your prompt doesn't say (venv)
, try going to the directory where you put the virtualenv and running . venv/bin/activate
. It only works for the current terminal window; you will need to run it again if you open a new terminal.
If you don't want to have to enter a virtualenv every time you use the uploader, you can use the --user
feature of pip3
to install the tool for your user.
- Prepare your system. Just as for the
virtualenv
method, you need to install some dependencies. On Ubuntu 18.04, you can run:
sudo apt update
sudo apt install -y virtualenv git libcurl4-openssl-dev build-essential python3-dev libssl-dev
- Install the tool. You can run:
pip3 install --user git+https://github.com/bio-ontology-research-group/hguploader.git@master
- Make sure the tool is on your
PATH
. Thepip3
command will install the uploader in.local/bin
inside your home directory. Your shell may not know to look for commands there by default. To fix this for the terminal you currently have open, run:
export PATH=$PATH:$HOME/.local/bin
To make this change permanent, assuming your shell is Bash, run:
echo 'export PATH=$PATH:$HOME/.local/bin' >>~/.bashrc
- Test the tool. Try running:
hguploader --help
It should print some instructions about how to use the uploader.
If you plan to contribute to the project, you may want to install an editable copy from source. With this method, changes to the source code are automatically reflected in the installed copy of the tool.
- Prepare your system. On Ubuntu 18.04, you can run:
sudo apt update
sudo apt install -y virtualenv git libcurl4-openssl-dev build-essential python3-dev libssl-dev
- Clone and enter the repository. You can run:
git clone https://github.com/bio-ontology-research-group/hguploader.git
cd hguploader
- Create and enter a virtualenv. Go to some memorable directory and make and enter a virtualenv:
virtualenv --python python3 venv
. venv/bin/activate
Note that you will need to repeat the . venv/bin/activate
step from this directory to enter your virtualenv whenever you want to use the installed tool.
- Install the checked-out repository in editable mode. Once in your virtualenv, install with this special pip command:
pip3 install -e .
- Test the tool. Try running:
hguploader --help
It should print some instructions about how to use the uploader.