bids2cite package
Submodules
bids2cite.bids2cite module
Add a datacite to your BIDS dataset.
details on the format of datacite for GIN: https://gin.g-node.org/G-Node/Info/wiki/DOIfile
- class bids2cite.bids2cite.MuhParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True)[source]
Bases:
ArgumentParserParser for the main script.
- bids2cite.bids2cite.bids2cite(bids_dir: Path, output_format: str, description: str | None = None, keywords: list[str] | None = None, license: str | None = None, skip_prompt: bool = False, authors_file: Path | None = None) None[source]
Create a datacite.yml file for a BIDS dataset.
- bids2cite.bids2cite.cli(argv: Any = ['/home/docs/checkouts/readthedocs.org/user_builds/bids2cite/envs/stable/lib/python3.8/site-packages/sphinx/__main__.py', '-T', '-E', '-b', 'html', '-d', '_build/doctrees', '-D', 'language=en', '.', '_build/html']) None[source]
Execute the main script for CLI.
- bids2cite.bids2cite.update_description(description: str | None = None, skip_prompt: bool = False) str[source]
Update the description of the dataset.
bids2cite.license module
Deals with license information.
- bids2cite.license.add_license_file(license_type: str, output_dir: Path) None[source]
Add a license file to the dataset directory.
- bids2cite.license.identify_license(ds_desc: dict[str, Any]) tuple[str, str][source]
Identify the license of the dataset.
- bids2cite.license.manually_add_license(bids_dir: Path, output_dir: Path, ds_desc: dict[str, Any], skip_prompt: bool = False) tuple[str, str][source]
Prompt user for what license to add.
bids2cite.references module
Deal with references.
- bids2cite.references.get_reference_details(reference: str) dict[str, str][source]
Get reference details.
- bids2cite.references.get_reference_info_from_doi(doi: str) dict[str, Any] | None[source]
Get reference info from DOI.
- bids2cite.references.get_reference_info_from_pmid(pmid: str) None | dict[str, Any][source]
Get reference info from PubMed.
- bids2cite.references.references_for_citation(references: list[dict[str, str]]) list[dict[str, str]][source]
Return authors formatted for citation.cff files.
bids2cite.utils module
Misc.
- bids2cite.utils.bids2cite_log(name: str | None = None) logging.Logger[source]
Create log.
- Parameters
name (_type_, optional) – _description_, defaults to None
- Returns
_description_
- Return type
_type_