Skip to main content

create a citation file for a BIDS dataset

Project description

codecov License https://github.com/psf/black pre-commit.ci status

bids2cite

Create a citation file for a BIDS dataset.

Can also be used to update references, authors and add license to a dataset.

Installation

git clone https://github.com/Remi-Gau/bids2cite.git
cd bids2cite
pip install .

For developers

pip install .[dev]

Basic tests can be run with:

make test
make test-cli

Usage

The most basic usage is:

bids2cite path_to_bids_dataset

An example of call with all the options:

bids2cite "tests/bids" \
    --keywords "foo, bar, me" \
    --description "this is the description of my dataset" \
    --authors_file "inputs/authors.tsv" \
    --skip-prompt false \
    --verbosity INFO

--keywords and --description allow you to pass keywords and description to add to the citation file.

--skip-prompt is set to false (default) to prompt you for information to add to the citation file.

--authors_file points to a TSV file containing potential authors to add citation file. This can be useful if you need to have a single file to keep track of several lab members and only pick the relevant ones to add to a given dataset.

This TSV file must at least have first_name and last_name columns, but can also include ORCID and affiliation columns.

first_name last_name ORCID affiliation
Rémi Gau 0000-0002-1535-9767 UCLouvain
Mohamed Rezk 0000-0002-1866-8645 UCLouvain

There is a sample TSV in the inputs folder.

Type the following for more info on how to run it:

bids2cite --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bids2cite-0.1.1.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

bids2cite-0.1.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file bids2cite-0.1.1.tar.gz.

File metadata

  • Download URL: bids2cite-0.1.1.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for bids2cite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5633bf7bd6035a983b51dcf2ae3a0b6e1e68abf95351e7632ab9dc17ed5c386e
MD5 317dcf0f806c11609aa14817b87fb3c3
BLAKE2b-256 12215c5fa41b4fbb7695024c23329835b0726e462ce7004d48c3605a511acfd8

See more details on using hashes here.

File details

Details for the file bids2cite-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bids2cite-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for bids2cite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 252ee5085b4d345ce231fe91f93ecb7840791b222571e81427b1e22ed6264cd7
MD5 f2cd5386ab6c1602bf63d216ee649262
BLAKE2b-256 52b7f36d6d5c8709f22ccebe04c955dd839bf43935ebbb255e9e503cb83cfc12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page