File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828Web Application
2929***************
3030The pre-built artifacts for this mapping database can be downloaded from Zenodo
31- at |anatomy | and unzipped. The web application can be run
31+ at |anatomyimg | and unzipped. The web application can be run
3232locally on Docker from inside the folder where the data was unzipped with:
3333
3434.. code-block:: console
4646Finally, navigate in your web browser to http://localhost:8773 to see the web
4747application.
4848
49- .. |anatomy | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091803.svg
49+ .. |anatomyimg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091803.svg
5050 :target: https://doi.org/10.5281/zenodo.11091803
5151
5252""" # noqa:D205,D400
Original file line number Diff line number Diff line change 3232Web Application
3333***************
3434The pre-built artifacts for this mapping database can be downloaded from Zenodo
35- at |cell | and unzipped. The web application can be run
35+ at |cellimg | and unzipped. The web application can be run
3636locally on Docker from inside the folder where the data was unzipped with:
3737
3838.. code-block:: console
5050Finally, navigate in your web browser to http://localhost:8773 to see the web
5151application.
5252
53- .. |cell | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091581.svg
53+ .. |cellimg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091581.svg
5454 :target: https://doi.org/10.5281/zenodo.11091581
5555
5656""" # noqa:D205,D400
Original file line number Diff line number Diff line change 3030Web Application
3131***************
3232The pre-built artifacts for this mapping database can be downloaded from Zenodo
33- at |complex | and unzipped. The web application can be run
33+ at |compleximg | and unzipped. The web application can be run
3434locally on Docker from inside the folder where the data was unzipped with:
3535
3636.. code-block:: console
4848Finally, navigate in your web browser to http://localhost:8773 to see the web
4949application.
5050
51- .. |complex | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091422.svg
51+ .. |compleximg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091422.svg
5252 :target: https://doi.org/10.5281/zenodo.11091422
5353
5454""" # noqa:D205,D400
Original file line number Diff line number Diff line change 4141Web Application
4242***************
4343The pre-built artifacts for this mapping database can be downloaded from Zenodo
44- at |disease | and unzipped. The web application can be run
44+ at |diseaseimg | and unzipped. The web application can be run
4545locally on Docker from inside the folder where the data was unzipped with:
4646
4747.. code-block:: console
5959Finally, navigate in your web browser to http://localhost:8773 to see the web
6060application.
6161
62- .. |disease | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091886.svg
62+ .. |diseaseimg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11091886.svg
6363 :target: https://doi.org/10.5281/zenodo.11091886
6464
6565""" # noqa:D205,D400
Original file line number Diff line number Diff line change 3535Web Application
3636***************
3737The pre-built artifacts for this mapping database can be downloaded from Zenodo
38- at |gene | and unzipped. The web application can be run
38+ at |geneimg | and unzipped. The web application can be run
3939locally on Docker from inside the folder where the data was unzipped with:
4040
4141.. code-block:: console
5353Finally, navigate in your web browser to http://localhost:8773 to see the web
5454application.
5555
56- .. |gene | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11092013.svg
56+ .. |geneimg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11092013.svg
5757 :target: https://doi.org/10.5281/zenodo.11092013
5858
5959""" # noqa:D205,D400
Original file line number Diff line number Diff line change 3535Finally, navigate in your web browser to http://localhost:8773 to see the web
3636application.
3737
38- .. |taxrank | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.None.svg
38+ .. |taxrankimg | image:: https://zenodo.org/badge/DOI/10.5281/zenodo.None.svg
3939 :target: https://doi.org/10.5281/zenodo.None
4040
4141""" # noqa:D205,D400
Original file line number Diff line number Diff line change 1+ """Update the module level docstrings for landscape configurations."""
2+
3+ from semra .landscape import CONFIGURATIONS
4+
5+ from pathlib import Path
6+ import click
7+
8+ __all__ = [
9+ "update_landscape_module_docstrings" ,
10+ ]
11+
12+ HERE = Path (__file__ ).parent .resolve ()
13+
14+
15+ @click .command ()
16+ def update_landscape_module_docstrings () -> None :
17+ """Update the module level docstrings for landscape configurations."""
18+ for conf in CONFIGURATIONS :
19+ path = HERE .joinpath (conf .key ).with_suffix (".py" )
20+ text = path .read_text ()
21+ lines = text .splitlines ()
22+ idx = min (i for i , line in enumerate (lines [1 :], start = 1 ) if line .startswith ('"""' ))
23+ new = conf ._get_header_text ()
24+ path .write_text (new + "\n " .join (lines [idx + 1 :]) + "\n " )
25+
26+
27+ if __name__ == '__main__' :
28+ update_landscape_module_docstrings ()
You can’t perform that action at this time.
0 commit comments