Skip to content

Commit

Permalink
funding declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed May 23, 2023
1 parent 5d5ba71 commit 667441c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
21 changes: 20 additions & 1 deletion content/05.main-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,26 @@ This work was supported, in part, by Pfizer Worldwide Research, Development, and

## Funding

TODO
{% set funders = {} -%}
{%- for author in manubot.authors -%}
{% for funder in author.get('funders', []) -%}
{%- if funder in funders -%}
{% set _ = funders[funder].append(author.initials) %}
{%- else -%}
{% set _ = funders.update({funder: [author.initials]}) %}
{%- endif -%}
{%- endfor -%}
{%- endfor %}
{% for funder, author_initials in funders.items() -%}
{% if author_initials|length > 2 %}
{{- ', '.join(author_initials[:-1]) }}, and {{ author_initials[-1] }} were funded by {{ funder }}.
{% elif author_initials|length == 2 %}
{{- ' and '.join(author_initials) }} were funded by {{ funder }}.
{% else %}
{{- author_initials[0] }} was funded by {{ funder }}.
{% endif %}
{%- endfor -%}
The funders had no role in the study design, data analysis and interpretation, or writing of the manuscript.

## Authors' contributions

Expand Down
5 changes: 3 additions & 2 deletions content/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ authors:
affiliations:
- Carbon, Inc.
- Department of Computer Science, North Carolina State University, Raleigh, North Carolina, United States of America
funders: GBMF4560
funders:
- The Gordon and Betty Moore Foundation (GBMF4560)
- github: ben-heil
name: Benjamin J. Heil
initials: BJH
Expand All @@ -78,7 +79,7 @@ authors:
email: dongbo.hu@gmail.com
affiliations:
- Department of Pathology, Perelman School of Medicine University of Pennsylvania, Philadelphia PA, USA
funders: GBMF4552
funders: The Gordon and Betty Moore Foundation (GBMF4552)
- github: danich1
name: David N. Nicholson
initials: DNN
Expand Down

0 comments on commit 667441c

Please sign in to comment.