Skip to content

Commit 13be440

Browse files
authored
Add dcm2niix to the table of converters and fix "Updated" column (they both reuse github_repo_path now) (bids-standard#657)
1 parent f5b2887 commit 13be440

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

data/tools/converters.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,24 @@
245245
url: https://hub.docker.com/r/unfmontreal/dcm2bids
246246
license: GPL-3.0
247247

248+
- name: dcm2niix
249+
repo_url: https://github.com/rordenlab/dcm2niix/
250+
status: active
251+
data_types:
252+
- MRI
253+
- PET
254+
expected_input:
255+
- DICOM
256+
language:
257+
- C++
258+
comment: converts DICOM files to NIfTI and BIDS sidecar JSON files
259+
documentation: https://github.com/rordenlab/dcm2niix/
260+
distribution:
261+
- name: github-releases
262+
- name: pypi
263+
url: https://pypi.org/project/dcm2niix
264+
license: BSD-3-Clause
265+
248266
- name: EEG2BIDS
249267
repo_url: https://github.com/aces/EEG2BIDS
250268
status: active

templates/converters_table_md.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{% if converter.status == 'active' and data_type in converter.data_types %}
55
{% if data_type in converter.data_types %}
66
{% set converter_url = converter.documentation if converter.documentation else converter.repo_url %}
7-
| [{{ converter.name }}]( {{ converter_url }} "{{ converter.comment | replace("\n", " ") }}" ) | {% for input in converter.expected_input or ["N/A"] %} {{ input }} <br> {% endfor %} | {% for lang in converter.language or ["N/A"] %} {{ lang }} <br> {% endfor %} | {% for entry in converter.distribution or [] %} {% if entry.name == "pypi" %} [![PyPI version](https://badge.fury.io/py/{{ entry.url | replace("https://pypi.org/project/", "") }}.svg)]({{ entry.url }}) <br> {% elif entry.name == "dockerhub" %} [![dockerhub pulls](https://img.shields.io/docker/pulls/{{ entry.url | replace("https://hub.docker.com/r/", "")}}.svg)]({{ entry.url }}) <br> {% elif entry.name == "conda-forge" %} [![conda forge]({{ entry.url }}badges/version.svg)]({{ entry.url }}) <br> {% else %} [entry.name](entry.url) <br> {% endif %} {% endfor %} | !["GitHub last commit"](https://img.shields.io/github/last-commit/{{ converter.url | replace("https://github.com/", "") }}?style=plastic) |
7+
{% set github_repo_path = converter.repo_url | replace("https://github.com/", "") | trim("/") %}
8+
| [{{ converter.name }}]( {{ converter_url }} "{{ converter.comment | replace("\n", " ") }}" ) | {% for input in converter.expected_input or ["N/A"] %} {{ input }} <br> {% endfor %} | {% for lang in converter.language or ["N/A"] %} {{ lang }} <br> {% endfor %} | {% for entry in converter.distribution or [] %} {% if entry.name == "pypi" %} [![PyPI version](https://badge.fury.io/py/{{ entry.url | replace("https://pypi.org/project/", "") }}.svg)]({{ entry.url }}) <br> {% elif entry.name == "dockerhub" %} [![dockerhub pulls](https://img.shields.io/docker/pulls/{{ entry.url | replace("https://hub.docker.com/r/", "")}}.svg)]({{ entry.url }}) <br> {% elif entry.name == "conda-forge" %} [![conda forge]({{ entry.url }}badges/version.svg)]({{ entry.url }}) <br> {% elif entry.name == "github-releases" %} [![github](https://img.shields.io/github/v/release/{{ github_repo_path }}?sort=semver)]({{ converter.repo_url | trim("/") }}/releases) <br> {% else %} [{{ entry.name }}]({{ entry.url }}) <br> {% endif %} {% endfor %} | !["GitHub last commit"](https://img.shields.io/github/last-commit/{{ github_repo_path }}?style=plastic) |
89
{% endif %}
910
{% endif %}
1011
{% endfor %}

0 commit comments

Comments
 (0)