Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
fd71bfd
Add JOSS manuscript draft
cthoyt May 9, 2025
3853d75
Update paper.md
cthoyt May 9, 2025
1a37c99
Fixed syntax error in a comment in y0/examples/__init__.py affecting …
Jun 4, 2025
b71846b
Fixed typo in a comment affecting doctests
Jun 4, 2025
a186971
Averted a deprecation warning in __init__.py that shows up in the doc…
Jun 4, 2025
80ed450
Merge branch 'main' into joss
cthoyt Jun 15, 2025
b879d5e
Update paper.md
cthoyt Jun 15, 2025
e31c4c7
Cleanup bibliography
cthoyt Jun 15, 2025
d1a1764
Update README.md
cthoyt Jun 15, 2025
a1cf5ef
Merge branch 'main' into joss
cthoyt Jun 15, 2025
b44729c
Update paper.md
cthoyt Jun 15, 2025
363e2e7
Update README.md
cthoyt Jun 15, 2025
18aba67
Merge branch 'main' into joss
cthoyt Jun 15, 2025
dc61a31
Fix figure
cthoyt Jun 15, 2025
00fc4d9
Update paper.md
cthoyt Jun 15, 2025
5d5d556
Update paper.md
cthoyt Jun 15, 2025
a26247c
Update paper
cthoyt Jun 20, 2025
1b2138e
Editorial pass
cthoyt Jun 21, 2025
2fe89b9
Update README.md
cthoyt Jun 21, 2025
dd8b273
Merge branch 'main' into joss
cthoyt Jun 21, 2025
da8bba4
Update paper.md
cthoyt Jun 21, 2025
0ce046c
Add pruthvi orcid and update bibliography
cthoyt Jun 22, 2025
a5bd43c
Squash JZ and NM commits and remove bad merge
cthoyt Jul 15, 2025
50ed871
Sort middle authors by family name
cthoyt Jul 15, 2025
0c78b6d
Update headings
cthoyt Jul 15, 2025
02fc7f1
Update paper.md
cthoyt Jul 15, 2025
74bce06
Create paper.pdf
cthoyt Jul 15, 2025
ee5774a
Update .gitignore
cthoyt Jul 15, 2025
803faec
Minor edits and remove redundant text from summary
cthoyt Jul 15, 2025
5d55df5
Update paper.md
cthoyt Jul 15, 2025
3f291d2
Merge branch 'main' into joss
cthoyt Jul 15, 2025
db60603
Update paper.pdf
cthoyt Jul 15, 2025
c51d994
Update intro
cthoyt Jul 16, 2025
b2dc384
Add emails
cthoyt Jul 16, 2025
520697a
Update paper.pdf
cthoyt Jul 16, 2025
f0171be
Minor grammar
cthoyt Jul 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions paper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# $Y_0$ Manuscript

This folder contains source material for a
[Journal of Open Source Software](https://joss.theoj.org/) submission:

1. [paper.md](paper.md): the main manuscript
2. [paper.bib](paper.bib): BibTex citations for the manuscript

Target submission date: June 20th, 2025.

## TODO

- mention HCM data structure from `[@weinstein2024hierarchicalcausalmodels]`,
_only after_ https://github.com/y0-causal-inference/y0/pull/236 is finished
and merged
- @Jeremy reference other PNNL use cases (even if they're not published)
- @Jeremy there's a note for you to fill in a sentence in the future work
paragraph
- Get Richard and Pruthvi's ORCIDs

## Linting

The markdown files here are linted with:

```shell
npx prettier --prose-wrap always --check "**/*.md" --write
```

## Build

Follow the instructions at
https://joss.readthedocs.io/en/latest/submitting.html#docker:

```shell
sh build.sh
```

## Submission

Follow the instructions at https://joss.theoj.org/papers/new.

## Authorship Concept

- All material contributors to the $Y_0$ package are eligible for authorship.
- Lead authorship will be shared between Charles Tapley Hoyt and Jeremy Zucker
- Remaining authors will be listed alphabetically by last name
- JOSS's
[authorship policy](https://joss.readthedocs.io/en/latest/submitting.html#authorship)
states:

> Purely financial (such as being named on an award) and organizational (such
> as general supervision of a research group) contributions are not considered
> sufficient for co-authorship of JOSS submissions, but active project
> direction and other forms of non-code contributions are.

## Extras

Some references that didn't make it into the manuscript:

- Good and bad controls [@cinelli2022crash] (could go in future work)
24 changes: 24 additions & 0 deletions paper/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# old way
# see https://joss.readthedocs.io/en/latest/submitting.html#docker
# docker run --rm \
# --volume $PWD:/data \
# --user $(id -u):$(id -g) \
# --env JOURNAL=joss \
# openjournals/paperdraft

# new way using `inara`, not documented by JOSS yet
# see https://github.com/openjournals/inara/tree/main
docker run --rm \
--volume $PWD:/data \
--user $(id -u):$(id -g) \
--env JOURNAL=joss \
openjournals/inara \
-o pdf,preprint \
paper.md

latexmk -pdf paper.preprint.tex
rm paper.preprint.aux
rm paper.preprint.fdb_latexmk
rm paper.preprint.fls
rm paper.preprint.log
rm paper.preprint.tex
Binary file added paper/figures/cancer_tar.pdf
Binary file not shown.
35 changes: 35 additions & 0 deletions paper/figures/figure_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""Generate Figure 1 for the JOSS manuscript."""

import matplotlib.pyplot as plt

from y0.dsl import Variable
from y0.graph import NxMixedGraph

Cancer = Variable("Cancer")
Smoking = Variable("Smoking")
Tar = Variable("Tar")

layout = {
Smoking: [-5, 0],
Tar: [0, 0.5],
Cancer: [5, 0],
}

cancer_graph_initial = NxMixedGraph.from_edges(
directed=[(Smoking, Tar), (Tar, Cancer), (Smoking, Cancer)]
)
cancer_graph = NxMixedGraph.from_edges(
directed=[(Smoking, Tar), (Tar, Cancer), (Smoking, Cancer)], undirected=[(Smoking, Tar)]
)

fig, (lax, rax) = plt.subplots(1, 2, figsize=(10, 3))

fontdict = {"fontsize": 20, "fontweight": "bold"}
lax.text(-6.55, 0.56, "A", fontdict=fontdict)
rax.text(-6.55, 0.56, "B", fontdict=fontdict)

cancer_graph_initial.draw(ax=lax, layout=layout, font_size=15, node_size=5000)
cancer_graph.draw(ax=rax, layout=layout, font_size=15, node_size=5000, radius=-0.7)

fig.tight_layout(pad=0.0)
fig.savefig("cancer_tar.pdf")
Loading
Loading