-
Notifications
You must be signed in to change notification settings - Fork 16
Running with the Docker image
Note: Make sure Docker is running
This will pull the latest image from Docker hub and run genome creation.
docker run -ti -v "$PWD":/infiles -v '/local/path/to/genomes/:/genomes' jambler24/gengraph make_genome_graph --seq_file /infiles/sequences.txt --out_file_name run_name --out_file_path /genomes
docker build -f ./DockerFile --tag=ggimage .
When running the tool with a Docker image, there are some changes to the paths that you need to do.
- In the sequence file, the path to all genomes must become:
/genomes/<sequence_name>.fa
- The
-v
flag in thedocker run
command creates links between the data on your system to locations within the Docker image. The flag is structured:
-v <local path>:<location in Docker image>
.- Specify the path to the input files. This refers to the sequence file. If it is in your current directory, leave it as:
-v "$PWD":/infiles
If not, change it to:
-v '/path/to/sequence/file/:/infiles'
- Specify the path to the genome files. This is mounted to the
/genomes
folder in the Docker image.
-v '/local/path/to/genomes/:/genomes'
- Specify the path to the input files. This refers to the sequence file. If it is in your current directory, leave it as:
- Specify the tag used when building your image. In this case, it was:
ggimage
docker run -ti -v "$PWD":/infiles -v '/local/path/to/genomes/:/genomes' ggimage make_genome_graph --seq_file /infiles/sequences.txt --out_file_name run_name --out_file_path /genomes
The output files (run_name.xml etc.) will be placed in the directory where the genomes were found. In this case:
/local/path/to/genomes/