Last active
October 12, 2023 13:02
-
-
Save matteoferla/236e8e1700c221f7cfa21992393119f9 to your computer and use it in GitHub Desktop.
Example of how I run a Fragmenstein analysis in Diamond
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! bin/bash | |
# For scripts required see: https://gist.github.com/matteoferla/e0496d5766c12a0ae1738b943b41a536 | |
# A few things don't work in CentOS 7 due to GNU lib C (glibc) 2.17, so it has to be run in a Singularity container | |
: << USAGE | |
export JOB_SCRIPT=/data/xchem-fragalysis/shared/singularity.sh; | |
export APPTAINER_CONTAINER=/data/xchem-fragalysis/shared/singularity/rockyplus.sif; | |
export JOB_INNER_SCRIPT=/data/xchem-fragalysis/mferla/Zika/job.sh; | |
condor_submit /data/xchem-fragalysis/shared/target_script.condor | |
USAGE | |
: << INSTALLATION | |
export PIP_NO_USER=1; # gets ignored. | |
export PYTHONUSERBASE=$CONDA_PREFIX; # double tap | |
conda install -y -n base -c conda-forge openbabel plip; | |
pip install -q fragmenstein | |
pip install -q pyrosetta-help | |
PYROSETTA_USERNAME=πΎπΎπΎ PYROSETTA_PASSWORD=πΎπΎπΎ install_pyrosetta | |
INSTALLATION | |
export HOST=${HOST:-$(hostname)} | |
export USER=${USER:-$(users)} | |
export HOME=${HOME:-$_CONDOR_SCRATCH_DIR} | |
source /etc/os-release; | |
echo "Running script ${0} as $USER in $HOST which runs $PRETTY_NAME" | |
# --------------------------------------------------------------- | |
source /data/xchem-fragalysis/mferla/.bashrc; | |
cd πΎπΎπΎ | |
pwd; | |
export TEMPLATE="πΎπΎπΎ/π€π€π€.pdb' | |
export HITS='πΎπΎπΎ/π€π€π€.sdf' | |
N_CORES=$(cat /proc/cpuinfo | grep processor | wc -l) | |
nice -19 python fragmenstein_merge_sw_place.py \ | |
--template $TEMPLATE --hits $HITS \ | |
--n_cores $(($N_CORES - 1)) --suffix _pairs \ | |
--workfolder /tmp/fragmenstein \ | |
--max_tasks 5000 \ | |
--sw_databases REAL-Database-22Q1.smi.anon \ | |
--weights weights.json \ | |
--combination_size 2 \ | |
--timeout 600; | |
echo 'COMPLETE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment