-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotein_water_ligand_membrane_glycan.sh
More file actions
executable file
·66 lines (51 loc) · 1.61 KB
/
protein_water_ligand_membrane_glycan.sh
File metadata and controls
executable file
·66 lines (51 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
set -e
# グリカンがタンパク質と同一PDBに含まれている前提
input_structure="prot_lig.pdb"
out_dir="${PWD}/gmx"
lig_frcmod="./LIG.frcmod"
lig_lib="./LIG.lib"
mdtbx addh -s ${input_structure} -o input_h
mdtbx addace -s input_h.pdb -o ace
mdtbx addnme -s ace.pdb -o ace_nme
mdtbx find_bond -s ace_nme.pdb -o bonds.txt -op cym.pdb
# SS-bond有無で入力PDBを切り替え
if [ -s bonds.txt ]; then
input_pdb="cym.pdb"
else
input_pdb="ace_nme.pdb"
fi
# --keepligs でグリカン座標を保持、--gaff2 は使わずGLYCAM06-jをtleapでロード
mdtbx cmd packmol-memgen \
--pdb ${input_pdb} \
--lipids POPC:CHL1 \
--ratio 4:1 \
--salt \
--salt_c Na+ \
--salt_a Cl- \
--saltcon 0.15 \
--keepligs \
--notprotonate \
--dims 120 120 200 \
--ffwat tip3p \
--ffprot ff14SB \
--fflip lipid21 \
--ligand_param ${lig_frcmod}:${lig_lib} \
--leapline "source leaprc.GLYCAM_06j-1"
mdtbx amb2gro -p bilayer_${input_pdb%.pdb}_lipid.top -x bilayer_${input_pdb%.pdb}_lipid.crd --type parmed
mdtbx add_ndx -g gmx.gro
mdtbx centering_gro -f gmx.gro -p gmx.top -c Protein
mdtbx gen_posres -p gmx.top -s "protein and backbone" -o posres
mdtbx rmfile
mkdir ${out_dir}
mv gmx.gro ${out_dir}/
mv gmx.top ${out_dir}/
mv *itp ${out_dir}/
mv *.ndx ${out_dir}/
cp mdps/*.mdp ${out_dir}/
cp mdrun_slurm.sh ${out_dir}/
rm -f input_h.pdb ace.pdb ace_nme.pdb cym.pdb bonds.txt \
bilayer_*.pdb bilayer_*.pdb_FORCED bilayer_*.crd bilayer_*.top \
*in_EMBED.pdb *in_memembed.log \
leap_.log packmol-memgen.log packmol.inp packmol.log gmx.pdb
echo done