Skip to content

Commit c97c6fe

Browse files
committed
update intro page.
1 parent 2ddf6bf commit c97c6fe

95 files changed

Lines changed: 7172 additions & 3831 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 70d33d9a7968bb67220977a0118c9c39
3+
config: a96b3423adedbde1c3a8df9c8e5ec861
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_images/causalgps_logo.svg

Lines changed: 472 additions & 0 deletions
Loading

docs/_images/cre_logo.svg

Lines changed: 18 additions & 0 deletions
Loading

docs/_images/place_holder.svg

Lines changed: 12 additions & 0 deletions
Loading

docs/_sources/blog_posts/TBD.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TBD
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Contribution
2+
3+
Contributions to any of the NSAPH-Software packages are welcome and strongly encouraged. These contributions can come in different forms, including but not limited to:
4+
5+
- Adding new features,
6+
- Improving documentation,
7+
- Addressing open issues,
8+
- Reporting a bug or requesting a new feature,
9+
- Fixing typos in the documentation,
10+
- Improving logging messages,
11+
- And many more.
12+
13+
Please read the following documents before making changes to the codebase.
14+
15+
## Git Branching Model
16+
17+
Although, in your personal repository, you can pick any branch name, however, to keep consistency and understand who is working on what, the following convention is strongly recommended. In this project, we follow the convention that Vincent Driessen proposes in his [A successful Git branching model](A successful Git branching model) post.
18+
19+
Here is the summary of the branches:
20+
21+
- **master/main**: master/main branch only hosts the released software packages. Only project maintainers have a write-access on the master/main branch.
22+
- **develop**: develop branch is considered the main branch where the source code of HEAD always reflects a state with the latest delivered development changes for the next release.
23+
- **supporting branch**: There are different supporting branches; three main supporting branches that we suggest the contributors follow the naming convention include:
24+
- **feature**: we start a new feature branch to add new features to the software. The naming convention is iss[issue_number]_short_description. For example, if I need to add unittest to one of the functions in the package and the issue number is 12, iss12_add_unittest can be a valid git branch name. We start with the issue number to go back and take a look at the issue details if necessary. Although feature branches are temporary, this naming convention helps developers to understand the situation while working on the codebase. If you are working on some features that there is no open issue for that, please open an issue and put a comment that you are working on that issue.
25+
26+
```{note}
27+
It is a good idea to consult with the package maintainers and/or core developers before committing significant time to add new features to make sure that it fits into the short-term and long-term release plans.
28+
```
29+
- **hotfix**: hotfix branches will be only used for fixing a bug on a released package. After fixing the bug, the third digit of the version number should be incremented by one. For example, 2.3.5 –> 2.3.6. These branches will be prefixed with hotfix and followed by the upcoming version number (e.g., in this case, hotfix_2.3.6)
30+
- **release**: Release branches support the preparation of a new production release.
31+
32+
33+
## Submitting a Pull Request (PR)
34+
35+
All pull requests should be submitted to the develop branch of each package. Here is the PR checklist:
36+
37+
- If you added a new feature, make sure that appropriate unittests and documentation are also added.
38+
- Make sure that you have merged the latest code from the develop branch into your feature branch.
39+
- Update the NEWS.md file with the changes that you make (Do not change the version or title of the NEWS.md file).
40+
- Make sure to clean up white spaces. Read more [here](https://softwareengineering.stackexchange.com/questions/121555/why-is-trailing-whitespace-a-big-deal).
41+
- Make sure the code passes all tests in your local system.
42+
- After submitting a PR, please keep an eye on the CI test/check results. If there is a failed test or check, please address them and resubmit.
43+
44+
45+
## Reporting Bugs
46+
47+
Please report potential bugs by opening a new issue in the package repository. Please include the following information in your bug report:
48+
49+
- A brief description of what you are doing, what you expected to happen, and what happened.
50+
- OS that you are using and whether you are using a personal computer or HPC cluster.
51+
- The version of the package that you have installed.
52+
53+
## Scientific Discussions
54+
55+
In scientific research, many decisions can still be open research questions. We may choose an approach, document it, and move forward. However, other options can be valid and open to discussion. We strongly encourage contributing to these discussions under each repository's `Discussions` tab.
56+
57+
## Log Messages
58+
59+
All packages come with logging capabilities. Log messages are very important in understanding the internal processes, catching bugs, and developing robust software. If you add new features, please also add logging messages. TODO: Different levels of logging messages.
60+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Python Styling Guide
2+
3+
TBD

docs/_sources/developers_zone/r.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# R Styling Guide
2+
3+
For the R packages, we follow [The tidyverse style guide](https://style.tidyverse.org/). Here are some examples:
4+
5+
## Spaces and Indentation
6+
7+
- Indentations are two spaces (do not use a tab key)
8+
- Place space around binary operators (e.g., x + y)
9+
10+
```r
11+
# Acceptable
12+
z <- x + y
13+
14+
# Not recommended
15+
z<-x+y # (no space)
16+
x<- x+y
17+
z<-x +y
18+
```
19+
20+
- Place a space after comma
21+
22+
```r
23+
# Acceptable
24+
a <- matrix(c(1:100), nrow = 5)
25+
26+
# Not recommended
27+
a <- matrix(c(1:100),nrow = 5) # (no space after comma)
28+
a <- matrix( c(1:100), nrow = 5 ) # (extra space after and before parentheses)
29+
a<-matrix(c(1:100), nrow = 5) # (no space around unary operator <- )
30+
```
31+
32+
- Place a space after # and before comments and avoid multiple ###.
33+
34+
```r
35+
# Acceptable
36+
# This is a comment.
37+
38+
# Not recommended
39+
#This is a comment
40+
# This is a comment (more than one space after #)
41+
## This is a comment (multiple #)
42+
```
43+
44+
- Do not put space at the opening and closing parenthesis
45+
46+
```r
47+
# Acceptable
48+
x <- (z + y)
49+
50+
# Not recommended
51+
x <- ( z + y )
52+
x <- (z + y )
53+
x <- ( z + y)
54+
```
55+
56+
- Place a space before and after `()` when used with `if`, `for`, or `while`.
57+
58+
```r
59+
# Acceptable
60+
61+
if (x > 2) {
62+
print(x)
63+
}
64+
65+
# Not recommended
66+
67+
if(x > 2){
68+
print(x)
69+
}
70+
```
71+
72+
## Other notes
73+
74+
- Maximum line length is 80 character
75+
- Use explicit returns
76+
- Use explicit tags in documentation (e.g., @title, @description, ... )
77+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Styling Guide
2+
3+
- [R Styling Guide](r.md)
4+
- [Python Styling Guide](python.md)
5+

docs/_sources/intro.md

Lines changed: 99 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,103 @@
1-
# Welcome to your Jupyter Book
1+
# National Studies on Air Pollution and Health Software
22

3-
This is a small sample book to give you a feel for how book content is
4-
structured.
5-
It shows off a few of the major file types, as well as some sample content.
6-
It does not go in-depth into any particular topic - check out [the Jupyter Book documentation](https://jupyterbook.org) for more information.
3+
NSAPH Software is a collection of open-source packages to carry out **N**ational **S**tudies on **A**ir **P**ollution and **H**ealth.
74

8-
Check out the content pages bundled with this sample book to see more.
95

10-
```{tableofcontents}
6+
7+
````{panels}
8+
:container: +full-width text-center
9+
:column: col-lg-4 px-4 py-3
10+
:footer: text-left
11+
:card:
12+
13+
---
14+
15+
**[CausalGPS](https://github.com/fasrc/CausalGPS/)**
16+
^^^
17+
18+
```{figure} figures/svg/causalgps_logo.svg
19+
:height: 100px
20+
:name: causalgps
21+
```
22+
Matching on generalized propensity scores with continuous exposures
23+
24+
[![](http://www.r-pkg.org/badges/version-last-release/CausalGPS)](http://www.r-pkg.org/pkg/causalgps)
25+
[![R build status](https://github.com/fasrc/CausalGPS/workflows/R-CMD-check/badge.svg)](https://github.com/fasrc/CausalGPS/actions)
26+
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/CausalGPS)](http://www.r-pkg.org/pkg/causalgps)
27+
[![codecov](https://codecov.io/gh/fasrc/CausalGPS/branch/develop/graph/badge.svg?token=97PCUXRGXH)](https://app.codecov.io/gh/fasrc/CausalGPS/)
28+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/NSAPH/R_project_binder/master?urlpath=rstudio)
29+
30+
31+
---
32+
**[pycausalgps](https://github.com/fasrc/pycausalgps/)**
33+
^^^
34+
35+
```{figure} figures/svg/place_holder.svg
36+
:height: 100px
37+
:name: pycausalgps
1138
```
39+
40+
Matching on generalized propensity scores with continuous exposures (Python Package)
41+
42+
[![PyPI version](https://img.shields.io/pypi/v/pycausalgps.svg)](https://pypi.org/project/pycausalgps)
43+
44+
---
45+
**[CRE](https://github.com/NSAPH-Software/CRE/)**
46+
^^^
47+
48+
```{figure} figures/svg/cre_logo.svg
49+
:height: 100px
50+
:name: cre
51+
```
52+
53+
Interpretable Subgroups Identification through Ensemble Learning of Causal Rules
54+
55+
[![](http://www.r-pkg.org/badges/version-last-release/CRE)](http://www.r-pkg.org/pkg/cre)
56+
[![R-CMD-check](https://github.com/nsaph-software/CRE/workflows/R-CMD-check/badge.svg)](https://github.com/nsaph-software/CRE/actions)
57+
[![codecov](https://codecov.io/gh/NSAPH-Software/CRE/branch/develop/graph/badge.svg?token=UMSVOYRKGA)](https://codecov.io/gh/NSAPH-Software/CRE)
58+
59+
---
60+
**[GPCERF](https://github.com/NSAPH-Software/GPCERF)**
61+
^^^
62+
63+
```{figure} figures/svg/place_holder.svg
64+
:height: 100px
65+
:name: gpcerf
66+
```
67+
68+
Gaussian processes for the estimation of causal exposure-response curves (GPCERF)
69+
70+
[![](http://www.r-pkg.org/badges/version-last-release/GPCERF)](http://www.r-pkg.org/pkg/gpcerf)
71+
[![R build status](https://github.com/NSAPH-Software/GPCERF/workflows/R-CMD-check/badge.svg)](https://github.com/NSAPH-Software/GPCERF/actions)
72+
[![codecov](https://codecov.io/gh/NSAPH-Software/GPCERF/branch/develop/graph/badge.svg?token=066ISL822N)](https://codecov.io/gh/NSAPH-Software/GPCERF)
73+
74+
75+
---
76+
77+
**[CCIT](https://github.com/NSAPH-Software/CCIT)**
78+
^^^
79+
80+
```{figure} figures/svg/place_holder.svg
81+
:height: 100px
82+
:name: ccit
83+
```
84+
85+
Continuous Causal Interaction Tree
86+
87+
[![](http://www.r-pkg.org/badges/version-last-release/CCIT)](http://www.r-pkg.org/pkg/ccit)
88+
89+
---
90+
91+
**[NSAPHUtils](https://github.com/NSAPH-Software/NSAPHutils)**
92+
^^^
93+
94+
```{figure} figures/svg/place_holder.svg
95+
:height: 100px
96+
:name: nsaphutils
97+
```
98+
99+
Utility R functions and tools for working with data in NSAPH research
100+
101+
[![](http://www.r-pkg.org/badges/version-last-release/CCIT)](http://www.r-pkg.org/pkg/ccit)
102+
103+
````

0 commit comments

Comments
 (0)