biolearn 0.0.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.
Files changed (50) hide show
  1. biolearn-0.0.0/.binder/postBuild +43 -0
  2. biolearn-0.0.0/.binder/requirements.txt +2 -0
  3. biolearn-0.0.0/.binder/runtime.txt +1 -0
  4. biolearn-0.0.0/.coveragerc +6 -0
  5. biolearn-0.0.0/.flake8 +5 -0
  6. biolearn-0.0.0/.gitignore +28 -0
  7. biolearn-0.0.0/AUTHORS.rst +27 -0
  8. biolearn-0.0.0/LICENSE +34 -0
  9. biolearn-0.0.0/Makefile +24 -0
  10. biolearn-0.0.0/PKG-INFO +124 -0
  11. biolearn-0.0.0/README.rst +75 -0
  12. biolearn-0.0.0/biolearn/__init__.py +9 -0
  13. biolearn-0.0.0/biolearn/_utils/__init__.py +3 -0
  14. biolearn-0.0.0/biolearn/_utils/docs.py +907 -0
  15. biolearn-0.0.0/biolearn/_version.py +4 -0
  16. biolearn-0.0.0/biolearn/stuff/__init__.py +5 -0
  17. biolearn-0.0.0/biolearn/stuff/stuff.py +35 -0
  18. biolearn-0.0.0/biolearn/tests/test_init.py +8 -0
  19. biolearn-0.0.0/doc/Makefile +51 -0
  20. biolearn-0.0.0/doc/README +15 -0
  21. biolearn-0.0.0/doc/authors.rst +1 -0
  22. biolearn-0.0.0/doc/binder/requirements.txt +5 -0
  23. biolearn-0.0.0/doc/changes/names.rst +3 -0
  24. biolearn-0.0.0/doc/conf.py +427 -0
  25. biolearn-0.0.0/doc/images/blank_image.png +0 -0
  26. biolearn-0.0.0/doc/includes/big_toc_css.rst +41 -0
  27. biolearn-0.0.0/doc/includes/bigger_toc_css.rst +57 -0
  28. biolearn-0.0.0/doc/index.rst +94 -0
  29. biolearn-0.0.0/doc/introduction.rst +42 -0
  30. biolearn-0.0.0/doc/logos/biolearn-transparent.png +0 -0
  31. biolearn-0.0.0/doc/logos/favicon.ico +0 -0
  32. biolearn-0.0.0/doc/make.bat +113 -0
  33. biolearn-0.0.0/doc/modules/index.rst +13 -0
  34. biolearn-0.0.0/doc/modules/stuff.rst +18 -0
  35. biolearn-0.0.0/doc/quickstart.md +7 -0
  36. biolearn-0.0.0/doc/references.bib +22 -0
  37. biolearn-0.0.0/doc/soft_references.bib +5 -0
  38. biolearn-0.0.0/doc/sphinxext/gh_substitutions.py +26 -0
  39. biolearn-0.0.0/doc/sphinxext/github_link.py +91 -0
  40. biolearn-0.0.0/doc/stuff/index.rst +13 -0
  41. biolearn-0.0.0/doc/stuff/stuff_intro.rst +14 -0
  42. biolearn-0.0.0/doc/templates/class.rst +25 -0
  43. biolearn-0.0.0/doc/templates/function.rst +19 -0
  44. biolearn-0.0.0/doc/themes/custom.css +110 -0
  45. biolearn-0.0.0/doc/tune_toc.rst +136 -0
  46. biolearn-0.0.0/doc/user_guide.rst +24 -0
  47. biolearn-0.0.0/examples/00_tutorials/README.rst +7 -0
  48. biolearn-0.0.0/examples/00_tutorials/plot_python_101.py +17 -0
  49. biolearn-0.0.0/examples/README.txt +10 -0
  50. biolearn-0.0.0/pyproject.toml +89 -0
@@ -0,0 +1,43 @@
1
+ #!/bin/bash
2
+
3
+ # Adapted from scikit-learn
4
+ # https://github.com/scikit-learn/scikit-learn/blob/main/.binder/
5
+
6
+ set -e
7
+
8
+ # This script is called in a binder context. When this script is called, we are
9
+ # inside a git checkout of the omicslearn/omicslearn repo. This script is
10
+ # generating notebooks from the omicslearn python examples.
11
+
12
+ if [[ ! -f /.dockerenv ]]; then
13
+ echo "This script was written for repo2docker and is supposed to run inside a docker container."
14
+ echo "Exiting because this script can delete data if run outside of a docker container."
15
+ exit 1
16
+ fi
17
+
18
+ # Back up content we need from the nilearn repo
19
+ TMP_CONTENT_DIR=/tmp/bio-learn
20
+ mkdir -p $TMP_CONTENT_DIR
21
+ cp -r examples .binder $TMP_CONTENT_DIR
22
+ # delete everything in current directory including dot files and dot folders
23
+ find . -delete
24
+
25
+ # Generate notebooks and remove other files from examples folder
26
+ GENERATED_NOTEBOOKS_DIR=.generated-notebooks
27
+ cp -r $TMP_CONTENT_DIR/examples $GENERATED_NOTEBOOKS_DIR
28
+
29
+ find $GENERATED_NOTEBOOKS_DIR -name '*.py' -exec sphx_glr_python_to_jupyter.py '{}' +
30
+ NON_NOTEBOOKS=$(find $GENERATED_NOTEBOOKS_DIR -type f | grep -v '\.ipynb')
31
+ rm -f $NON_NOTEBOOKS
32
+
33
+ # Put the .binder folder back (may be useful for debugging purposes)
34
+ mv $TMP_CONTENT_DIR/.binder .
35
+ # Final clean up
36
+ rm -rf $TMP_CONTENT_DIR
37
+
38
+ # This is for compatibility with binder sphinx-gallery integration: this makes
39
+ # sure that the binder links generated by sphinx-gallery are correct even tough
40
+ # the repo we use for binder (nilearn/nilearn) is not the repo of the
41
+ # generated doc (nilearn/nilearn.github.io)
42
+ mkdir notebooks
43
+ ln -s ../$GENERATED_NOTEBOOKS_DIR notebooks/auto_examples
@@ -0,0 +1,2 @@
1
+ .[plotting,plotly]
2
+ sphinx-gallery
@@ -0,0 +1 @@
1
+ python - 3.10
@@ -0,0 +1,6 @@
1
+ [run]
2
+ branch = True
3
+ parallel = True
4
+ omit =
5
+ */biolearn/tests/*
6
+ */biolearn/*/tests/*
biolearn-0.0.0/.flake8 ADDED
@@ -0,0 +1,5 @@
1
+ [flake8]
2
+ max-line-length = 100
3
+ exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/
4
+ per-file-ignores =
5
+ __init__.py:F401
@@ -0,0 +1,28 @@
1
+ *.pyc
2
+
3
+ # ignore python type annotation stubs for now
4
+ *.pyi
5
+ .pytest_cache
6
+
7
+ # Mac OS X
8
+ .DS_Store
9
+
10
+ # IDE related
11
+ .idea/
12
+ .vscode/
13
+
14
+ # build related
15
+ biolearn.egg-info/
16
+ build
17
+ dist/
18
+ biolearn/_version.py
19
+
20
+ # coverage
21
+ .coverage
22
+ coverage
23
+ nosetests_coverage/
24
+
25
+ # documentation
26
+ doc/_build
27
+ doc/auto_examples
28
+ doc/modules/generated
@@ -0,0 +1,27 @@
1
+ .. -*- mode: rst -*-
2
+
3
+ .. include:: changes/names.rst
4
+
5
+ ====
6
+ Team
7
+ ====
8
+
9
+ This work is made available by a community of people, which
10
+ originated from
11
+ the :BoA:`Biomarkers of Aging Consortium <>`
12
+
13
+ .. _core_devs:
14
+
15
+ Core developers
16
+ ...............
17
+
18
+ The biolearn core developers are:
19
+
20
+ * `Mahdi Moqri`_
21
+ * `Martin Perez-Guevara`_
22
+ * `Seth Paulson`_
23
+
24
+ Other contributors
25
+ ..................
26
+
27
+ Special thanks to scientific and executive members of the :BoA:`Biomarkers of Aging Consortium <>`
biolearn-0.0.0/LICENSE ADDED
@@ -0,0 +1,34 @@
1
+ License for biolearn
2
+ =====================
3
+
4
+ New BSD License
5
+
6
+ Copyright (c) 2007 - 2022 The omicslearn developers.
7
+ All rights reserved.
8
+
9
+
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+
13
+ a. Redistributions of source code must retain the above copyright notice,
14
+ this list of conditions and the following disclaimer.
15
+ b. Redistributions in binary form must reproduce the above copyright
16
+ notice, this list of conditions and the following disclaimer in the
17
+ documentation and/or other materials provided with the distribution.
18
+ c. Neither the name of the omicslearn developers nor the names of
19
+ its contributors may be used to endorse or promote products
20
+ derived from this software without specific prior written
21
+ permission.
22
+
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
28
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
34
+ DAMAGE.
@@ -0,0 +1,24 @@
1
+ # simple makefile to simplify repetitive build env management tasks under posix
2
+ # CAREFUL: several commands are not compatible with Windows shell
3
+
4
+ PYTHON ?= python
5
+
6
+ all: clean test
7
+
8
+ clean-pyc:
9
+ find . -name "*.pyc" | xargs rm -f
10
+ find . -name "__pycache__" | xargs rm -rf
11
+
12
+ clean-build:
13
+ rm -rf build
14
+
15
+ clean: clean-build clean-pyc
16
+
17
+ test-code:
18
+ python -m pytest --pyargs biolearn --cov=biolearn
19
+
20
+ test-coverage:
21
+ rm -rf coverage .coverage
22
+ pytest --pyargs biolearn --showlocals --cov=biolearn --cov-report=html:coverage
23
+
24
+ test: test-code
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.1
2
+ Name: biolearn
3
+ Version: 0.0.0
4
+ Summary: Machine learning for biomarkers computing
5
+ Author: Biolearn developers
6
+ Maintainer-email: Martin Perez-Guevara <mperezguevara@gmail.com>
7
+ License: new BSD
8
+ License-File: AUTHORS.rst
9
+ License-File: LICENSE
10
+ Keywords: biomarker
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: C
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Topic :: Scientific/Engineering
20
+ Classifier: Topic :: Software Development
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: numpy>=1.19.0
23
+ Provides-Extra: dev
24
+ Requires-Dist: biolearn[doc,plotting,test]; extra == 'dev'
25
+ Provides-Extra: doc
26
+ Requires-Dist: biolearn[plotting]; extra == 'doc'
27
+ Requires-Dist: black; extra == 'doc'
28
+ Requires-Dist: coverage; extra == 'doc'
29
+ Requires-Dist: flake8; extra == 'doc'
30
+ Requires-Dist: flake8-docstrings; extra == 'doc'
31
+ Requires-Dist: furo; extra == 'doc'
32
+ Requires-Dist: memory-profiler; extra == 'doc'
33
+ Requires-Dist: mkl; extra == 'doc'
34
+ Requires-Dist: myst-parser; extra == 'doc'
35
+ Requires-Dist: numpydoc; extra == 'doc'
36
+ Requires-Dist: sphinx; extra == 'doc'
37
+ Requires-Dist: sphinx-copybutton; extra == 'doc'
38
+ Requires-Dist: sphinx-design; extra == 'doc'
39
+ Requires-Dist: sphinx-gallery; extra == 'doc'
40
+ Requires-Dist: sphinxcontrib-bibtex; extra == 'doc'
41
+ Requires-Dist: sphinxext-opengraph; extra == 'doc'
42
+ Provides-Extra: plotting
43
+ Requires-Dist: matplotlib>=3.3.0; extra == 'plotting'
44
+ Provides-Extra: test
45
+ Requires-Dist: coverage; extra == 'test'
46
+ Requires-Dist: pytest-cov; extra == 'test'
47
+ Requires-Dist: pytest>=6.0.0; extra == 'test'
48
+ Description-Content-Type: text/x-rst
49
+
50
+ Biolearn
51
+ ========
52
+
53
+ Biolearn leverages the `scikit-learn <https://scikit-learn.org>`_ Python toolbox for biomarkers analysis
54
+
55
+ Important links
56
+ ===============
57
+
58
+ - Official source code repo: https://github.com/bio-learn/biolearn/
59
+ - HTML documentation (stable release): https://bio-learn.github.io/
60
+
61
+ Install
62
+ =======
63
+
64
+ Latest release
65
+ --------------
66
+
67
+ **1. Setup a virtual environment**
68
+
69
+ We recommend that you install ``biolearn`` in a virtual Python environment.
70
+ In linux as example you can create one with venv:
71
+
72
+ .. code-block:: bash
73
+
74
+ python3 -m venv bioenv
75
+ source bioenv/bin/activate
76
+
77
+ After you can install the package in the activated virtual environment:
78
+
79
+ .. code-block:: bash
80
+
81
+ pip install -U biolearn
82
+
83
+ Development version
84
+ -------------------
85
+
86
+ Please find all development setup instructions in the
87
+ `contribution guide <https://bio-learn.github.io/stable/development.html#setting-up-your-environment>`_.
88
+
89
+ Check installation
90
+ ------------------
91
+
92
+ Try importing biolearn in a python / iPython session:
93
+
94
+ .. code-block:: python
95
+
96
+ import biolearn
97
+
98
+ If no error is raised, you have installed biolearn correctly.
99
+
100
+ Discord server
101
+ ==============
102
+
103
+ The biolearn team has a discord server to answer questions,
104
+ discuss feature requests, or have any biolearn related discussions.
105
+
106
+ For more information and ways to engage with the biolearn team see
107
+ `How to get help <https://bio-learn.github.io/stable/development.html#how-to-get-help>`_.
108
+
109
+ Dependencies
110
+ ============
111
+
112
+ The required dependencies to use the software are listed in the file `pyproject.toml <https://github.com/bio-learn/biolearn/blob/main/pyproject.toml>`_.
113
+
114
+ If you are using biolearn plotting functionalities or running the examples, matplotlib >= 3.3.0 is required.
115
+
116
+ Some plotting functions in biolearn support both matplotlib and plotly as plotting engines.
117
+
118
+ If you want to run the tests, you need pytest >= 6.0.0 and pytest-cov for coverage reporting.
119
+
120
+ Development
121
+ ===========
122
+
123
+ Detailed instructions on how to contribute are available at
124
+ http://bio-learn.github.io/stable/development.html
@@ -0,0 +1,75 @@
1
+ Biolearn
2
+ ========
3
+
4
+ Biolearn leverages the `scikit-learn <https://scikit-learn.org>`_ Python toolbox for biomarkers analysis
5
+
6
+ Important links
7
+ ===============
8
+
9
+ - Official source code repo: https://github.com/bio-learn/biolearn/
10
+ - HTML documentation (stable release): https://bio-learn.github.io/
11
+
12
+ Install
13
+ =======
14
+
15
+ Latest release
16
+ --------------
17
+
18
+ **1. Setup a virtual environment**
19
+
20
+ We recommend that you install ``biolearn`` in a virtual Python environment.
21
+ In linux as example you can create one with venv:
22
+
23
+ .. code-block:: bash
24
+
25
+ python3 -m venv bioenv
26
+ source bioenv/bin/activate
27
+
28
+ After you can install the package in the activated virtual environment:
29
+
30
+ .. code-block:: bash
31
+
32
+ pip install -U biolearn
33
+
34
+ Development version
35
+ -------------------
36
+
37
+ Please find all development setup instructions in the
38
+ `contribution guide <https://bio-learn.github.io/stable/development.html#setting-up-your-environment>`_.
39
+
40
+ Check installation
41
+ ------------------
42
+
43
+ Try importing biolearn in a python / iPython session:
44
+
45
+ .. code-block:: python
46
+
47
+ import biolearn
48
+
49
+ If no error is raised, you have installed biolearn correctly.
50
+
51
+ Discord server
52
+ ==============
53
+
54
+ The biolearn team has a discord server to answer questions,
55
+ discuss feature requests, or have any biolearn related discussions.
56
+
57
+ For more information and ways to engage with the biolearn team see
58
+ `How to get help <https://bio-learn.github.io/stable/development.html#how-to-get-help>`_.
59
+
60
+ Dependencies
61
+ ============
62
+
63
+ The required dependencies to use the software are listed in the file `pyproject.toml <https://github.com/bio-learn/biolearn/blob/main/pyproject.toml>`_.
64
+
65
+ If you are using biolearn plotting functionalities or running the examples, matplotlib >= 3.3.0 is required.
66
+
67
+ Some plotting functions in biolearn support both matplotlib and plotly as plotting engines.
68
+
69
+ If you want to run the tests, you need pytest >= 6.0.0 and pytest-cov for coverage reporting.
70
+
71
+ Development
72
+ ===========
73
+
74
+ Detailed instructions on how to contribute are available at
75
+ http://bio-learn.github.io/stable/development.html
@@ -0,0 +1,9 @@
1
+ try:
2
+ from ._version import __version__ # noqa: F401
3
+ except ImportError:
4
+ __version__ = "0+unknown"
5
+
6
+ # list all submodules available in omicslearn and version
7
+ __all__ = [
8
+ "__version__",
9
+ ]
@@ -0,0 +1,3 @@
1
+ from .docs import fill_doc
2
+
3
+ __all__ = ['fill_doc']