backofenlab / casboundary Goto Github PK
View Code? Open in Web Editor NEWAutomated definition of integral CRISPR/Cas cassettes.
License: GNU General Public License v3.0
Automated definition of integral CRISPR/Cas cassettes.
License: GNU General Public License v3.0
Some recommendations. I'm trying to install Casboundary into a Singularity container and I'm finding some difficulties.
See the singularity file (very similar to a docker file in structure)
Bootstrap: docker
From: mambaorg/micromamba:1.4.9
%files
./v1.0.1.zip /opt/ # Copy latest version from current dir into the container
./*.tar /opt/ # Copy the four '.tar' files from current dir into the container
%post
apt update -y && apt install zip -y
unzip /opt/v1.0.1.zip -d /opt/ # Unzip Casboundary
mv /opt/*.tar /opt/Casboundary-1.0.1/ # Move models into installation path
cd /opt/Casboundary-1.0.1/ # Go inside installation path
chmod +x *.py # Make all py files executable
tar -xf Cas_HMM.tar # Untar models ...
tar -xf Gen_HMM.tar
tar -xf ML_models.tar
tar -xf Cas_HMM.tar
micromamba create -f casboundary-env.yml # Create and solve env
micromamba clean --all --yes
%environment
export PATH=/opt/Casboundary-1.0.1:/opt/conda/envs/casboundary-env/bin:$PATH # Export binary paths to PATH
%runscript
python /opt/Casboundary-1.0.1/Casboundary.py "$@" # Runscript
The models are compressed as .tar
files, but the script tries to find .tar.gz
files:
Line 48 in eea3c99
And also, when I call Casboundaries.py
from any other path, it fails because none of the directories are located in the working directory. It seems one only can run it from the installation directory where the models are located.
$ singularity run /home/iferres/singularity/casboundary/casboundary.sif -f dummy.fasta -c complete
Traceback (most recent call last):
File "/opt/Casboundary-1.0.1/Casboundary.py", line 311, in <module>
extract_targz(CAS_HMM_TAR_PATH)
File "/opt/Casboundary-1.0.1/utils.py", line 31, in extract_targz
raise ValueError(f'{targz_file_path} file not found. You should download it from our Google Drive. See README.md for details.')
ValueError: Cas_HMM.tar.gz file not found. You should download it from our Google Drive. See README.md for details.
Maybe an option to point to a location where all the models are located would solve this issue. Something like:
Casboundary.py ... --models_dir /path/to/models/ dummy.fasta
Also note that Casboundary.py
doesn't have a shebang, and so you need to specify python /path/to/Casboundary.py
. Putting something like #!/usr/bin/env python
at the beginning of the script would allow to call it directly, like ./Casboundary
, without need to call the python interpreter.
Thank you for this cool pipeline, by the way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.