metapredict 2.63__tar.gz → 2.65.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {metapredict-2.63 → metapredict-2.65.0}/.gitignore +4 -0
- {metapredict-2.63 → metapredict-2.65.0}/.lgtm.yml +0 -3
- metapredict-2.65.0/CONTRIBUTING.md +72 -0
- metapredict-2.65.0/MANIFEST.in +10 -0
- metapredict-2.65.0/PKG-INFO +20 -0
- metapredict-2.63/PKG-INFO → metapredict-2.65.0/README.md +29 -27
- {metapredict-2.63 → metapredict-2.65.0}/changelog.md +12 -0
- {metapredict-2.63 → metapredict-2.65.0}/devtools/README.md +3 -4
- {metapredict-2.63 → metapredict-2.65.0}/docs/conf.py +1 -1
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/.DS_Store +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/__init__.py +8 -13
- metapredict-2.65.0/metapredict/_version.py +1 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/.DS_Store +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/cython/domain_definition.c +1495 -1461
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/meta_predict_disorder.py +1 -1
- {metapredict-2.63/metapredict/tests → metapredict-2.65.0/metapredict/backend/ppLDDT}/.DS_Store +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/py_predictor_v2.py +1 -1
- metapredict-2.65.0/metapredict/data/.DS_Store +0 -0
- metapredict-2.65.0/metapredict/scripts/__init__.py +0 -0
- metapredict-2.63/scripts/metapredict-graph-disorder → metapredict-2.65.0/metapredict/scripts/metapredict_graph_disorder.py +1 -1
- metapredict-2.63/scripts/metapredict-graph-pLDDT → metapredict-2.65.0/metapredict/scripts/metapredict_graph_pLDDT.py +1 -1
- metapredict-2.63/scripts/metapredict-name → metapredict-2.65.0/metapredict/scripts/metapredict_name.py +1 -1
- metapredict-2.63/scripts/metapredict-predict-disorder → metapredict-2.65.0/metapredict/scripts/metapredict_predict_disorder.py +1 -1
- metapredict-2.63/scripts/metapredict-predict-idrs → metapredict-2.65.0/metapredict/scripts/metapredict_predict_idrs.py +1 -5
- metapredict-2.63/scripts/metapredict-predict-pLDDT → metapredict-2.65.0/metapredict/scripts/metapredict_predict_pLDDT.py +1 -2
- metapredict-2.63/scripts/metapredict-quick-graph → metapredict-2.65.0/metapredict/scripts/metapredict_quick_graph.py +1 -2
- metapredict-2.63/scripts/metapredict-quick-predict → metapredict-2.65.0/metapredict/scripts/metapredict_quick_predict.py +1 -1
- metapredict-2.63/scripts/metapredict-uniprot → metapredict-2.65.0/metapredict/scripts/metapredict_uniprot.py +1 -1
- metapredict-2.65.0/metapredict/tests/.DS_Store +0 -0
- metapredict-2.65.0/metapredict/tests/.pytest_cache/v/cache/lastfailed +22 -0
- metapredict-2.65.0/metapredict/tests/.pytest_cache/v/cache/nodeids +82 -0
- metapredict-2.65.0/metapredict/tests/output/readme.txt +1 -0
- metapredict-2.65.0/metapredict.egg-info/PKG-INFO +20 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict.egg-info/SOURCES.txt +17 -10
- metapredict-2.65.0/metapredict.egg-info/entry_points.txt +10 -0
- metapredict-2.65.0/metapredict.egg-info/not-zip-safe +1 -0
- metapredict-2.65.0/metapredict.egg-info/requires.txt +13 -0
- metapredict-2.65.0/pyproject.toml +73 -0
- {metapredict-2.63 → metapredict-2.65.0}/readthedocs.yml +13 -1
- {metapredict-2.63 → metapredict-2.65.0}/setup.cfg +0 -7
- metapredict-2.65.0/setup.py +25 -0
- metapredict-2.63/MANIFEST.in +0 -6
- metapredict-2.63/README.md +0 -84
- metapredict-2.63/metapredict/_version.py +0 -21
- metapredict-2.63/metapredict/tests/.pytest_cache/v/cache/lastfailed +0 -1
- metapredict-2.63/metapredict/tests/.pytest_cache/v/cache/nodeids +0 -31
- metapredict-2.63/metapredict.egg-info/PKG-INFO +0 -105
- metapredict-2.63/metapredict.egg-info/requires.txt +0 -10
- metapredict-2.63/setup.py +0 -115
- metapredict-2.63/versioneer.py +0 -1822
- {metapredict-2.63 → metapredict-2.65.0}/.codecov.yml +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/.travis.yml +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/CODE_OF_CONDUCT.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/LICENSE +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/colab/metapredict_colab.ipynb +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/devtools/conda-envs/test_env.yaml +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/devtools/scripts/create_conda_env.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/devtools/travis-ci/before_install.sh +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/.DS_Store +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/Makefile +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/README.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/_static/README.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/_templates/README.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/changes.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/getting_started.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/how_to_cite.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/images/confidence_scores_disorder.png +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/images/meta_predict_disorder.png +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/images/python_meta_predict_MadeUpProtein.png +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/index.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/make.bat +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/requirements.txt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/usage/acknowledgements.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/usage/api.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/usage/command-line.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/usage/troubleshooting.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/docs/usage/using-in-python.rst +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/batch_predict.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/brnn_architecture.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/cython/domain_definition.pyx +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/data_structures.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/domain_definition.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/encode_sequence.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/meta_graph.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/meta_tools.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/metameta_hybrid_predict.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/.DS_Store +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/metaDisorder.pt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/meta_predict_disorder_100e_v1.pt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/metameta_2_7_22_nl2_hs20_b32_V3.pt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/metapredict_network_v2_200epochs_nl1_hs20.pt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/networks/metapredict_network_v3_200epochs_nl2_hs20.pt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/backend/uniprot_predictions.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/data/README.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/data/test_data.fasta +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/meta.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/metapredict_exceptions.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/parameters.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/.pytest_cache/.gitignore +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/.pytest_cache/CACHEDIR.TAG +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/.pytest_cache/README.md +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/.pytest_cache/v/cache/stepwise +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/__init__.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/cli_tests/__init__.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/cli_tests/input/three_seqs.fasta +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/cli_tests/test_metapredict-predict-disorder.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/cli_tests/test_metapredict-predict-idrs.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/DisorderPredictionssp_P04637_P53_HUMANC.txt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/build_data.ipynb +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/test_scores_100.npy +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/test_seqs_100.fasta +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/testing.fasta +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/input_data/three_seqs.fasta +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/local_data.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/pytest.ini +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_batch_vs_single.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_cython_v_python.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_domain_functions.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_graph_disorder.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_graph_fasta.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_metapredict.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_uniprot_functionality.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict/tests/test_write_fasta.py +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict.egg-info/dependency_links.txt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/metapredict.egg-info/top_level.txt +0 -0
- {metapredict-2.63 → metapredict-2.65.0}/old_readem.md +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Contributing to metapredict
|
|
2
|
+
|
|
3
|
+
Thanks so much for considering contributing to metapredict! To contribute please consider the following guidelines.
|
|
4
|
+
|
|
5
|
+
# How to contribute
|
|
6
|
+
|
|
7
|
+
We welcome contributions from external contributors and this document
|
|
8
|
+
describes how to merge code changes into metapredict.
|
|
9
|
+
|
|
10
|
+
## Getting Started
|
|
11
|
+
|
|
12
|
+
* Make sure you have a [GitHub account](https://github.com/signup/free).
|
|
13
|
+
* [Fork](https://help.github.com/articles/fork-a-repo/) this repository on GitHub.
|
|
14
|
+
* On your local machine,
|
|
15
|
+
[clone](https://help.github.com/articles/cloning-a-repository/) your fork of
|
|
16
|
+
the repository.
|
|
17
|
+
|
|
18
|
+
## Making Changes
|
|
19
|
+
|
|
20
|
+
* Add some really awesome code to your local fork. It's usually a [good
|
|
21
|
+
idea](http://blog.jasonmeridth.com/posts/do-not-issue-pull-requests-from-your-master-branch/)
|
|
22
|
+
to make changes on a
|
|
23
|
+
[branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
|
|
24
|
+
with the branch name relating to the feature you are going to add.
|
|
25
|
+
* When you are ready for others to examine and comment on your new feature,
|
|
26
|
+
navigate to your fork of metapredict on GitHub and open a [pull
|
|
27
|
+
request](https://help.github.com/articles/using-pull-requests/) (PR). Note that
|
|
28
|
+
after you launch a PR from one of your fork's branches, all
|
|
29
|
+
subsequent commits to that branch will be added to the open pull request
|
|
30
|
+
automatically. Each commit added to the PR will be validated for
|
|
31
|
+
mergability, compilation and test suite compliance; the results of these tests
|
|
32
|
+
will be visible on the PR page.
|
|
33
|
+
* If you're providing a new feature, you must add test cases and documentation.
|
|
34
|
+
* When the code is ready to go, make sure you run the test suite using pytest.
|
|
35
|
+
* When you're ready to be considered for merging, check the "Ready to go"
|
|
36
|
+
box on the PR page to let the metapredict devs know that the changes are complete.
|
|
37
|
+
The code will not be merged until this box is checked, the continuous
|
|
38
|
+
integration returns checkmarks,
|
|
39
|
+
and multiple core developers give "Approved" reviews.
|
|
40
|
+
|
|
41
|
+
# Additional Resources
|
|
42
|
+
|
|
43
|
+
* [General GitHub documentation](https://help.github.com/)
|
|
44
|
+
* [PR best practices](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/)
|
|
45
|
+
* [A guide to contributing to software packages](http://www.contribution-guide.org)
|
|
46
|
+
* [Thinkful PR example](http://www.thinkful.com/learn/github-pull-request-tutorial/#Time-to-Submit-Your-First-PR)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Guidelines for distinct typs of PRs
|
|
50
|
+
|
|
51
|
+
### Small edits
|
|
52
|
+
If your contribution is a small commit (i.e., fixing a minor bug, typo etc), please:
|
|
53
|
+
|
|
54
|
+
1. Fork and clone (as described above)
|
|
55
|
+
2. Make changes to your local version.
|
|
56
|
+
3. Ensure all tests run after changes.
|
|
57
|
+
4. Submit a pull request explaining (1) What the small change is, (2) Why it was necessary and useful, and (3) how the change was implemented.
|
|
58
|
+
|
|
59
|
+
### New features
|
|
60
|
+
If your contribution is a larger commit (i.e., adding a new feature, changing inner code etc), it's probably worth raising an Issue first to ensure you're not duplicating effort and/or making changes that would impact the software goals.
|
|
61
|
+
|
|
62
|
+
That said, to make such a change, please consider the following steps:
|
|
63
|
+
|
|
64
|
+
1. Fork and clone (as described above)
|
|
65
|
+
2. Make changes on your local branch and add a new feature.
|
|
66
|
+
3. Ensure all tests run on your new feature.
|
|
67
|
+
4. Write integrated tests (using PyTest) for your new feature, being especially mindful of defensive programming.
|
|
68
|
+
5. Ensure your new feature is documented appropriately in the metapredict docs.
|
|
69
|
+
6. Submit a pull request detailing explicitly (1) What your feature is, (2) Why it's useful, (3) how it's implemented, and (4) pointing to the documentation.
|
|
70
|
+
7. Please be ready to respond to questions.
|
|
71
|
+
|
|
72
|
+
Note that the Holehouse lab reserves the right to (respectfully) decline proposed features or bug fixes, although a cogent and logical explanation will be provided in such a scenario.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: metapredict
|
|
3
|
+
Version: 2.65.0
|
|
4
|
+
Summary: A machine learning-based tool for predicting protein disorder.
|
|
5
|
+
Author-email: Ryan Emenecker <remenecker@wustl.edu>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: cython
|
|
10
|
+
Requires-Dist: torch
|
|
11
|
+
Requires-Dist: numpy
|
|
12
|
+
Requires-Dist: matplotlib
|
|
13
|
+
Requires-Dist: protfasta
|
|
14
|
+
Requires-Dist: scipy
|
|
15
|
+
Requires-Dist: urllib3
|
|
16
|
+
Requires-Dist: tqdm
|
|
17
|
+
Requires-Dist: alphaPredict>=1.3.0
|
|
18
|
+
Requires-Dist: getSequence>=2.2.1
|
|
19
|
+
Provides-Extra: test
|
|
20
|
+
Requires-Dist: pytest>=6.1.2; extra == "test"
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: metapredict
|
|
3
|
-
Version: 2.63
|
|
4
|
-
Home-page: https://github.com/idptools/metapredict.git
|
|
5
|
-
Author: Ryan Emenecker - Holehouse Lab - WUSM
|
|
6
|
-
Author-email: remenecker@wustl.edu
|
|
7
|
-
License: MIT
|
|
8
|
-
Requires-Python: >=3.5,<3.12.0
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Requires-Dist: cython
|
|
12
|
-
Requires-Dist: torch
|
|
13
|
-
Requires-Dist: numpy
|
|
14
|
-
Requires-Dist: matplotlib
|
|
15
|
-
Requires-Dist: protfasta
|
|
16
|
-
Requires-Dist: scipy
|
|
17
|
-
Requires-Dist: urllib3
|
|
18
|
-
Requires-Dist: tqdm
|
|
19
|
-
Requires-Dist: alphaPredict==1.0
|
|
20
|
-
Requires-Dist: getSequence>=1.6
|
|
21
|
-
|
|
22
1
|
# metapredict: A machine learning-based tool for predicting protein disorder.
|
|
23
|
-
### Last updated
|
|
24
|
-
|
|
2
|
+
### Last updated October 2024
|
|
25
3
|
|
|
26
4
|
## Current version: metapredict V2-FF (V2.6)
|
|
27
5
|
The current recommended and default version of metapredict is metapredict V2-FF (version 2.6). Small increments (2.6.x) may be made as bug fixes or feature enhancements.
|
|
@@ -30,7 +8,6 @@ For context, V2-FF provides identical predictions to metapredict V2, but via `pr
|
|
|
30
8
|
|
|
31
9
|
To quantify this yourself, run:
|
|
32
10
|
|
|
33
|
-
|
|
34
11
|
import metapredict
|
|
35
12
|
metapredict.print_performance(batch=True)
|
|
36
13
|
metapredict.print_performance(batch=False)
|
|
@@ -38,14 +15,34 @@ To quantify this yourself, run:
|
|
|
38
15
|
To compare the number of residues-per-second metapredict V2-FF predicts in batch mode vs. non-batch mode. For CPUs this is typically a 10-20x improvement. If GPUs are available this value can be substantially higher.
|
|
39
16
|
|
|
40
17
|
## Installation
|
|
18
|
+
Metapredict is a software package written in Python. It can be installed from [PyPI](https://pypi.org/project/metapredict/) (the Python Package Index) using the tool `pip`. We always recommend managing your Python environment with conda. If these ideas are foreign to you, we recommend reading up a bit on Python package management and [conda](https://conda.io/projects/conda/en/latest/user-guide/getting-started.html) before continuing.
|
|
19
|
+
|
|
20
|
+
#### TL/DR: Recommended install commands are:
|
|
21
|
+
In most situations, the following two commands will ensure all the necessary dependencies are installed and work correctly:
|
|
22
|
+
|
|
23
|
+
# ensure dependencies are from the same ecosystem (conda)
|
|
24
|
+
conda install -c conda-forge -c pytorch python=3.11 numpy pytorch scipy cython matplotlib
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# install from PyPI
|
|
28
|
+
pip install metapredict
|
|
41
29
|
|
|
30
|
+
To check the installation has worked run:
|
|
31
|
+
|
|
32
|
+
metapredict-predict-disorder --help
|
|
33
|
+
|
|
34
|
+
from the command line; this should yield help info on the `metapredict-predict-disorder` command.
|
|
35
|
+
|
|
36
|
+
#### WARNING: Segfault when mixing `conda` and `pip` installs (March 2024)
|
|
37
|
+
As of at least PyTorch 2.2.2 on macOS, there are binary incompatibilities between `pip` and `conda` versions of PyTorch and numpy. Therefore, it is essential your numpy and PyTorch installs are from the same package manager. metapredict will - by default - pull dependencies from PyPI. However, other packages installed from conda may require conda-dependent numpy installations, which can "brick" a previously-working installation.
|
|
38
|
+
|
|
39
|
+
#### Extended installation info
|
|
42
40
|
The current stable version of **metapredict** is available through GitHub or the Python Package Index (PyPI).
|
|
43
41
|
|
|
44
42
|
To install from PyPI, run:
|
|
45
43
|
|
|
46
44
|
pip install metapredict
|
|
47
45
|
|
|
48
|
-
|
|
49
46
|
You can also install the current development version from
|
|
50
47
|
|
|
51
48
|
pip install git+https://git@github.com/idptools/metapredict
|
|
@@ -82,12 +79,17 @@ Emenecker, R. J., Griffith, D. & Holehouse, A. S. Metapredict: a fast, accurate,
|
|
|
82
79
|
|
|
83
80
|
Note that in addition to the original paper, there's a V2 preprint; HOWEVER, we ask you only cite the original paper and describe the version being used (V1, V2 or V2-FF).
|
|
84
81
|
|
|
85
|
-
Emenecker, R. J., Griffith, D. & Holehouse, A. S. Metapredict V2: An update to metapredict, a fast, accurate, and easy-to-use predictor of consensus disorder and structure. bioRxiv 2022.06.06.494887 (2022). doi:10.1101/2022.06.06.494887
|
|
82
|
+
Emenecker, R. J., Griffith, D. & Holehouse, A. S. Metapredict V2: An update to metapredict, a fast, accurate, and easy-to-use predictor of consensus disorder and structure. bioRxiv 2022.06.06.494887 (2022). doi:10.1101/2022.06.06.494887
|
|
86
83
|
|
|
87
84
|
## Changes
|
|
88
85
|
|
|
89
86
|
For changes see the `changelog.md` file in this directory.
|
|
90
87
|
|
|
88
|
+
## Running tests
|
|
89
|
+
Note that to run tests you must compile the cython code in place. We suggest doing this by running the following set of commands:
|
|
90
|
+
|
|
91
|
+
pip uninstall metapredict; rm -rf build dist *.egg-info; python -m build; pip install .
|
|
92
|
+
|
|
91
93
|
## Acknowledgements
|
|
92
94
|
|
|
93
95
|
PARROT, created by Dan Griffith, was used to generate the network used for metapredict. See [https://pypi.org/project/idptools-parrot/](https://pypi.org/project/idptools-parrot/) for some very cool machine learning stuff.
|
|
@@ -99,7 +101,7 @@ We would like to thank the **DeepMind** team for developing AlphaFold and EBI/Un
|
|
|
99
101
|
We would also like to thank the team at MobiDB for creating the database that was used to train this predictor. Check out their awesome stuff at [https://mobidb.bio.unipd.it](https://mobidb.bio.unipd.it)
|
|
100
102
|
|
|
101
103
|
## Copyright
|
|
102
|
-
Copyright (c) 2020-
|
|
104
|
+
Copyright (c) 2020-2024, Holehouse Lab - Washington University School of Medicine
|
|
103
105
|
|
|
104
106
|
|
|
105
107
|
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
This section is a log of recent changes with metapredict. My hope is that as I change things, this section can help you figure out why a change was made and if it will break any of your current workflows. The first major changes were made for the 0.56 release, so tracking will start there. Reasons are not provided for bug fixes for because the reason can assumed to be fixing the bug...
|
|
3
3
|
|
|
4
|
+
#### V2.65 (October 2024)
|
|
5
|
+
Changes:
|
|
6
|
+
|
|
7
|
+
* Changed tag to 2.65. Yep, that's it. Necessary to get a clean build up to Pypi.
|
|
8
|
+
|
|
9
|
+
#### V2.64 (October 2024)
|
|
10
|
+
Changes:
|
|
11
|
+
|
|
12
|
+
* Changed over to use pyproject.toml
|
|
13
|
+
* Removed max Python version of 3.12
|
|
14
|
+
* Changed alphaPredict to use 1.2 to get rid of Torch warning
|
|
15
|
+
|
|
4
16
|
#### V2.63 (November 2023)
|
|
5
17
|
Changes:
|
|
6
18
|
|
|
@@ -48,10 +48,9 @@ This directory contains OS agnostic helper scripts which don't fall in any of th
|
|
|
48
48
|
* `git tag -a X.Y.Z [latest pushed commit] && git push --follow-tags`
|
|
49
49
|
- [ ] Get the PR merged in
|
|
50
50
|
|
|
51
|
-
##
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[PEP 440](https://www.python.org/dev/peps/pep-0440/) and has the regular expression of:
|
|
51
|
+
## Versioning
|
|
52
|
+
Versioning will be automatically identified from the `git` tags and how many commits ahead this version is. The format
|
|
53
|
+
follows [PEP 440](https://www.python.org/dev/peps/pep-0440/) and has the regular expression of:
|
|
55
54
|
```regexp
|
|
56
55
|
\d+.\d+.\d+(?\+\d+-[a-z0-9]+)
|
|
57
56
|
```
|
|
@@ -74,7 +74,7 @@ master_doc = 'index'
|
|
|
74
74
|
#
|
|
75
75
|
# This is also used if you do content translation via gettext catalogs.
|
|
76
76
|
# Usually you set "language" from the command line for these cases.
|
|
77
|
-
language =
|
|
77
|
+
language = 'en'
|
|
78
78
|
|
|
79
79
|
# List of patterns, relative to source directory, that match files and
|
|
80
80
|
# directories to ignore when looking for source files.
|
|
Binary file
|
|
@@ -3,38 +3,32 @@
|
|
|
3
3
|
## A protein disorder predictor based on a BRNN (IDP-Parrot) trained on the consensus disorder values from
|
|
4
4
|
## 8 disorder predictors from 12 proteomes.
|
|
5
5
|
##
|
|
6
|
+
import sys
|
|
7
|
+
import importlib.util
|
|
6
8
|
|
|
7
9
|
# import user-facing functions
|
|
8
|
-
from .meta import *
|
|
10
|
+
from metapredict.meta import *
|
|
9
11
|
from metapredict.backend.meta_predict_disorder import get_metapredict_legacy_network_version
|
|
10
12
|
from metapredict.backend.metameta_hybrid_predict import get_metapredict_network_version
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
14
|
import os
|
|
15
|
-
import
|
|
15
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
16
16
|
|
|
17
|
+
# import current version
|
|
18
|
+
from ._version import __version__
|
|
17
19
|
|
|
18
20
|
# To crash on LIBOMP error set this to False
|
|
19
21
|
IGNORE_LIBOMP_ERROR = True
|
|
20
22
|
|
|
21
|
-
|
|
22
23
|
# ------------------------------------------------------------
|
|
23
24
|
#
|
|
24
|
-
# Handle versioneer
|
|
25
|
-
from ._version import get_versions
|
|
26
|
-
versions = get_versions()
|
|
27
|
-
__version__ = versions['version']
|
|
28
|
-
__git_revision__ = versions['full-revisionid']
|
|
29
|
-
del get_versions, versions
|
|
30
|
-
|
|
31
|
-
|
|
32
25
|
# Handle omplib error
|
|
33
26
|
if IGNORE_LIBOMP_ERROR:
|
|
34
27
|
if sys.platform == 'darwin':
|
|
35
28
|
os.environ['KMP_DUPLICATE_LIB_OK']='True'
|
|
36
29
|
|
|
37
30
|
|
|
31
|
+
|
|
38
32
|
# Standardized function to check performance
|
|
39
33
|
def print_performance(seq_len=500, num_seqs=100, verbose=True, batch=True, legacy=False, batch_mode=None, variable_length=False):
|
|
40
34
|
"""
|
|
@@ -146,3 +140,4 @@ def print_metapredict_network_version():
|
|
|
146
140
|
"""
|
|
147
141
|
|
|
148
142
|
return get_metapredict_network_version()
|
|
143
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.65.0"
|
|
Binary file
|