-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Dreycey Albin edited this page Jun 7, 2024
·
7 revisions
This "quick start" guide walks through the core concepts of everything covered in the Wiki. It's essentially a TLDR for how to get started without reading through the other wiki pages.
The fastest way to get started with PhageScanner is by using the Docker image. If you don't want to use docker, then please use the steps used in the installation guide. The following commands can be used to install the Docker image:
Download Docker (see the Docker Guides if you are new to Docker):
- Installation Instructions for Mac: https://docs.docker.com/desktop/install/mac-install/
- Installation Instructions for Ubuntu: https://docs.docker.com/engine/install/ubuntu/
- Installation Instructions for Windows: https://docs.docker.com/desktop/install/windows-install/
Pull down the docker image from DockerHub
docker pull dreyceyalbin/phagescanner
Test that the help message prints
docker run --rm dreyceyalbin/phagescanner --help
docker run --rm \
-v "$(pwd)/configs:/app/configs" \
-v "$(pwd)/multiclass_database:/app/multiclass_database" \
dreyceyalbin/phagescanner database -c /app/configs/multiclass_config.yaml -o /app/multiclass_database/ -v info
docker run --rm \
-v "$(pwd)/configs:/app/configs" \
-v "$(pwd)/multiclass_database:/app/multiclass_database" \
-v "$(pwd)/training_output:/app/training_output" \
dreyceyalbin/phagescanner train -c /app/configs/multiclass_config.yaml -o /app/training_output --database_csv_path /app/multiclass_database/ -v debug
docker run --rm \
-v "$(pwd)/configs:/app/configs" \
-v "$(pwd)/examples:/app/examples" \
-v "$(pwd)/prediction_output:/app/prediction_output" \
-v "$(pwd)/training_output:/app/training_output" \
dreyceyalbin/phagescanner predict -t "genome" -c /app/configs/multiclass_config.yaml -o /app/prediction_output -n "OUTPREFIX" -tdir .\training_output\ -i /app/examples/GCF_000912975.1_ViralProj227117_genomic.fna -v debug