Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python script for data downloads. #5

Open
spficklin opened this issue Feb 12, 2020 · 2 comments
Open

Python script for data downloads. #5

spficklin opened this issue Feb 12, 2020 · 2 comments
Assignees

Comments

@spficklin
Copy link
Member

spficklin commented Feb 12, 2020

Currently there are several scripts that get the data needed for AnnoTater. For the data sets that will use Diamond they must be indexed and currently the scripts have a Docker command hardcoded. That docker command does not work on HPC systems that only support Singularity nor on Kubernetes.

A solution to be more flexible would be to create a python script that could be more flexible.

The variables to consider providing to the script would be

  1. The Annotater version: this would be used to specify the docker image names (e.g. annotater/diamond:0.9.25-[version])
  2. The container manager: singularity or docker
  3. Anything else that helps specify needed mount points (such as with Kubernetes).
@spficklin
Copy link
Member Author

Here are the singularity command for Kamiak:

For the Uniprot SwissProt database. This command is meant to be run in the same directory as the data file. The -B ${PWD} argument mounts the current directory in the singularity image and singularity then runs diamond in the current working directory (same as mounted with -B)

singularity exec -B ${PWD} docker://annotater/diamond:0.9.25-0.9 diamond makedb --threads 4 --in uniprot_sprot.fasta 

@spficklin
Copy link
Member Author

See PR #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants