biosimulators_utils.ref package#
Submodules#
biosimulators_utils.ref.data_model module#
Data model for references (e.g., journal articles, books)
- Author:
Jonathan Karr <karr@mssm.edu>
- Date:
2021-09-05
- Copyright:
2021, Center for Reproducible Biomedical Modeling
- License:
MIT
- class biosimulators_utils.ref.data_model.JournalArticle(pubmed_id: str | None = None, pubmed_central_id: str | None = None, doi: str | None = None, authors: ~typing.List[str] = <factory>, title: str | None = None, journal: str | None = None, volume: str | None = None, issue: str | None = None, pages: str | None = None, year: int | None = None, date: str | None = None)[source]#
Bases:
Reference
Journal article
- get_citation()[source]#
Format a citation for a reference (e.g., “Authors. Title. Journal volume, issue: pages (year)”.).
- Returns:
formatted citation for a reference
- Return type:
str
- get_uri()[source]#
Get a standard URI for the citation (e.g. http://identifiers.org/doi/10.1007/BF00713556).
- Returns:
formatted URI
- Return type:
str
biosimulators_utils.ref.utils module#
Methods for working with references (e.g., journal articles, books)
- Author:
Jonathan Karr <karr@mssm.edu>
- Date:
2021-09-05
- Copyright:
2021, Center for Reproducible Biomedical Modeling
- License:
MIT
- biosimulators_utils.ref.utils.get_pubmed_central_open_access_graphics(id, dirname, session=<module 'requests' from '/home/runner/work/Biosimulators_utils/Biosimulators_utils/.venv/lib/python3.10/site-packages/requests/__init__.py'>)[source]#
Get the open access graphics for a publication in PubMed Central
- Parameters:
id (
str
) – PubMed Central iddirname (
str
) – path to save imagessession (
requests.session.Session
) – requests session
- Returns:
list of graphics
- Return type:
list
ofPubMedCentralOpenAccesGraphic
- biosimulators_utils.ref.utils.get_reference(pubmed_id=None, doi=None, cross_ref_session=<module 'requests' from '/home/runner/work/Biosimulators_utils/Biosimulators_utils/.venv/lib/python3.10/site-packages/requests/__init__.py'>)[source]#
Get data about a reference by its PubMed id and/or DOI
- Parameters:
pubmed_id (
str
, optional) – PubMed iddoi (
str
, optional) – DOIsession (
requests.sessions.Session
, optional) – requests session
- Returns:
data about a reference
- Return type:
JournalArticle