Skip to content

Commit de244fc

Browse files
Add jekyll-remote-include gem and citation resources for tskit
added citation_url and citation_md (and removed some trailing white spaces) citation page citation page added to navbar citation upper case split citation to a software-citation file Update _includes/software-citation.html Co-authored-by: Ben Jeffery <[email protected]>
1 parent f05705d commit de244fc

File tree

12 files changed

+80
-16
lines changed

12 files changed

+80
-16
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ gem "minima", "~> 2.0"
2020
# If you have any plugins, put them here!
2121
group :jekyll_plugins do
2222
gem "jekyll-feed", "~> 0.6"
23+
gem 'jekyll-remote-include', :github => 'netrics/jekyll-remote-include'
24+
2325
end
2426

2527
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
GIT
2+
remote: https://github.com/netrics/jekyll-remote-include.git
3+
revision: 39ae1a1744c8837d5ee64b11c5f982304ea940e5
4+
specs:
5+
jekyll-remote-include (1.0.2)
6+
17
GEM
28
remote: https://rubygems.org/
39
specs:
@@ -103,6 +109,7 @@ DEPENDENCIES
103109
jekyll-feed (~> 0.6)
104110
jekyll-font-awesome-sass
105111
jekyll-redirect-from
112+
jekyll-remote-include!
106113
jekyll-theme-cayman
107114
jekyll-timeago
108115
minima (~> 2.0)

_includes/navbar.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<li class="nav__item">
6464
<a href="{{ '/news' | relative_url }}" class=" nav__item__link">News</a>
6565
</li>
66+
<li class="nav__item">
67+
<a href="{{ '/citation' | relative_url }}" class=" nav__item__link">Citation</a>
68+
</li>
6669
<li class="nav__item">
6770
<a href="{{ '/community' | relative_url }}" class=" nav__item__link">Community</a>
6871
</li>

_includes/software-citation.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="col-md-12">
2+
<details style="border-radius: 6px; padding: 0.5em; background-color: #03303E; margin-bottom: 0.5em;">
3+
<summary style="cursor: pointer; font-family: 'rothwood'">{{ app.title }}</summary>
4+
5+
{% if app.citation_md %}
6+
{% capture citation_md %}
7+
{% remote_include app.citation_md %}
8+
{% endcapture %}
9+
<div style="margin-top: 1em; font-size: 13px;">
10+
{{ citation_md | replace: "(sec_citation)=", "" | replace: "(citation)=", "" | markdownify }}
11+
</div>
12+
{% endif %}
13+
14+
<p>Citation details for {{ app.title }} can be found at: <a href="{{ app.citation_url }}">{{ app.citation_url }}</a></p>
15+
</details>
16+
</div>
17+

_software/msprime.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ layout: software-page
33
title: msprime
44
name: msprime
55
#Uncomment to override automatic values
6-
#description:
7-
#repo_url:
6+
#description:
7+
#repo_url:
88
gh_org: tskit-dev
99
docs_url: https://tskit.dev/msprime/docs/
1010
category: simulate
@@ -14,16 +14,18 @@ logo: https://raw.githubusercontent.com/tskit-dev/administrative/main/logos/svg/
1414
priority: 2
1515
code_snippet: |2
1616
ts = msprime.sim_ancestry(
17-
samples=10,
18-
recombination_rate=1e-4,
17+
samples=10,
18+
recombination_rate=1e-4,
1919
sequence_length=1e6
2020
)
2121
ts = msprime.sim_mutations(ts, rate=1e-6)
2222
redirect_from:
2323
- /msprime/
24+
citation_url: https://tskit.dev/msprime/docs/stable/CITATION.html
25+
citation_md: https://raw.githubusercontent.com/tskit-dev/msprime/refs/heads/main/CITATION.md
2426
---
2527

26-
Msprime is a Python package that simulates ancestral histories and
28+
Msprime is a Python package that simulates ancestral histories and
2729
DNA sequence data. Msprime uses backwards-in-time "coalescent" models
28-
which allows it to simulate data very efficiently; however, it
30+
which allows it to simulate data very efficiently; however, it
2931
is not as flexible as forwards-in-time simulators like SLiM or fwdpy11.

_software/pyslim.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ layout: software-page
33
title: pyslim
44
name: pyslim
55
#Uncomment to override automatic values
6-
#description:
7-
#repo_url:
6+
#description:
7+
#repo_url:
88
gh_org: tskit-dev
99
docs_url: https://tskit.dev/pyslim/docs/stable
1010
category: analyse
1111
python_package: pyslim
1212
priority: 12
1313
code_snippet: |2
1414
rts = pyslim.recapitate(
15-
ts,
15+
ts,
1616
ancestral_Ne=10000
1717
)
1818
redirect_from:
1919
- /pyslim/
20+
citation_url: https://zenodo.org/records/8205346
2021
---
2122

2223
pyslim is a small python package to help analyse and manipulate tree sequences

_software/tsbrowse.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ layout: software-page
33
title: tsbrowse
44
name: tsbrowse
55
#Uncomment to override automatic values
6-
#description:
7-
#repo_url:
6+
#description:
7+
#repo_url:
88
gh_org: tskit-dev
99
docs_url: https://tskit.dev/tsbrowse/docs/
1010
category: analyse
@@ -15,6 +15,7 @@ code_snippet: |2
1515
python -m tsbrowse serve example.tsbrowse
1616
redirect_from:
1717
- /tsbrowse/
18+
citation_url: https://doi.org/10.1101/2025.04.23.649987
1819
---
1920

2021
tsbrowse is a Python package that creates a webapp for exploration of the data model

_software/tsdate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ docs_url: https://tskit.dev/tsdate/docs/stable/
77
publication: https://doi.org/10.1126/science.abi8264
88
category: infer
99
python_package: tsdate
10-
logo: https://raw.githubusercontent.com/tskit-dev/administrative/main/logos/svg/tsdate/Tskit_tsdate_logo_on_black_no_background.eps.svg
10+
logo: https://raw.githubusercontent.com/tskit-dev/administrative/main/logos/svg/tsdate/Tskit_tsdate_logo_on_black_no_background.eps.svg
1111
priority: 4
1212
code_snippet: |2
1313
dated_ts = tsdate.date(inferred_ts, mutation_rate=1e-8)
1414
redirect_from:
1515
- /tsdate/
16+
citation_url: https://tskit.dev/tsdate/docs/stable/#citing
1617
---
17-
Tsdate is a scalable method for estimating the age of ancestral nodes in a tree sequence.
18+
Tsdate is a scalable method for estimating the age of ancestral nodes in a tree sequence.

_software/tsinfer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ code_snippet: |2
1616
ts = tsinfer.infer(sample_data)
1717
redirect_from:
1818
- /tsinfer/
19+
citation_url: https://tskit.dev/tsinfer/docs/stable/CITATION.html
20+
citation_md: https://raw.githubusercontent.com/tskit-dev/tsinfer/refs/heads/main/CITATION.md
21+
1922
---
2023
``Tsinfer`` is a Python package to infer a tree sequence from large
2124
quantities of phased DNA sequence data, for example in a VCF file

_software/tskit.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ code_snippet: |2
1313
afs = ts.allele_frequency_spectrum()
1414
redirect_from:
1515
- /tskit/
16+
citation_url: https://tskit.dev/tskit/docs/stable/citation.html
17+
citation_md: https://raw.githubusercontent.com/tskit-dev/tskit/refs/heads/main/docs/citation.md
1618
---
1719
The tskit library provides the underlying functionality used to load, examine, and
1820
manipulate tree sequences, including efficient methods for calculating genetic statistics.
19-
It often forms part of an installation of other software packages such as
21+
It often forms part of an installation of other software packages such as
2022
msprime, SLiM, fwdpp, and tsinfer.

0 commit comments

Comments
 (0)