Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iatlas): import github.com/CRI-iAtlas/iatlas-app (ARCH-362) #2941

Draft
wants to merge 1,115 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1115 commits
Select commit Hold shift + click to select a range
89384e2
comment out the install and init file
andrewelamb Feb 22, 2022
2be9b66
redo workflow to run on prs to testing
andrewelamb Feb 22, 2022
552e30d
redo workflow to run on prs to testing
andrewelamb Feb 22, 2022
3797366
redo workflow to run on prs to testing
andrewelamb Feb 22, 2022
f7e6502
redo workflow to run on prs to testing
andrewelamb Feb 22, 2022
f5e2207
change app colors to match new figure
heimannch Feb 25, 2022
e32478d
update r and packages
andrewelamb Feb 25, 2022
2e96b1d
update r version in github workflow
andrewelamb Feb 25, 2022
a73fb04
Merge pull request #200 from CRI-iAtlas/issue_196_update_packages_R
andrewelamb Feb 25, 2022
5901431
handle merge
andrewelamb Feb 25, 2022
7c85e96
rename github token
andrewelamb Feb 25, 2022
669d06b
fix r code in workflow
andrewelamb Feb 25, 2022
9adf941
fix r code in workflow
andrewelamb Feb 25, 2022
d5350f3
fix r code in workflow
andrewelamb Feb 25, 2022
558d202
fix r code in workflow
andrewelamb Feb 25, 2022
e722b87
update login info
andrewelamb Feb 28, 2022
9c73568
add print statements for troubleshooting
andrewelamb Feb 28, 2022
8345b86
add print statements for troubleshooting
andrewelamb Feb 28, 2022
522d84a
redid how branch name is used
andrewelamb Feb 28, 2022
0a27bb7
update readme with new deployment description
andrewelamb Feb 28, 2022
107951e
add code to workflow to write config yaml
andrewelamb Feb 28, 2022
2c3f964
Merge pull request #203 from CRI-iAtlas/issue_193_deployment_2
andrewelamb Feb 28, 2022
4f82b2a
Merge pull request #204 from CRI-iAtlas/testing
andrewelamb Feb 28, 2022
94965ae
add links to Resources and About page
heimannch Feb 28, 2022
cad47ca
add links to Resources and About page
heimannch Feb 28, 2022
266311c
update navbar to links
heimannch Feb 28, 2022
765f66b
update color in sidenav
heimannch Mar 3, 2022
b2d1327
update About text, contact button color
heimannch Mar 3, 2022
7fec48e
Merge branch 'staging' into change_color_scheme
heimannch Mar 3, 2022
c31ccf7
Merge pull request #205 from CRI-iAtlas/change_color_scheme
andrewelamb Mar 4, 2022
e95a7ce
Merge pull request #206 from CRI-iAtlas/testing
andrewelamb Mar 4, 2022
ad78615
update workflows so that the testing branch does not exist.
andrewelamb Mar 4, 2022
b1e5164
Merge pull request #208 from CRI-iAtlas/issue_207_workflows
andrewelamb Mar 4, 2022
041693d
change nav bar to About and Resource as links to website
heimannch Mar 7, 2022
ae15449
rename iatlas packages
andrewelamb Mar 25, 2022
624279a
Merge pull request #209 from CRI-iAtlas/update_r_packages
andrewelamb Mar 25, 2022
651b544
updated package names
andrewelamb Apr 13, 2022
08aaed9
Merge pull request #212 from CRI-iAtlas/update_r_packages
andrewelamb Apr 14, 2022
760ff62
updated api library
andrewelamb Apr 25, 2022
df74976
ici distribution with only pre treatment samples
heimannch May 2, 2022
3fd6718
Merge pull request #213 from CRI-iAtlas/feature_211_nanostring_query
andrewelamb May 3, 2022
f42604a
ici immunomodulators displays nanostring data
heimannch May 2, 2022
880d3d3
addednanostring datasets in ici dataset overview
heimannch May 3, 2022
8178465
update number of samples in Prins dataset
heimannch May 4, 2022
03c75e9
update check fo modules available at ici modules
heimannch May 4, 2022
67f02ca
fixed nanostring dataset titles in comparison table
heimannch May 6, 2022
2bc2cea
remove nanostring datasets as options in ML module
heimannch May 9, 2022
d35b14b
fix ML module when dataset has only one class of response outcome
heimannch May 12, 2022
bcd0fcf
update dplyr function
heimannch May 12, 2022
787acf9
Merge branch 'staging' into nanostring_ui
heimannch May 13, 2022
5353aa5
moved R to 4.2, bioc to 3.15
andrewelamb May 17, 2022
295ec44
remove cyjshiny graph and biocgenerics
andrewelamb May 17, 2022
dd2b226
Merge branch 'update_r' into nanostring_ui
heimannch May 17, 2022
f5d63d4
update github workflows to R version 4.2.0
andrewelamb May 17, 2022
7e28fc2
fix description
andrewelamb May 17, 2022
797b665
remove shinycyj from description
andrewelamb May 17, 2022
0229409
install cmake in github workflow
andrewelamb May 17, 2022
d0271ab
removed print statements
andrewelamb May 18, 2022
66235f4
removed survminer and its dependancy nloptr
andrewelamb May 18, 2022
84c6e48
added cyjShiny, igvShiny and dependencies #219 #220
heimannch May 19, 2022
18c028f
update DESCRIPTION
heimannch May 20, 2022
f8e18f7
igvShiny with updated description
heimannch May 20, 2022
67cc2c5
igvShiny from master branch
heimannch May 23, 2022
b3c70df
igvShiny from master branch in DESCRIPTION
heimannch May 24, 2022
6c21d64
updated cyjShiny and igvShiny
heimannch May 27, 2022
6e56202
update igvShiny
heimannch May 31, 2022
2e590ef
remove BiocVersion from lockfile
heimannch May 31, 2022
6f55731
Merge pull request #219 from CRI-iAtlas/update_r2
andrewelamb May 31, 2022
5ab89d7
Merge branch 'staging' into update_text
heimannch May 31, 2022
31813b0
changed notebook shortcut to a link to Github page
heimannch May 31, 2022
373febb
update future package
heimannch Jun 1, 2022
865459e
update legend title in heritability plot/germline analysis
heimannch Jun 3, 2022
4d8edbc
fix mosaic plot in ICI Datasets Overview
heimannch Aug 10, 2022
8ba6329
Merge branch 'staging' into neoantigen
heimannch Aug 12, 2022
cac3d3c
update queries to iatlasGraphQLClient
heimannch Aug 12, 2022
5119cc5
correlation plot with display names
heimannch Aug 12, 2022
415bb1b
Merge branch 'nanostring_ui' into merge_2.1
heimannch Aug 15, 2022
60bc441
Merge branch 'update_text' into merge_2.1
heimannch Aug 15, 2022
82559d3
add kmplots
heimannch Aug 17, 2022
91d8827
neoantigen peptide frequency with x-axis label
heimannch Aug 17, 2022
d084f56
neoantigen classes plot with adjusted margins
heimannch Aug 17, 2022
f672523
update Google Analytics tag
heimannch Aug 22, 2022
5605ceb
add module name to URL
heimannch Aug 23, 2022
03f3020
add sum of samples available for ICI datasets
heimannch Aug 23, 2022
e2a7bde
remove URL creation
heimannch Aug 24, 2022
18dde3b
update README
heimannch Aug 29, 2022
3de5a05
Merge pull request #225 from CRI-iAtlas/merge_2.1
andrewelamb Sep 1, 2022
ae4af83
Merge branch 'staging' into neoantigen
heimannch Sep 8, 2022
d9d9e1c
fix ML issues #228
heimannch Sep 27, 2022
26da6bb
add glmnet
heimannch Sep 27, 2022
9402ef7
Merge pull request #229 from CRI-iAtlas/fix_ml_scale
andrewelamb Sep 30, 2022
ecadf2c
add bubble plot for single cell summary
heimannch Oct 10, 2022
4373451
added CRI prefix to iAtlas in text. First pass
vthorsson Oct 20, 2022
891c76c
update copyright date
vthorsson Oct 20, 2022
b8fe05d
fix links to ICI papers #234
heimannch Nov 22, 2022
fa9b0f5
fix data description link to methods #232
heimannch Nov 22, 2022
5c7add4
update immune subtype classifier #226 #233
heimannch Nov 22, 2022
6379f67
add shortcut for Help page
heimannch Dec 8, 2022
5e62d9f
add dec 2022 version of data
heimannch Dec 22, 2022
12defd6
update igvshiny, link to TIL manuscript
heimannch Mar 16, 2023
ffc4f9b
add UMAP viewer
heimannch Mar 20, 2023
ddd6c83
Merge pull request #236 from CRI-iAtlas/bug_fixes
heimannch Mar 20, 2023
977bc8c
Merge branch 'staging' into igv_update
heimannch Mar 20, 2023
868d4d4
Merge pull request #238 from CRI-iAtlas/igv_update
heimannch Mar 20, 2023
b92af71
fix #239
heimannch Mar 21, 2023
d254ec9
UMAP color based on gene expression
heimannch Mar 21, 2023
2ab6397
update select menu for bubbleplot
heimannch Mar 29, 2023
705c74d
update umap viewer to work when deployed
heimannch Mar 29, 2023
123340a
update sc bubbleplot
heimannch Apr 3, 2023
e0efb5d
update umap files
heimannch Apr 4, 2023
93e218f
single cell bubble plot with MSK and Vanderbilt HTAN data
heimannch Jun 6, 2023
6fc7754
sc UMAP with MSK and Vanderbilt HTAN data
heimannch Jun 6, 2023
004dde2
add links for help material for ICI Models
heimannch Aug 7, 2023
49024b2
initial changes to make app run with new db
heimannch Aug 3, 2023
e32f389
add sc immune features viewer
heimannch Sep 6, 2023
ad79e57
first version of single cell immune features (with norm gsea results)
heimannch Sep 6, 2023
dc66033
neoantigen frequency getting data from api
heimannch Sep 12, 2023
09f3422
neoantigen classes and correlations with info from iatlas api
heimannch Sep 13, 2023
3997619
adjust neoantigen data api queries
heimannch Sep 13, 2023
8ce6a6d
adjust neoantigen data api queries
heimannch Sep 13, 2023
653353c
add warning when neoantigen data is not available for data selected
heimannch Sep 13, 2023
717bab0
add neoantigen method link
heimannch Sep 13, 2023
eaa8747
add text to neoantigen module
heimannch Sep 13, 2023
7d86fd1
adjust neoantigen calls
heimannch Sep 14, 2023
04b1f58
Improved plot layout
heimannch Sep 14, 2023
cd16c97
add link to jupyter notebook
heimannch Sep 14, 2023
217cc02
update renv and rsconnect
heimannch Sep 20, 2023
bbb8415
merge staging into neoantigen
heimannch Sep 20, 2023
fe5c476
update lockfile to deploy app
heimannch Sep 20, 2023
f6a3bcc
adding legend
heimannch Oct 9, 2023
11813ba
changing how count of available neoantigen data is presented
heimannch Oct 9, 2023
8955fd9
add neoantigen scatterplot
heimannch Oct 12, 2023
5dd6a17
add description of neoantigen classes
heimannch Oct 12, 2023
6a9c231
text updates
heimannch Oct 17, 2023
bef9c34
Merge branch 'add_help_links' into neoantigen
heimannch Oct 17, 2023
33069ec
add links to tutorials and notebooks
heimannch Oct 17, 2023
9c59807
update packages for deployment
heimannch Oct 18, 2023
5777105
add regression line to neoantigen scaterplot
heimannch Nov 14, 2023
c263842
cnv module with more genes available
heimannch Nov 14, 2023
4a9a9cd
Update copyright date
heimannch Nov 15, 2023
e713bf6
Merge branch 'text-edits-cri-iatlas' into release_2.1
heimannch Nov 15, 2023
19cebe8
Merge branch 'fix_239' into release_2.1
heimannch Nov 15, 2023
9d99ef0
Merge branch 'add_help_links' into release_2.1
heimannch Nov 15, 2023
0a5b541
update README
heimannch Nov 15, 2023
6639c80
add more text to neoantigen frequency plot
heimannch Nov 15, 2023
ed7c786
update lockfile
heimannch Nov 15, 2023
f2767b1
plotly plots exportes as svg
heimannch Nov 15, 2023
e041ab6
change ici distribution plot from violin to boxplot
heimannch Nov 27, 2023
4dfca57
add scRNA immune features analysis in a separate module, under new sc…
heimannch Nov 27, 2023
ac8e07a
added sc immune features stats table
heimannch Nov 28, 2023
75a590c
add new renv default file
heimannch Nov 28, 2023
3eae44f
fix reorder function in dist plots
heimannch Nov 28, 2023
4428b37
Merge branch 'fix_ici_dist_reorder' into release_2.1
heimannch Nov 28, 2023
4574f43
add fix to ici dist plots reorder
heimannch Nov 28, 2023
6793932
sc immune features reorder fixed
heimannch Nov 28, 2023
1f891fd
add histogram to sc immune features
heimannch Nov 28, 2023
cf1b80d
remove duplication
heimannch Nov 28, 2023
e7d3f32
extracellular network working with new api
heimannch Dec 1, 2023
c243582
add renv file
heimannch Dec 4, 2023
7ce7840
update cnv query
heimannch Dec 4, 2023
d7c983a
remove duplication in cnv module ui
heimannch Dec 4, 2023
5ce8eb3
Merge branch 'fix_cnv_issue' into release_2.1
heimannch Dec 4, 2023
85f7ee8
merge neoantigen
heimannch Dec 5, 2023
24e28f0
update lockfile
heimannch Dec 5, 2023
bbc0fa4
add visualization of pseudobulk sc gene expression
heimannch Nov 29, 2023
415e273
change ui to sc immunomodulators
heimannch Dec 5, 2023
73bd299
add image for neoantigen module
heimannch Dec 5, 2023
0ec42de
bubbleplot from ggplot so all plots have the same color range
heimannch Dec 5, 2023
c052a38
ggplot bubbleplot formatted
heimannch Dec 7, 2023
ae7d3ab
remove side-by-side in sc immunomodulator
heimannch Dec 8, 2023
44e3a2e
update UMAP viewer
heimannch Dec 8, 2023
2999c7a
update UMAP viewer
heimannch Dec 8, 2023
4a4e622
add umap legend with DT table to avoid duplication
heimannch Dec 11, 2023
5b4b224
update dataset labels in sc modules
heimannch Dec 12, 2023
e1af36d
update queries in cell diagram
heimannch Dec 15, 2023
da71bb1
fix ICI ML issue
heimannch Dec 15, 2023
b057c2d
ICI Hazard Ratio working with gene expression data
heimannch Dec 20, 2023
26603cd
update path for method description of predictors of response to ICI
heimannch Dec 20, 2023
4e7225b
Merge pull request #243 from CRI-iAtlas/release_2.1
heimannch Dec 20, 2023
847019f
update file with bubbleplot data
heimannch Dec 21, 2023
c63001b
sc immunefeatures with responder annotation
heimannch Jan 3, 2024
6f8d69b
Merge branch 'sc_module' of https://github.com/CRI-iAtlas/iatlas-app …
heimannch Jan 3, 2024
d73bce9
Merge branch 'staging' into sc_module
heimannch Jan 3, 2024
a409193
fix umap ui
heimannch Jan 4, 2024
66ce5e8
sc immunomodulators working with second group option
heimannch Jan 4, 2024
9713779
update Responder label in sc modules, fix scatterplot issue
heimannch Jan 4, 2024
623e1bd
fix scatterplot
heimannch Jan 5, 2024
681250d
change ici dataset overview for all datasets overview
heimannch Feb 6, 2024
9939ace
dataset overview showing summaries for cg datasets
heimannch Feb 7, 2024
2d3e01a
move Datasets Overview for a higher position in the menu
heimannch Feb 7, 2024
a04894b
update datasets overview
heimannch Feb 20, 2024
9517ca5
improve UMAP viewer
heimannch Feb 20, 2024
b9494e1
update clinical info for sc datasets
heimannch Feb 21, 2024
9d23053
add links for umap visualizations on cellxgene
heimannch Feb 21, 2024
8475b64
add links for umap visualizations on cellxgene
heimannch Feb 21, 2024
5fd90ce
add dataset selection for single cell modules
heimannch Feb 21, 2024
15b6052
remove mosaic plot from datasett overview
heimannch Mar 4, 2024
28d3c98
update branch
heimannch Mar 4, 2024
b85b1fe
sc modules with friendly labels
heimannch Mar 5, 2024
76e24c5
order results in table
heimannch Mar 5, 2024
131df2e
add sc immune features text
heimannch Mar 6, 2024
206503b
add sc immune features text
heimannch Mar 6, 2024
ccb9dcd
add text in sc immunomodulators
heimannch Mar 6, 2024
071d4cf
Merge branch 'sc_module' of https://github.com/CRI-iAtlas/iatlas-app …
heimannch Mar 7, 2024
beef18d
add description for pseudobulk
heimannch Mar 7, 2024
9e3f5d2
update explore page
heimannch Mar 26, 2024
d332e2f
update renv lock
heimannch Mar 25, 2024
bf212bf
update IO info in MSK dataset overview
heimannch Mar 27, 2024
443a562
Merge pull request #244 from CRI-iAtlas/sc_module
heimannch Mar 29, 2024
fc0d92d
update sc gene selection
heimannch Apr 2, 2024
3132c53
sc immunomodulators working with database
heimannch Apr 2, 2024
23ceb2e
sc_immunefeatures working with data from db
heimannch Apr 3, 2024
c65fe42
update umap with query
heimannch May 14, 2024
ab579bc
update umap data queries
heimannch May 20, 2024
bc63ec3
added selection for shiao and krishna
heimannch May 20, 2024
e0a5fb2
merge 'add_shiao_krishna' branch
heimannch May 20, 2024
4e3a68f
add more space to bubble plot
heimannch Jun 11, 2024
78ce3d8
update datasets table
heimannch Jun 11, 2024
8c1d40f
update text
heimannch Jun 11, 2024
7ae9ba4
Add Li and Bi datasets
heimannch Jun 11, 2024
780bfcb
update lockfile
heimannch Jul 8, 2024
280a2a4
update renv lock with iatlas.module version for fix #216
heimannch Aug 5, 2024
2eaf648
umap viewer without query
heimannch Aug 9, 2024
c348f24
merge branch add_shiao_krishna into sc_modules_queries
heimannch Aug 15, 2024
93e37c5
Merge branch 'fix_216' into sc_modules_queries
heimannch Aug 15, 2024
6f4d557
update sc immune features
heimannch Aug 15, 2024
e129171
remove x label for sc dist plots
heimannch Aug 21, 2024
be2d6da
sc umap using flat file
heimannch Aug 27, 2024
18f6646
add plot button in umap viewer, only one dataset plots
heimannch Aug 28, 2024
20f0a98
update number of sc datasets
heimannch Sep 3, 2024
df09d3f
fix error in germline heritability selection
heimannch Sep 4, 2024
c162773
update GWAS selection
heimannch Sep 5, 2024
cd69380
update lockfile
heimannch Sep 6, 2024
30aac70
Merge pull request #251 from CRI-iAtlas/sc_modules_queries
heimannch Sep 6, 2024
5c6ae41
add sc cohort selection page
heimannch Sep 10, 2024
db2e345
Merge branch 'staging' into sc_cohort_selection
heimannch Sep 10, 2024
f7c9e1c
send sc cohort obj to sc modules
heimannch Sep 10, 2024
72859f3
sc distribution working with cohort_obj
heimannch Sep 10, 2024
34ecfe2
text updates
heimannch Sep 23, 2024
64b436b
update lockfile
heimannch Sep 25, 2024
b5aa4cd
remove UMAP module
heimannch Sep 25, 2024
11460d3
update list of datasets
heimannch Oct 1, 2024
6fb1bdc
add PORTER to dataset overview, update error messages in neoantigen m…
heimannch Oct 8, 2024
695baf7
update dataset overview references
heimannch Oct 9, 2024
34e32ad
Merge pull request #254 from CRI-iAtlas/sc_cohort_selection
vthorsson Oct 31, 2024
05da95c
feat(repo): merge staging from https://github.com/CRI-iAtlas/iatlas-app
tschaffter Dec 10, 2024
b27ccec
Add `prepare` task
tschaffter Dec 10, 2024
f5ad718
Improve Dockerfile
tschaffter Dec 11, 2024
f705c8f
Rename build-image task
tschaffter Dec 11, 2024
9f7e93d
undo
tschaffter Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions apps/iatlas/app/.Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
.gitlab-ci.yml
^\.Rprofile$

Dockerfile.build
css
global.R
index.html
init.R
install_and_init.R
markdown
rsconnect
server.R
ui.R
www
^\.github$
43 changes: 43 additions & 0 deletions apps/iatlas/app/.Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
if (file.exists("renv/activate.R")) {
source("renv/activate.R")

cat("
--------------------------------------------------------------------------------
Welcome to the CRI iAtlas Shiny App
--------------------------------------------------------------------------------
\n")

if (length(find.package("devtools", quiet=T)) == 0 || length(find.package("renv", quiet=T)) == 0) {
# prompt instead since RStudio won't show progress for slow .RProfile scripts...
cat("TODO: Install package requirements. This may take up to an hour the first time.\n")
cat("RUN: source('./install_and_init.R')\n")
} else {
# auto-run since it should be quick, but makes sure any new requirements are installed.
source('./install_and_init.R')
}
} else if (Sys.getenv("R_CONFIG_ACTIVE") == "shinyapps") {
cat("
--------------------------------------------------------------------------------
CRI iAtlas Shiny App: Production
--------------------------------------------------------------------------------
\n")
source('./init.R')
}

# For Ubuntu 18.04 (also known as Bionic)
options(repos = c(
REPO_NAME = "https://packagemanager.rstudio.com/all/__linux__/bionic/latest",
getOption("repos")
))

# For Ubuntu 20.04 (also known as Focal)
options(repos = c(
REPO_NAME = "https://packagemanager.rstudio.com/all/__linux__/focal/latest",
getOption("repos")
))

if (interactive()) {
suppressMessages(require(devtools))
suppressMessages(require(testthat))
suppressMessages(require(usethis))
}
11 changes: 11 additions & 0 deletions apps/iatlas/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
.DS_Store
rsconnect/
tests/testthat/helper-a_use_dev_globals.R
.mailmap
inst/extdata/*
tracks
app_config.yml
73 changes: 73 additions & 0 deletions apps/iatlas/app/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Package: iatlas.app
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R:
person(given = "First",
family = "Last",
role = c("aut", "cre"),
email = "first.last@example.com",
comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Suggests:
crayon,
devtools,
memoise (>= 2.0),
renv,
rsconnect,
testthat (>= 3.0.0),
usethis
Config/testthat/edition: 3
RoxygenNote: 7.2.0
biocViews:
Imports:
arrow,
broom,
caret,
concordanceIndex,
cyjShiny,
dplyr,
DT,
ggplot2,
ggmosaic,
glmnet,
grDevices,
grid,
grImport2,
iatlasGraphQLClient,
iatlas.modules,
iatlas.modules2,
igvShiny,
ImmuneSubtypeClassifier,
lazyeval,
magrittr,
plotly,
pROC,
purrr,
RColorBrewer,
readr,
rlang,
sortable,
shiny,
shinycssloaders,
shinydashboard,
shinyjs,
stringr,
survival,
survminer,
tibble,
tidyr,
tidyselect,
utils,
viridis,
wrapr
Remotes:
CRI-iAtlas/iatlasGraphQLClient@main,
CRI-iAtlas/iatlas.modules@master,
CRI-iAtlas/iatlas.modules2@master,
CRI-iAtlas/ImmuneSubtypeClassifier@master,
th86/concordanceIndex@master,
cytoscape/cyjShiny@master,
paul-shannon/igvShiny@master
25 changes: 25 additions & 0 deletions apps/iatlas/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM r-base:4.2.3

# Install supporting packages
RUN apt-get -y update && apt-get -y --no-install-recommends install \
build-essential \
gettext-base \
libcurl4-openssl-dev \
libnode-dev \
libpq-dev \
libssl-dev \
libv8-dev \
libxml2-dev \
postgresql-client-16 \
# Cleanup
&& apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /opt/app
COPY renv.lock .
COPY renv/activate.R renv/activate.R

# Resolve dependencies
RUN R -e "options(pkgType = 'binary'); install.packages('V8', type = 'source')"
# RUN R -e "options(pkgType='binary'); source('renv/activate.R'); renv::restore()"
2 changes: 2 additions & 0 deletions apps/iatlas/app/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2022
COPYRIGHT HOLDER: CRI iAtlas Developers
21 changes: 21 additions & 0 deletions apps/iatlas/app/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2022 CRI iAtlas Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions apps/iatlas/app/NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generated by roxygen2: do not edit by hand

importFrom(dplyr,filter)
importFrom(dplyr,pull)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(magrittr,"%>%")
importFrom(rlang,.data)
Binary file added apps/iatlas/app/R/.DS_Store
Binary file not shown.
122 changes: 122 additions & 0 deletions apps/iatlas/app/R/barplot.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
create_barplot <- function(
df,
x_col = "x",
y_col = "y",
error_col = "error",
key_col = NA,
color_col = NA,
label_col = NA,
xlab = "",
ylab = "",
title = "",
source_name = NULL,
bar_colors = NULL,
showlegend = T) {

if(is.na(key_col)) key_col <- x_col
if(is.na(color_col)) color_col <- x_col
if(is.na(label_col)) label_col <- x_col

if (is.null(bar_colors)) {
bar_colors <- viridis::viridis_pal(option = "D")(dplyr::n_distinct(df[[color_col]]))
}
wrapr::let(
alias = c(
X = x_col,
Y = y_col,
KEY = key_col,
COLOR = color_col,
ERROR = error_col,
LABEL = label_col),
plotly::plot_ly(
df,
x = ~X,
y = ~Y,
color = ~COLOR,
text = ~LABEL,
textposition = 'none',
key = ~KEY,
type = 'bar',
source = source_name,
colors = bar_colors,
error_y = list(
array = ~ERROR,
color = 'black',
thickness = 1),
hoverinfo = 'text',
showlegend = showlegend
)) %>%
plotly::layout(
legend = list(orientation = 'h', x = 0, y = 1),
title = title,
xaxis = list(title = xlab),
yaxis = list(title = ylab)
) %>%
format_plotly()

}

create_barplot_horizontal <- function(df,
x_col = "x",
y_col = "y",
error_col = "error",
key_col = NA,
color_col = NA,
label_col = NA,
order_by = NULL,
xlab = "",
ylab = "",
title = "",
showLegend = TRUE,
legendTitle = " ",
source_name = NULL,
bar_colors = NULL){
if(is.na(key_col)) key_col <- x_col
if(is.na(color_col)) color_col <- x_col
if(is.na(label_col)) label_col <- x_col

if (is.null(bar_colors)) {
bar_colors <- viridis::viridis_pal(option = "D")(dplyr::n_distinct(df[[color_col]]))
}
wrapr::let(
alias = c(
X = x_col,
Y = y_col,
KEY = key_col,
COLOR = color_col,
ERROR = error_col,
LABEL = label_col),
plotly::plot_ly(
df,
x = ~X,
y = ~Y,
color = ~COLOR,
text = ~LABEL,
textposition = 'none',
key = ~KEY,
type = 'bar',
source = source_name,
colors = bar_colors,
orientation = 'h',
error_x = list(
visible = T,
type = "data",
array = ~ERROR,
color = 'black',
thickness = 1),
hoverinfo = 'text'
)) %>%
plotly::layout(
title = title,
xaxis = list(title = xlab),
yaxis = list(title = ylab,
categoryorder = "array",
categoryarray = ~order_by),
showlegend = showLegend,
legend = list(orientation = 'h', x = 0, y = 1,
title = list(text = legendTitle)
)
) %>%
format_plotly()

}
Loading
Loading