-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: The Technocrat <[email protected]>
- Loading branch information
1 parent
d95ccda
commit 686a393
Showing
7 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import client | ||
import process | ||
import os | ||
import json | ||
|
||
if __name__ == "__main__": | ||
casf_list = os.listdir("/home/ubuntu/casf-2016") | ||
# print("generating docking instructions") | ||
# docking_instruct = client.generate_diffdock_instructions() | ||
# print("running docking") | ||
# process.main(docking_instruct) | ||
instruction_list = [] | ||
print("generating scoring instructions for vina") | ||
for i in casf_list: | ||
protein = i + '/' + i + '_protein.pdb' | ||
ligand = i + '/' + i + '_ligand.sdf' | ||
output = i + '/' + i + '_scored_vina.sdf.gz' | ||
instruction = client.generate_vina_instructions( | ||
protein=protein, | ||
ligand=ligand, | ||
output=output | ||
) | ||
print(instruction) | ||
instruction_list.append(instruction) | ||
print("generating scoring instructions for gnina") | ||
for i in casf_list: | ||
protein = i + '/' + i + '_protein.pdb' | ||
ligand = i + '/' + i + '_ligand.sdf' | ||
output = i + '/' + i + '_scored_gnina.sdf.gz' | ||
instruction = client.generate_gnina_instructions( | ||
protein=protein, | ||
ligand=ligand, | ||
output=output | ||
) | ||
print(instruction) | ||
instruction_list.append(instruction) | ||
print("running scoring") | ||
for instruction in instruction_list: | ||
process.main(json.loads(instruction)) |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#TODO #20 | ||
wget https://dist.ipfs.tech/kubo/v0.18.0/kubo_v0.18.0_linux-amd64.tar.gz | ||
tar -xvzf kubo_v0.18.0_linux-amd64.tar.gz | ||
cd kubo | ||
sudo bash install.sh | ||
ipfs --version | ||
|
||
# post installation | ||
ipfs init | ||
ipfs cat /ipfs/QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc/readme | ||
|
||
|
||
# port forwarding | ||
# 127.0.0.1:5001/webui | ||
# name files with ipfs get QmWLy5XUKuSVJiYirLfw3xSxD42BDPZEVvCv7f2mGanUiD -o test.png | ||
|
||
# NOTRUN screen -ls | ||
screen -dm ipfs daemon -D |
This file contains 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