Skip to content

Commit fda0304

Browse files
committed
Add webpage multideconv
Add vignettes
1 parent a8bad46 commit fda0304

19 files changed

+15487
-7
lines changed

.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
^\.Rproj\.user$
33
^LICENSE\.md$
44
^README\.Rmd$
5+
^_pkgdown\.yml$
6+
^docs$
7+
^pkgdown$
8+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/github-pages-deploy-action@v4.5.0
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.RData
44
.Ruserdata
55
inst/doc
6+
docs

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ LazyData: true
6767
LazyDataCompression: bzip2
6868
Config/testthat/edition: 3
6969
VignetteBuilder: knitr
70+
URL: https://mhurtado13.github.io/multideconv/

R/cell_deconvolution.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ if (!dir.exists(signature_dir)) {
88
dir.create(signature_dir, recursive = TRUE)
99
}
1010

11-
library(pcaMethods) #Explicitly loading pcaMethods to access functions like prep(), which are not imported via @import. Problem with DeconRNASeq that uses not imported functions from pcaMethods
1211
utils::globalVariables(c("mcp", "xcell" ,"i", ".", "samples_ids", "multisession", ".data", "Patient", "var", "id", "value", "P", "sig_p", "r", "y", "p", "average", "Cells", "variable", "value", "pval_value"))
1312

1413
#' Compute deconvolution preprocessing
@@ -1389,6 +1388,7 @@ computeEpiDISH = function(TPM_matrix, signature_file, name_signature){
13891388
#'
13901389
#' @import pcaMethods
13911390
computeDeconRNASeq = function(TPM_matrix, signature_file, name_signature){
1391+
library(pcaMethods) #Explicitly loading pcaMethods to access functions like prep(), which are not imported via @import. Problem with DeconRNASeq that uses not imported functions from pcaMethods
13921392

13931393
decon <- DeconRNASeq::DeconRNASeq(TPM_matrix, data.frame(signature_file))
13941394
deconRNAseq = decon$out.all
@@ -1599,10 +1599,8 @@ compute_methods_variable_signature = function(TPM_matrix, signatures, algos = c(
15991599
#' data("pseudobulk")
16001600
#'
16011601
#' deconv = compute.deconvolution(raw_counts, normalized = TRUE,
1602-
#' methods = c("DWLS", "DeconRNASeq"), return = FALSE)
1602+
#' methods = c("Epidish", "DeconRNASeq"), return = FALSE)
16031603
#'
1604-
#' deconv = compute.deconvolution(raw_counts, normalized = TRUE, methods = "DWLS",
1605-
#' signatures_exclude = "BPRNACan", return = FALSE)
16061604
#'
16071605
#' @references
16081606
#'

_pkgdown.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: https://mhurtado13.github.io/multideconv/
2+
template:
3+
bootstrap: 5
4+

man/compute.deconvolution.Rd

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*.R

vignettes/Results/Benchmark.png

372 KB
Loading

0 commit comments

Comments
 (0)