annotate PLIDflow/launch_confmaker_multiple.sh @ 3:d45ae17b4470 draft

Removed modeller which was not necessary anymore
author bitlab
date Mon, 27 Jan 2020 02:49:46 -0500
parents 6fcfa4756040
children b9e7ec4e3cde
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
1 receptor_pdbqt=$1
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
2 receptor_pdbqt_modified=$2
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
3 receptor_pdbqt_modified2=$3
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
4 ligand_pdbqt=$4
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
5 size_x=$5
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
6 out=$6
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
7 log=$7
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
8 receptor_name=$8
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
9 ligand_name=$9
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
10 # This one is to extract the protein code and to check whether the fillouts have already been done
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
11 # This is for the parallel version, ignore
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
12 receptor_file=${10}
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
13 receptorTypes=${11}
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
14 toolsDirectory=${12}
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
15
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
16 # Configuration variables // This is not really necessary anymore
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
17 MYRAND=$(( ( RANDOM % 10000000 ) + 1 ))
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
18 RANDDIR=${MYRAND}
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
19
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
20
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
21
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
22
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
23
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
24 mkdir $RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
25
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
26
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
27 cp -r ${toolsDirectory}/scripts/* $RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
28 echo "$toolsDirectory"
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
29
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
30 cp $receptorTypes $RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
31 NOMBRERECEPTOR=$(basename $receptorTypes)
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
32 mv $RANDDIR/$NOMBRERECEPTOR $RANDDIR/receptor_atm_types.txt
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
33
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
34 MYPWD=$PWD
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
35
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
36
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
37 cd $RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
38
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
39 source ADT_VENV/bin/activate
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
40
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
41 #echo "[RUNNING] - (Rscript pdbcenter_npts_finder.R $receptor_pdbqt_modified $RANDDIR) &>/dev/null"
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
42 Rscript pdbcenter_npts_finder.R $receptor_pdbqt_modified2 $MYPWD/$RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
43
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
44 #echo "[RUNNING] - (Rscript gpffilemaker.R $receptor_pdbqt $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
45 Rscript gpffilemaker.R $receptor_pdbqt_modified2 $MYPWD/$RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
46
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
47 #echo "[RUNNING] - (Rscript glgfilemaker.R $receptor_pdbqt $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
48 Rscript glgfilemaker.R $receptor_pdbqt_modified2 $MYPWD/$RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
49
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
50 #echo "[RUNNING] - (Rscript envelopesmaker.R $receptor_pdbqt $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
51 #(Rscript envelopesmaker.R $receptor_pdbqt $RANDDIR) &>/dev/null
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
52 pathLigand=$(which AutoLigand.py)
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
53 Rscript envelopesmaker.R $receptor_pdbqt_modified2 $MYPWD/$RANDDIR $pathLigand
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
54
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
55 #cp ~/proteindb/2E9U_PH7/FILL* .
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
56
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
57 #echo "[RUNNING] - (Rscript envelopesmaker.R $receptor_pdbqt $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
58 #(Rscript envelopesmaker.R $receptor_pdbqt $RANDDIR) &>/dev/null
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
59
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
60
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
61 #echo "[RUNNING] - (Rscript clusterfilemaker.R $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
62 Rscript clusterfilemaker.R $MYPWD/$RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
63
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
64
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
65 #echo "[RUNNING] - (Rscript clusterfinder_Auto.R $RANDDIR) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
66 Rscript clusterfinder_Auto.R $MYPWD/$RANDDIR
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
67
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
68
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
69 #echo "[RUNNING] - (Rscript cluster_to_vina_cluster.R $receptor_pdbqt_modified2 $ligand_pdbqt $out $log $size_x $RANDDIR $receptor_name $ligand_name) "
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
70 Rscript cluster_to_vina_cluster.R $receptor_pdbqt_modified2 $ligand_pdbqt $out $log $size_x $MYPWD/$RANDDIR $receptor_name $ligand_name
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
71
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
72
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
73 cd $MYPWD
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
74
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
75
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
76 deactivate