Skip to content

Commit

Permalink
Update web page
Browse files Browse the repository at this point in the history
  • Loading branch information
Pham Tran Huong Giang committed Jan 23, 2024
1 parent a0e9974 commit d47b4e2
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 26 deletions.
119 changes: 104 additions & 15 deletions docs/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Code</title>
<title>Use</title>
<link rel="stylesheet" href="style.css">
<!-- <script src="lib/d3.js"></script> -->
</head>

<body>
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand All @@ -23,33 +23,122 @@ <h2 class="subtitle" >
</div>
<div>
<h1 class ="section" >
Code
How to use the workflow
</h1>
</div>
<div>
<h2 style="margin-left: 5%; margin-right: 5%; text-align: center;">
Docker images: three docker images are needed to run the workflow
<h2 style="margin-left: 20%; margin-right: 20%; text-align: justify;">
Requirement:
</h2>
<p style="margin-left: 5%; margin-right: 5%; text-align: center; margin-top: 20px;">
Docker image for the worklfow:
<a href="https://hub.docker.com/repository/docker/giangpth/mpli/general">link</a>
<p style="margin-left: 20%; margin-right: 20%; text-align: justify; margin-top: 20px;">
- The workflow requires 3 docker images, source code of the workflow and source code to run AlphaFold.
<br></br>
Docker image for AlphaFold (the comparetible version with the workflow):
<a href="https://hub.docker.com/repository/docker/giangpth/mpli/general">link</a>
- The workflow is developed by python hence it also requires python and common package like numpy.
<br></br>
- To use AlphaFold, it is also necessary to download the database.
<br></br>
Docker image for Acpype (the comparetible version with the workflow):
- 4 input files are required: wt crystallographic model (.pdb format),
input file and mutation file follow a predefine template and the FASTA file of the wt protein.
<br></br>
- Note: The workflow can take longer than an ssh session, so it is suggested to run with a screen or tmux session.
<br></br>
</p>
</div>
<div>
<h2 style="margin-left: 20%; margin-right: 20%; text-align: justify;">
Docker images:
</h2>
<p style="margin-left: 20%; margin-right: 20%; text-align: justify; margin-top: 20px;">
- Docker image for the worklfow:
<a href="https://hub.docker.com/repository/docker/giangpth/mpli/general">link</a>
<br></br>
- Docker image for AlphaFold (the compatible version with the workflow):
<a href="https://hub.docker.com/repository/docker/giangpth/promialphafold/general">link</a>
<br></br>
- Docker image for Acpype (the compatible version with the workflow):
<a href="https://hub.docker.com/repository/docker/giangpth/promiacpype/general">link</a>
<br></br>
</p>
</div>
<div>
<h2 style="margin-left: 5%; margin-right: 5%; text-align: center;">
<h2 style="margin-left: 20%; margin-right: 20%; text-align: justify;">
Source code for the workflow:
</h2>
<p style="margin-left: 5%; margin-right: 5%; text-align: center; margin-top: 20px;">
The source code needed to run the workflow is available at:
<a href="https://github.com/Unipisa/mpl-affinity-wf">git hub repository</a>
<p style="margin-left: 20%; margin-right: 20%; text-align: justify; margin-top: 20px;">
- The source code needed to run the workflow is available at:
<a href="https://github.com/Unipisa/ProMI">ProMI repository</a>
<br></br>
</p>
</div>
<div>
<h2 style="margin-left: 20%; margin-right: 20%; text-align: justify;">
Instruction:
</h2>
<p style="margin-left: 20%; margin-right: 20%; text-align: justify; margin-top: 20px;">
- Down load the database of AlphaFold as instruction at:
<a href="https://github.com/google-deepmind/alphafold">AlphaFold repository</a>
<br></br>
- Clone the github repository of the source code and decompress alphafold folder (named alphafold.tar.gz)
<br></br>
- Prepare the input files: The wt crystallographic structure and the FASTA file of wt protein can be downloaded at:
<a href="https://www.rcsb.org">Protein data bank</a>
<br></br>
- Input file template: in which lines start with "#" are instruction; data_dir is the path to the folder contains AlphaFold database <br></br>
<code class="inlinecode">
# type of protein, can only be one of the following: mono<br></br>
type = mono<br></br>
# number of chain<br></br>
num_chain = 1<br></br>
# force field family, only support amber at this moment <br></br>
ff = amber<br></br>
# name of ligand of interest, modifty to the name of ligand <br></br>
lig = TMC<br></br>
# name of the force field, choose between: amber03, amber94, amber96, amber99,
amber99sb, amber99sb-ildn, ambergs<br></br>
ff_name = amber99<br></br>
# name of the water model <br></br>
water = tip3p<br></br>
# box type, choose between: triclinic, cubic, dodecahedron, octahedron<br></br>
bt = dodecahedron<br></br>
# Positive charge name <br></br>
p_name = NA<br></br>
# Negative charge name<br></br>
n_name = CL<br></br>
# number of simulation steps, this determines
the time of the simulation time (ns) = sim_step*0.002/1000 <br></br>
sim_step = 2000000<br></br>
# data directory for AlphaFold, set to the absolute path<br></br>
data_dir = /data/genetic_databases/<br></br>
</code>
- Mutation file template: each line corresponds to a mutant protein.
Keyword "point" indicate point mutation. Each point mutation follow the format
[chain-id]_[original amino acid][position of amino acid][new amino acid].
For multiple points mutation, separate each mutation by a comma.
Remember to list an identical mutation for the wt structure<br></br>
<code class="inlinecode">
point: 1_Y56F <br></br>
point: 1_Y56Y
</code>
<br></br>
- Command to run the workflow:<br></br>
<code class="inlinecode">
python3 pythonScript/workflowmut.py -i [path to the input file]
-f [path to the wt FASTA file] -m [path to the mutation file]
-p [path to the wt crystallographic file] -a [path to alphafold folder]
-l [name of the acpype docker image] -c [name of the workflow docker image]
-w [path to the output folder] -n [number of simulations for each protein]
</code>
<br></br>
- An example command to run the workflow (the flag -d is for debug mode)<br></br>
<code class="inlinecode">
python3 pythonScript/workflowmut.py -i test_data/1e2k/input_1e2k_ff99.txt
-f test_data/1e2k/rcsb_pdb_1E2K.fasta -m test_data/1e2k/mutations_1e2k.txt
-p test_data/1e2k/1e2k.pdb -a /home/t.pham1/alphafold
-l acpype/acpype -c mpli -w /home/t.pham1/workspace/scripts/test_res
-n 2 -d
</code>
</p>

</div>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion docs/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand Down
2 changes: 1 addition & 1 deletion docs/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>MPL</title>
<title>ProMI</title>
<link rel="stylesheet" href="style.css">
<!-- <script src="lib/d3.js"></script> -->
</head>
Expand All @@ -13,7 +13,7 @@
<!-- <canvas id = "mycanvas" width = "1200" height="900" style="top:30px;left:0px" display="inline">
</canvas> -->
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand Down Expand Up @@ -43,7 +43,7 @@ <h1 style="font-size: 20px; margin-top: 10px;">
onmouseover="style.background='dodgerblue'"
onmouseout="style.background='lightblue'">
<h1 style="font-size: 20px; margin-top: 10px;">
Code
Use
</h1>
</div>
<div id="result" onclick="location.href='result.html'; style.background='lightblue'"
Expand All @@ -65,7 +65,7 @@ <h1 style="font-size: 20px; margin-top: 10px;">
<h1 class="section">
Abstract
</h1>
<p style="font-size: 24px; text-align: justify; margin-left: 5%; margin-right: 5%;">
<p style="font-size: 24px; text-align: justify; margin-left: 20%; margin-right: 20%;">
<b>Background:</b> Proteins are frequently affected by mutations with consequences on
their structure’s stability, functionality, and binding affinity towards ligands,
with important biological effects. Molecular Dynamics Simulation (MDS) is one of
Expand Down
2 changes: 1 addition & 1 deletion docs/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand Down
14 changes: 11 additions & 3 deletions docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
height: 200px;
width: 200px;
background-image: url("blankava.jpg");
margin-left: 20%;
margin-right: 20%;
}
.contactinfo{
/* display: flex; */
Expand All @@ -91,6 +93,8 @@
width: 100%;
height: 100%;
/* background-color: #7b9fe0; */
/* margin-left: 20%;
margin-right: 20%; */
}
.profamily{
display: flex;
Expand All @@ -110,11 +114,13 @@
#bardiv{
background-color:lightblue;
display: flex;
width: 100%;
width: 60%;
height: 50px;
border: rgba(0, 0, 0, 0.5);
align-items: center;
vertical-align: middle;
margin-left: 20%;
margin-right: 20%;
}
#workflow{
width: 20%;
Expand Down Expand Up @@ -150,6 +156,8 @@
vertical-align: middle;
border-color: rgba(0, 0, 0, 0.5);
border-style: groove;
/* margin-left: 20%;
margin-right: 20%; */
}

.title {
Expand All @@ -159,8 +167,8 @@
text-align: center;
margin-bottom: 100px;
margin-top: 50px;
margin-left: 5%;
margin-right: 5%;
margin-left: 20%;
margin-right: 20%;
}
.subtitle {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion docs/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body>
<div id ='introdiv' class ="introdiv" onclick="location.href='index.html'">
<h1 class="title" >
<h1 class="title" style = "margin-left: 20%; margin-right: 20%;">
<br></br>
ProMI: A computational workflow for estimation of amino
acid mutations impact on protein-ligand affinity based on
Expand Down
Binary file modified test_data/.DS_Store
Binary file not shown.

0 comments on commit d47b4e2

Please sign in to comment.