Skip to content

Commit 5409775

Browse files
Update the Readme (#301)
* Add badges * Chnage format and add badges * organise badges in line * add the short description * add usefull link * improve the short description * Add section Installation * Add section for the contribution * add conect us section * improve comments * Complete Acknowledgement section * Add section for citation * change subparagraph call * Add quick line for developement * Correct english * include a new file * fix some code example * fix some style * fix format * fix format * fix format * fix error of change extension of README * fix format * add the file how to contribute * fix error and add image * fix contribution * Update README.rst Co-authored-by: bthirion <[email protected]> * fix format in pyproject * Add angel as mainteners * Fix name of Angel * Fix for PR * fix error * change name of main workflow * Modify the badges * remove section license * remane main work flow * ange badge link to ci * move section quick start to a new file * include Contribution in documentation * fix bugs * fix error * improve contribution file * replace the file to the rigth place * Improve CONTRIBUTING --------- Co-authored-by: bthirion <[email protected]>
1 parent 137edea commit 5409775

File tree

9 files changed

+282
-147
lines changed

9 files changed

+282
-147
lines changed

.github/workflows/main_workflow.yml renamed to .github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Management of the action do made during a pull request
22

3-
name: 'Main_workflow'
3+
name: 'CI'
44
on:
55
pull_request_target:
66
# Using 'pull_request_target' instead of 'pull_request':

CONTRIBUTING.rst

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.. ## for plotting and for examples
2+
#TODO Need to be updated if it's necessary
3+
.. |MatplotlibMinVersion| replace:: 3.9.0
4+
.. |SeabornMinVersion| replace:: 0.9.0
5+
6+
Quick start for contributing
7+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+
Source code
9+
"""""""""""
10+
11+
You can check out the latest sources with the command:
12+
13+
.. code-block:: sh
14+
15+
git clone https://github.com/mind-inria/hidimstat.git
16+
17+
Test suite
18+
""""""""""
19+
20+
For testing, we recommend you install the test dependencies with pip:
21+
22+
.. code-block:: sh
23+
24+
pip install hidimstat[test]
25+
26+
This will install ``pytest`` and the following extensions:
27+
``pytest-cov``, ``pytest-randomly``, ``pytest-xdist``, ``pytest-html``,
28+
``pytest-timeout``, ``pytest-durations``
29+
30+
After this installation, you can launch the test suite:
31+
32+
.. code-block:: sh
33+
34+
pytest test
35+
36+
Examples
37+
""""""""
38+
39+
To run the examples, we recommend you install the example dependencies with pip:
40+
41+
.. code-block:: sh
42+
43+
pip install hidimstat[example]
44+
45+
For running the examples, it's necessary to install Matplotlib >= |MatplotlibMinVersion| and seaborn >=
46+
|SeabornMinVersion|.
47+
48+
| After this installation, you can run any example in the `examples <https://github.com/mind-inria/hidimstat/tree/main/examples>`_ folder.
49+
| Or you can download some of them from the `documentation <https://hidimstat.github.io/dev/auto_examples/index.html>`_.
50+
51+
Documentation
52+
"""""""""""""
53+
54+
The documentation is built with Sphinx. We recommend you install the documentation dependencies with pip:
55+
56+
.. code-block:: sh
57+
58+
pip install hidimstat[doc]
59+
60+
After this installation, you can build the documentation from the source using the Makefile in doc_conf:
61+
62+
.. code-block:: sh
63+
64+
make html
65+
66+
**For more information**, look at the `developer documentation <https://hidimstat.github.io/dev/dev/index.html>`_

README.md

Lines changed: 0 additions & 129 deletions
This file was deleted.

README.rst

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
.. ## Define a hard line break in HTML
2+
.. |br| raw:: html
3+
4+
<br />
5+
6+
.. # Add the reference for the badges
7+
.. ## Reference to the CI status
8+
.. |Linter&Tests| image:: https://github.com/mind-inria/hidimstat/actions/workflows/ci.yml/badge.svg?branch=main
9+
:target: https://github.com/mind-inria/hidimstat/actions/workflows/ci.yml?query=branch%3Amain
10+
.. |CircleCI/Documentation| image:: https://circleci.com/gh/mind-inria/hidimstat.svg?style=shield
11+
:target: https://circleci.com/gh/mind-inria/hidimstat?branch=main
12+
.. |CodeCov| image:: https://codecov.io/github/mind-inria/hidimstat/branch/main/graph/badge.svg?token=O1YZDTFTNS
13+
:target: https://codecov.io/github/mind-inria/hidimstat
14+
.. ## Distribution python
15+
.. |PyPi| image:: https://img.shields.io/pypi/v/hidimstat.svg
16+
:target: https://pypi.org/project/hidimstat/
17+
.. |PyPi_download| image:: https://img.shields.io/pypi/dm/hidimstat
18+
:target: https://pypi.org/project/hidimstat/
19+
.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/hidimstat.svg?color=informational
20+
:target: https://pypi.org/project/hidimstat/
21+
.. |Latest release| image:: https://img.shields.io/github/release/mind-inria/hidimstat.svg?color=brightgreen&label=latest%20release
22+
.. ## Additional badge
23+
.. |License| image:: https://img.shields.io/github/license/mind-inria/hidimstat
24+
:target: https://opensource.org/license/bsd-3-clause
25+
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
26+
:target: https://github.com/psf/black
27+
28+
.. # Add minimal dependecy of the main packages
29+
## This need to update in same time that pyproject.toml
30+
.. |PythonMinVersion| replace:: 3.9
31+
.. |JoblibMinVersion| replace:: 1.2
32+
.. |NumPyMinVersion| replace:: 1.25
33+
.. |PandasMinVersion| replace:: 2.0
34+
.. |SklearnMinVersion| replace:: 1.4
35+
.. |SciPyMinVersion| replace:: 1.6
36+
.. ## for plotting and for examples
37+
.. |MatplotlibMinVersion| replace:: 3.9.0
38+
.. |SeabornMinVersion| replace:: 0.9.0
39+
40+
=================================================================
41+
HiDimStat: High-dimensional statistical inference tool for Python
42+
=================================================================
43+
44+
.. # Add the different badge
45+
46+
|Linter&Tests| |CircleCI/Documentation| |CodeCov| |Black|
47+
48+
|PyPi| |PyPi_download| |PythonVersion| |Latest release|
49+
50+
|License|
51+
52+
.. # Short description of the library
53+
54+
The HiDimStat package provides statistical inference methods to solve the problem
55+
of variable importance evaluation in the context of predictive model using high-dimensional and spatially structured data.
56+
57+
.. # Add usefull links
58+
59+
If you like the package, spread the word and ⭐ our `official repository
60+
<https://github.com/mind-inria/hidimstat>`_!
61+
62+
Visit our website, https://hidimstat.github.io/, for more information.
63+
64+
..
65+
## TODO: Add short citation when this will be ready
66+
If you use HiDimStat for your published research, we kindly ask you to :ref:`cite<citation>` our article:
67+
short reference
68+
69+
Find your important variables in your data with the help of
70+
`our examples <https://hidimstat.github.io/dev/auto_examples/index.html>`_.
71+
72+
If you have any problems, please report them to the `GitHub issue tracker <https://github.com/mind-inria/hidimstat/issues>`_
73+
or contribute to the library by opening a pull request.
74+
75+
Installation
76+
------------
77+
78+
Dependencies
79+
^^^^^^^^^^^^
80+
81+
.. # Add dependency of the project
82+
TODO Need to match with pyproject.toml
83+
84+
HiDimStat requires:
85+
86+
- Python (>= |PythonMinVersion|)
87+
- joblib (>= |JoblibMinVersion|)
88+
- NumPy (>= |NumPyMinVersion|)
89+
- Pandas (>= |PandasMinVersion|)
90+
- Scikit-learn (>= |SklearnMinVersion|)
91+
- SciPy (>= |SciPyMinVersion|)
92+
93+
HiDimStat's plotting capabilities require Matplotlib (>= |MatplotlibMinVersion|).
94+
95+
To run the examples, Matplotlib (>= |MatplotlibMinVersion|) and seaborn (>=
96+
|SeabornMinVersion|) are required.
97+
98+
User installation
99+
^^^^^^^^^^^^^^^^^
100+
101+
.. # Add the instruction for installation
102+
TODO add conda when it will be accessible
103+
104+
HiDimStat can easily be installed via ``pip``. For more installation information,
105+
see the `installation instructions <https://hidimstat.github.io/dev/index.html#installation>`_.
106+
::
107+
pip install -U hidimstat
108+
109+
Contribute
110+
----------
111+
112+
.. # Add short discription for contribution to the library
113+
114+
The best way to support the development of HiDimStat is to spread the word!
115+
116+
HiDimStat aims to be supported by an active community, and we welcome
117+
contributions to our code and documentation.
118+
119+
For bug reports, feature requests, documentation improvements, or other issues,
120+
you can create a `GitHub issue <https://github.com/mind-inria/hidimstat/issues>`_.
121+
122+
If you want to contribute directly to the library, check the
123+
`how to contribute <https://hidimstat.github.io/dev/how_to_contribute.html/>`_ page
124+
on the website for more information.
125+
126+
Contact us
127+
----------
128+
129+
.. # Add a way to contact maintainers
130+
TODO this needs to be updated when there is a change of maintainers
131+
132+
Currently, this library is supported by the `INRIA <https://www.inria.fr/en>`_
133+
team `MIND <https://www.inria.fr/fr/mind>`_. |br|
134+
If you want to report a problem or suggest an enhancement, we would love for you
135+
to `open an issue <https://github.com/mind-inria/hidimstat/issues/new>`_ at
136+
this GitHub repository so we can address it quickly. |br|
137+
For less formal discussions or to exchange ideas, you can contact the main
138+
contributors:
139+
140+
+-------------------+-------------------+-------------------+-------------------+
141+
| Lionel Kusch | Bertrand Thirion | Joseph Paillard | Angel Reyero Lobo |
142+
+-------------------+-------------------+-------------------+-------------------+
143+
| |avatar LK| | |avatar BT| | |avatar JP| | |avatar AR| |
144+
+-------------------+-------------------+-------------------+-------------------+
145+
146+
.. |avatar LK| image:: https://avatars.githubusercontent.com/u/17182418?v=4
147+
:target: https://github.com/lionelkusch
148+
.. |avatar BT| image:: https://avatars.githubusercontent.com/u/234454?v=4
149+
:target: https://github.com/bthirion
150+
.. |avatar JP| image:: https://avatars.githubusercontent.com/u/56166877?v=4
151+
:target: https://github.com/jpaillard
152+
.. |avatar AR| image:: https://avatars.githubusercontent.com/u/79699169?v=4
153+
:target: https://github.com/AngelReyero
154+
155+
Citation
156+
--------
157+
158+
If you use a HiDimStat method for your research, you'll find the associated
159+
reference paper in the method description, and we recommend that you cite it.
160+
161+
..
162+
TODO add the section for citing the library once a Zenodo repository is made
163+
or a paper is published.
164+
165+
If you publish a paper using HiDimStat, please contact us or open an issue!
166+
We would love to hear about your work and help you promote it.
167+
168+
Acknowledgments
169+
---------------
170+
171+
This project has been funded by `Labex DigiCosme <https://anr.fr/ProjetIA-11-LABX-0045>`_
172+
(ANR-11-LABEX-0045-DIGICOSME) as part of the program
173+
`Investissement d’Avenir <https://anr.fr/ProjetIA-11-IDEX-0003>`_
174+
(ANR-11-IDEX-0003-02), by the `Fast Big project <https://anr.fr/Projet-ANR-17-CE23-0011>`_
175+
(ANR-17-CE23-0011), by the `KARAIB AI Chair <https://anr.fr/Projet-ANR-20-CHIA-0025>`_
176+
(ANR-20-CHIA-0025-01), and by the `VITE project <https://anr.fr/Projet-ANR-23-CE23-0016>`_ (ANR-23-CE23-0016).
177+
This study has also been supported by the European Union’s Horizon 2020 research and innovation program
178+
as part of the program `Human Brain Project SGA3 <https://cordis.europa.eu/project/id/945539>`_
179+
(Grant Agreement No. 945539) and `EBRAIN-Health <https://cordis.europa.eu/project/id/101058516>`_
180+
(Grant Agreement No. 101058516).

0 commit comments

Comments
 (0)