Skip to content

Commit 03da4f2

Browse files
committed
update workflow and docs
1 parent 18cdaa2 commit 03da4f2

File tree

5 files changed

+48
-39
lines changed

5 files changed

+48
-39
lines changed

.githubs/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test-and-docs:
7+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-22.04]
12+
julia-version: ['1.9']
13+
r-version: ['4.2.1']
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: r-lib/actions/setup-r@v2
18+
with:
19+
r-version: ${{ matrix.r-version }}
20+
21+
- uses: julia-actions/setup-julia@latest
22+
with:
23+
version: ${{ matrix.julia-version }}
24+
25+
- uses: julia-actions/julia-runtest@v1
26+
env:
27+
LD_LIBRARY_PATH: /opt/R/${{ matrix.r-version }}/lib/R/lib
28+
29+
- uses: julia-actions/julia-processcoverage@v1
30+
- uses: codecov/codecov-action@v3
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
file: lcov.info
34+
- uses: julia-actions/julia-docdeploy@v1
35+
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.julia-version == '1.9' }} # only run docs in one env
36+
env:
37+
LD_LIBRARY_PATH: /opt/R/${{ matrix.r-version }}/lib/R/lib
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
39+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Manifest.toml
2-
docs/build
2+
docs/build
3+
docs/src/examples/

docs/make.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ makedocs(sitename="SplitClusterTest.jl",
2020
]
2121
)
2222

23-
# deploydocs(
24-
# repo = "github.com/szcf-weiya/SplitClusterTest.jl"
25-
# )
23+
deploydocs(
24+
repo = "github.com/szcf-weiya/SplitClusterTest.jl"
25+
)

docs/src/examples/demo-mirror.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/demo-mirror.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ using SplitClusterTest
44
using Plots
55

66
# Without cluster structure, the mirror statistics are symmetric about zero since all features are null features.
7-
x, cl = gen_data_normal(1000, 2000, 0.5, prop_imp=0.1);
8-
ms = ds(x, method = "tstat", ret_ms = true)
7+
x, cl = gen_data_normal(1000, 2000, 0.0, prop_imp=0.1);
8+
ms = ds(x, ret_ms = true)
99
histogram(ms, label = "")
1010

1111

1212
# With cluster structure, the mirror statistics of DE genes tend to be larger and away from null features,
1313
# where the null features still exhibit a symmetric distribution about zero.
1414
# Then we can properly take the cutoff to control the FDR, as shown by the red vertical line.
15-
x, cl = gen_data_normal(1000, 2000, 0.0, prop_imp=0.1);
16-
ms = ds(x, method = "tstat", ret_ms = true) # without vertical line
15+
x, cl = gen_data_normal(1000, 2000, 0.5, prop_imp=0.1);
16+
ms = ds(x, ret_ms = true) # without vertical line
1717
τ = calc_τ(ms)
1818
histogram(ms, label = "")
1919
Plots.vline!([τ], label = "", lw = 3)

0 commit comments

Comments
 (0)