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

Protein_ligand.ipynb #113

Open
raphaelolipitz opened this issue May 24, 2024 · 1 comment
Open

Protein_ligand.ipynb #113

raphaelolipitz opened this issue May 24, 2024 · 1 comment

Comments

@raphaelolipitz
Copy link

Hallo There :)

I want to run the colab script Protein_ligand.ipynb but it do not run. Besides its the same code as in the amber.ipynb this line got me the Error: vol not defined.

with open("temp.txt", 'r') as f:
for line in f:
vol = float(line.split()[1])

vol_lit = vol * pow(10, -27)
atom_lit = 9.03 * pow(10, 22)
conc = float(Concentration)
num_ion = int(vol_lit * (conc/0.15) * atom_lit)

if I change the code so that vol gets a global float, the error do not occur anymore, how ever I got the Problem that I got the Error massage that the file: ligand_gff.pdb can not be found.

Maybe the Error is here?
lig_new = os.path.join(workDir, "ligand_gaff.pdb")
.
.
.
f = open(tleap, "w")
f.write("""source """ + str(ff) + "\n"
"""source leaprc.gaff2
LIG = loadmol2 """ + str(ligand_mol2) + "\n"
"""loadamberparams """ + str(ligand_frcmod) + "\n"
"""saveoff LIG """ + str(lib) + "\n"
"""savepdb LIG """ + str(lig_new) + "\n"
"""quit""")
f.close()

tleap_command = "tleap -f " + str(tleap)
cat_command = "cat " + str(starting_end) + " " + str(lig_new) + str(" > ") + str(protein_ligand)

Thanks for your help in advance!
Raphael

@hajnal-adam
Copy link

I ran into the same issue. A fix would be very much appreciated!

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