Skip to content

Commit

Permalink
Merge pull request #127 from adaptyvbio/improve_splitting
Browse files Browse the repository at this point in the history
Fix docs
  • Loading branch information
elkoz authored Dec 21, 2023
2 parents 08165b8 + 5c38cf6 commit 951a57f
Show file tree
Hide file tree
Showing 8 changed files with 819 additions and 126 deletions.
186 changes: 142 additions & 44 deletions docs/data/index.html

Large diffs are not rendered by default.

312 changes: 236 additions & 76 deletions docs/data/torch.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2 id="installation">Installation</h2>
<pre><code class="language-bash">docker pull adaptyvbio/proteinflow
</code></pre>
<p>By default installing <code><a title="proteinflow" href="#proteinflow">proteinflow</a></code> with conda or pip will only load the dependencies that are required for the main functions of the package: downloading, generating and splitting datasets. If you are interested in using other functions like visualization, metrics and other data processing methods, please install the package with <code>pip install <a title="proteinflow" href="#proteinflow">proteinflow</a>[<a title="proteinflow.processing" href="processing/index.html">proteinflow.processing</a>]</code> or use the docker image.</p>
<p>Some metric functions also have separate requirements, see the documentation for details.</p>
<p>Some metric functions also have separate requirements, see the documentation for details. All of them are installed in the docker image.</p>
<h3 id="troubleshooting">Troubleshooting</h3>
<ul>
<li>If you are using python 3.10 and encountering installation problems, try running <code>python -m pip install prody==2.4.0</code> before installing <code><a title="proteinflow" href="#proteinflow">proteinflow</a></code>.</li>
Expand Down Expand Up @@ -269,7 +269,7 @@ <h2 id="proteinflow-stable-releases">ProteinFlow Stable Releases</h2>

By default installing `proteinflow` with conda or pip will only load the dependencies that are required for the main functions of the package: downloading, generating and splitting datasets. If you are interested in using other functions like visualization, metrics and other data processing methods, please install the package with `pip install proteinflow[processing]` or use the docker image.

Some metric functions also have separate requirements, see the documentation for details.
Some metric functions also have separate requirements, see the documentation for details. All of them are installed in the docker image.

### Troubleshooting
- If you are using python 3.10 and encountering installation problems, try running `python -m pip install prody==2.4.0` before installing `proteinflow`.
Expand Down
436 changes: 434 additions & 2 deletions docs/metrics/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proteinflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
By default installing `proteinflow` with conda or pip will only load the dependencies that are required for the main functions of the package: downloading, generating and splitting datasets. If you are interested in using other functions like visualization, metrics and other data processing methods, please install the package with `pip install proteinflow[processing]` or use the docker image.
Some metric functions also have separate requirements, see the documentation for details.
Some metric functions also have separate requirements, see the documentation for details. All of them are installed in the docker image.
### Troubleshooting
- If you are using python 3.10 and encountering installation problems, try running `python -m pip install prody==2.4.0` before installing `proteinflow`.
Expand Down
2 changes: 1 addition & 1 deletion proteinflow/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(
seqs : list of str
Amino acid sequences of the protein (one-letter code)
crds : list of np.ndarray
Coordinates of the protein, `'numpy'` arrays of shape `(L, 4, 3)`,
Coordinates of the protein, `numpy` arrays of shape `(L, 14, 3)`,
in the order of `N, C, CA, O`
masks : list of np.ndarray
Mask arrays where 1 indicates residues with known coordinates and 0
Expand Down
2 changes: 2 additions & 0 deletions proteinflow/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
pass

import sys
from functools import wraps


def requires_extra(module_name, install_name=None):
Expand All @@ -23,6 +24,7 @@ def requires_extra(module_name, install_name=None):
install_name = module_name

def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
if module_name not in sys.modules:
raise ImportError(
Expand Down
1 change: 1 addition & 0 deletions proteinflow/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def blosum62_score(seq_before, seq_after):
return score


@requires_extra("blosum")
def long_repeat_num(seq, thr=5):
"""Calculate the number of long repeats in a sequence.
Expand Down

0 comments on commit 951a57f

Please sign in to comment.