Skip to content

Commit 59dfb62

Browse files
sansrscysloth
andauthored
Doc sphinx (#6)
* sphinx docs * Create CNAME * completed the documentation and benchmarks for search, discovery and restrictions * Update README.md * test * fixed few bugs in main.py * test files added * test files/npz added * command to run test * Update CNAME * Update CNAME * docs removed * compiled docs for web Co-authored-by: cysloth <[email protected]>
1 parent 2a182e5 commit 59dfb62

File tree

160 files changed

+46291
-316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+46291
-316
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
models/model_final_002.pth filter=lfs diff=lfs merge=lfs -text
2+
data/test_npz.tgz filter=lfs diff=lfs merge=lfs -text

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Surface Similarity Search via Geometric Deep Learning: SurfaceID
22

3-
![alt text](https://github.com/Sanofi-GitHub/LMR-SurfaceID/blob/main/data/toc.png?raw=true)
3+
![alt text](https://github.com/Sanofi-GitHub/LMR-SurfaceID/blob/doc_sphinx/data/toc.png)
44

55
A protein can be represented in several forms, including its 1D sequence, 3D atom coordinates, and molecular surface. A protein surface contains rich structural and chemical features directly related to the protein’s function such as its ability to interact with other molecules. While many methods have been developed for comparing similarity of proteins using the sequence and structural representations, computational methods based on molecular surface representation are limited. Here, we describe “Surface ID”, a geometric deep learning system for high-throughput surface comparison based on geometric and chemical features. Surface ID offers a novel grouping and alignment algorithm useful for clustering proteins by function, visualization, and in-silico screening of potential binding partners to a target molecule. Our method demonstrates top performance in surface similarity assessment, indicating great potential for protein functional annotation, a major need in protein engineering and therapeutic design.
66

@@ -22,7 +22,8 @@ make install
2222
```bash
2323
python3.9 -m venv sandbox
2424
source sandbox/bin/activate
25-
python main.py
25+
#untar the test_npz file and run:
26+
python main.py --params data/config.yml --library data/test.tsv
2627
```
2728

2829
## Data
@@ -90,4 +91,4 @@ Reference to cite when you use Faiss in a research paper:
9091
year={2022},
9192
publisher={Nature}
9293
}
93-
```
94+
```

data/config.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
# Generall varaibles
3+
CONTACT : True
4+
DESC : True
5+
SEARCH : True
6+
RESTRICT: False
7+
ALIGN : True
8+
SAVEPLY : False
9+
HEATMAP : False
10+
11+
# Model Name
12+
MODEL:
13+
NAME: final_002
14+
15+
# Model related variables
16+
MODEL_PARAMETER:
17+
rho_max: 6.0
18+
nbins_rho: 5
19+
nbins_theta: 16
20+
num_in: 5
21+
neg_margin: 10.
22+
add_center_pixel: True
23+
share_soft_grid_across_channel: True
24+
conv_type: sep
25+
num_filters: 512
26+
weight_decay: 1.e-2
27+
dropout: 0.1
28+
min_sig: 5.e-2
29+
lr: 5e-4
30+
31+
SPATIAL_PARAMETER:
32+
thres: 5.0
33+
expand_radius : 2.0
34+
neighbor_dist : 3.0
35+
nmin_pts : 40
36+
nmin_pts_library: 30
37+
contact_thres1: 3.0
38+
contact_thres2: None
39+
contact_mode: dist
40+
npatience: 100
41+
42+
# Path related variables
43+
PATH:
44+
CATALOG_PAIRS : data/test.tsv
45+
OUTDIR : data/npz
46+
SAVEDIR : models
47+
MODEL: final_002
48+
TARGET: 4FQI_AB
49+
CASE: test
50+
51+
HIT_COLUMNS:
52+
- target
53+
- library epitope
54+
- target_nhits
55+
- target_nexpanded
56+
- mean_desc_dist
57+
- library_nhits
58+
- library_nexpanded
59+
- frac_library_hits
60+
- target_expanded_indices
61+
- library_epitope_indices

data/test.tsv

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id Ag Ab
2+
4FQI AB HL
3+
4FQY AB HL

data/test_npz.tgz

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:56432dbec8718bd889fbba9273466303f1fd3739b03d2f51d2633915dead9069
3+
size 560709960

data/toc.png

82.8 KB
Loading

docs/.buildinfo

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 49a2f8507e1b6d15500265e4cdd2009c
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/.nojekyll

Whitespace-only changes.

docs/doctrees/aligner.doctree

3.11 KB
Binary file not shown.

docs/doctrees/environment.pickle

113 KB
Binary file not shown.

docs/doctrees/index.doctree

5.7 KB
Binary file not shown.

docs/doctrees/model.doctree

35.6 KB
Binary file not shown.

docs/doctrees/modules.doctree

2.64 KB
Binary file not shown.

docs/doctrees/setup.doctree

6.78 KB
Binary file not shown.

docs/doctrees/util.doctree

184 KB
Binary file not shown.

docs/html/.buildinfo

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 49a2f8507e1b6d15500265e4cdd2009c
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/html/_modules/index.html

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<!DOCTYPE html>
2+
<html class="writer-html5" lang="en" >
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Overview: module code &mdash; LMR-SurfaceID 0.1 documentation</title>
7+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
8+
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
9+
<!--[if lt IE 9]>
10+
<script src="../_static/js/html5shiv.min.js"></script>
11+
<![endif]-->
12+
13+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
14+
<script src="../_static/jquery.js"></script>
15+
<script src="../_static/underscore.js"></script>
16+
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
17+
<script src="../_static/doctools.js"></script>
18+
<script src="../_static/sphinx_highlight.js"></script>
19+
<script src="../_static/js/theme.js"></script>
20+
<link rel="index" title="Index" href="../genindex.html" />
21+
<link rel="search" title="Search" href="../search.html" />
22+
</head>
23+
24+
<body class="wy-body-for-nav">
25+
<div class="wy-grid-for-nav">
26+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
27+
<div class="wy-side-scroll">
28+
<div class="wy-side-nav-search" >
29+
<a href="../index.html" class="icon icon-home"> LMR-SurfaceID
30+
</a>
31+
<div role="search">
32+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
33+
<input type="text" name="q" placeholder="Search docs" />
34+
<input type="hidden" name="check_keywords" value="yes" />
35+
<input type="hidden" name="area" value="default" />
36+
</form>
37+
</div>
38+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
39+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
40+
<ul>
41+
<li class="toctree-l1"><a class="reference internal" href="../util.html">util package</a></li>
42+
<li class="toctree-l1"><a class="reference internal" href="../modules.html">util</a></li>
43+
<li class="toctree-l1"><a class="reference internal" href="../setup.html">Setup</a></li>
44+
<li class="toctree-l1"><a class="reference internal" href="../model.html">model package</a></li>
45+
<li class="toctree-l1"><a class="reference internal" href="../model.html#module-surfaceid.surfaceid.model.model">model.model module</a></li>
46+
<li class="toctree-l1"><a class="reference internal" href="../aligner.html">aligner package</a></li>
47+
<li class="toctree-l1"><a class="reference internal" href="../aligner.html#model-aligner-module">model.aligner module</a></li>
48+
</ul>
49+
50+
</div>
51+
</div>
52+
</nav>
53+
54+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
55+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
56+
<a href="../index.html">LMR-SurfaceID</a>
57+
</nav>
58+
59+
<div class="wy-nav-content">
60+
<div class="rst-content">
61+
<div role="navigation" aria-label="Page navigation">
62+
<ul class="wy-breadcrumbs">
63+
<li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
64+
<li>Overview: module code</li>
65+
<li class="wy-breadcrumbs-aside">
66+
</li>
67+
</ul>
68+
<hr/>
69+
</div>
70+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
71+
<div itemprop="articleBody">
72+
73+
<h1>All modules for which code is available</h1>
74+
<ul><li><a href="surfaceid/surfaceid/model/model.html">surfaceid.surfaceid.model.model</a></li>
75+
<li><a href="surfaceid/surfaceid/util/Config.html">surfaceid.surfaceid.util.Config</a></li>
76+
<li><a href="surfaceid/surfaceid/util/mol.html">surfaceid.surfaceid.util.mol</a></li>
77+
<li><a href="surfaceid/surfaceid/util/utils.html">surfaceid.surfaceid.util.utils</a></li>
78+
</ul>
79+
80+
</div>
81+
</div>
82+
<footer>
83+
84+
<hr/>
85+
86+
<div role="contentinfo">
87+
<p>&#169; Copyright 2022, sansrs.</p>
88+
</div>
89+
90+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
91+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
92+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
93+
94+
95+
</footer>
96+
</div>
97+
</div>
98+
</section>
99+
</div>
100+
<script>
101+
jQuery(function () {
102+
SphinxRtdTheme.Navigation.enable(true);
103+
});
104+
</script>
105+
106+
</body>
107+
</html>

0 commit comments

Comments
 (0)