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

dyngen 1.0.0 #27

Merged
merged 152 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
798694a
add cran comments
rcannood Jul 17, 2020
a944167
use quotes
rcannood Aug 8, 2020
89ce5de
add copyright holders
rcannood Aug 8, 2020
19318bd
add examples
rcannood Aug 17, 2020
1a2aa41
use donttest instead of dontrun
rcannood Aug 24, 2020
84245df
update cran comments
rcannood Aug 24, 2020
a407961
substitute dontrun with donttest
rcannood Aug 26, 2020
c794e1e
Added \value tags to exported functions.
rcannood Sep 2, 2020
16be63e
`wrap_dataset()`: Fix `drop = FALSE` bug when only cell is being samp…
rcannood Sep 14, 2020
f47786f
reduce donttest time using dontshow
rcannood Sep 14, 2020
9d0d179
update readme
rcannood Sep 14, 2020
a3d0792
update vignette
rcannood Sep 15, 2020
d20b8df
update doi badge
rcannood Sep 18, 2020
7eced91
Merge branch 'devel' of github.com:dynverse/dyngen into devel
rcannood Sep 18, 2020
d87cbce
set up weekly builds
rcannood Oct 12, 2020
cf2b667
allow simulating the targets in the gold standard simulation
rcannood Oct 12, 2020
f413df6
allow to save platform-specific defaults for num_cores and download_c…
rcannood Jan 11, 2021
8f93162
fix namespace
rcannood Jan 11, 2021
f8e35f6
Fix dockerfile
rcannood Jan 15, 2021
954ddf3
fix github action
rcannood Jan 15, 2021
436316f
make test smaller
rcannood Jan 15, 2021
4bbce9d
rename file
rcannood Jan 15, 2021
95adde9
rename wrap_dataset to as_dyno
rcannood Jan 15, 2021
21d7ec2
add anndata conversion function
rcannood Jan 15, 2021
b53de65
update vignettes
rcannood Jan 18, 2021
6f16880
update news & vignettes
rcannood Jan 18, 2021
12644a0
regenerate vignettes
rcannood Jan 18, 2021
685195e
split up the extract_parameters function
rcannood Jan 18, 2021
915728d
move combine function from dyngen.manuscript to dyngen
rcannood Jan 18, 2021
49b7916
add vignette on simulating batch effects
rcannood Jan 18, 2021
43e0d1b
add tests for combine models
rcannood Jan 18, 2021
04adb53
fix errors & warnings
rcannood Jan 18, 2021
dd52ca8
add WIP vignette for simulating knockouts
rcannood Jan 18, 2021
0675d1e
update readme
rcannood Jan 18, 2021
f38d085
make the gold standard edge dotted
rcannood Jan 18, 2021
86b2340
Extend documentation of KO vignette
rcannood Jan 18, 2021
db7256d
remove :
rcannood Jan 18, 2021
da04404
should remove spaces
rcannood Jan 18, 2021
e9d0109
import aes_string
rcannood Jan 18, 2021
3c2ba33
fix another import
rcannood Jan 19, 2021
363d4ce
update news and vignette
rcannood Jan 19, 2021
8685a3f
improve vignette
rcannood Jan 20, 2021
90bfa4f
add installation instructions
rcannood Jan 22, 2021
687d225
rename files
rcannood Jan 22, 2021
e67100d
add timing functions
rcannood Jan 22, 2021
d405a70
add timing calls to workflow
rcannood Jan 22, 2021
f922e4b
speed up molecule sampling
rcannood Jan 22, 2021
2590a8f
update news, remove alpha
rcannood Jan 22, 2021
c17db76
update roxygen
rcannood Jan 22, 2021
aa991c6
wip scalability vignette
rcannood Jan 25, 2021
82cbc58
add runtime vignette, update other vignettes
rcannood Jan 25, 2021
b82a41d
remove old rds files
rcannood Jan 25, 2021
288ca90
remove r satisfy checks cleanly
rcannood Jan 26, 2021
ea4da50
Fix plot_gold_mappings
rcannood Jan 26, 2021
1e6fb3f
drop do() as it is superseded, but summarise can handle this function…
rcannood Jan 26, 2021
af5f993
ignore local symlink
rcannood Jan 26, 2021
15f120d
update scalability vignette
rcannood Jan 26, 2021
66c8569
update readme
rcannood Jan 26, 2021
45fa457
change `combine_models()` such that stores more simulations data and …
rcannood Jan 27, 2021
40d6aff
extend combine_models testing
rcannood Jan 29, 2021
561f7a6
Do not compute dimred if not asked for
rcannood Jan 29, 2021
ae3179c
clean up r cmd check & unname feature info ids
rcannood Jan 29, 2021
e26f38a
add `as_SCE()` function
rcannood Jan 29, 2021
19a4ff0
update news
rcannood Jan 29, 2021
2915beb
also save logcounts in sce & ad, add small tests to generate_dataset
rcannood Jan 29, 2021
cb92361
add biocViews: to description in order to get SCE and SummarizedExper…
rcannood Jan 29, 2021
3b5ac6d
skip test
rcannood Jan 29, 2021
caac0e7
check whether enough samples are being generated, otherwise generate …
rcannood Jan 29, 2021
6a7f39e
specify SCE version
rcannood Jan 29, 2021
c141c73
remove duplicate import
rcannood Feb 1, 2021
2ff7aac
tweak example
rcannood Feb 1, 2021
6f2bc9f
factor away r cmd checks
rcannood Feb 1, 2021
19ed1dc
add 'as_seurat' conversion function
rcannood Feb 1, 2021
ac2ed61
update news and description
rcannood Feb 1, 2021
97ec816
fix rmd check notes
rcannood Feb 2, 2021
b30045f
fix and expand test
rcannood Feb 2, 2021
c726dff
disable r 3.6 thanks to seurat
rcannood Feb 2, 2021
7cb41f9
Rework plotting functions
rcannood Feb 15, 2021
cddd15b
Add dimred plotting function for experiment data
rcannood Feb 15, 2021
46a36e0
drop tf network plot for experiment dimred plot
rcannood Feb 15, 2021
7e61c42
modify disconnected backbone
rcannood Feb 15, 2021
cef6e51
map realcount density on tsimcount density
rcannood Feb 15, 2021
7613f51
use qc pass to sample realcounts. add some extra statistics to realco…
rcannood Feb 15, 2021
ee3a007
fix docker pushing
rcannood Feb 16, 2021
e531c87
fix arg
rcannood Feb 16, 2021
a958fef
update showcase backbones
rcannood Feb 16, 2021
548e48b
add vignette for advanced information on tweaking dyngen parameters
rcannood Feb 16, 2021
3542690
update news and readme
rcannood Feb 16, 2021
d8a180d
initial commit for comparison vignette
rcannood Feb 17, 2021
91f4fe8
clean up vignette
rcannood Feb 17, 2021
7888606
(re)render vignettes
rcannood Feb 17, 2021
10d28a2
add pkgdown configs
rcannood Feb 17, 2021
29ccbb1
simplify docs
rcannood Feb 17, 2021
ce98911
try r-actions
rcannood Feb 17, 2021
01ec8e7
also build from devel, for now
rcannood Feb 17, 2021
b32153c
fix pkgdown config
rcannood Feb 17, 2021
f63a087
fix double authors in citation entry
rcannood Feb 17, 2021
e0db33b
add helper code for rerendering all vignettes
rcannood Feb 17, 2021
0d20b95
slim down vignettes to reduce execution time for pkgdown
rcannood Feb 17, 2021
f72ea4f
wip vignette reruns
rcannood Feb 17, 2021
4fd519e
updating vignettes wip
rcannood Feb 17, 2021
291af38
try installing dyno to run pkgdown
rcannood Feb 17, 2021
32fe339
try installing countsimqc as well
rcannood Feb 17, 2021
52dc1ad
update markdowns
rcannood Feb 17, 2021
97f1929
update readme
rcannood Feb 18, 2021
b081583
only build pkgdown when pushing to master
rcannood Feb 18, 2021
d8e23e8
remove all vignettes since they are hosted on with pkgdown
rcannood Feb 18, 2021
ed3c69c
update ignore files
rcannood Feb 18, 2021
5c8a70d
update url
rcannood Feb 18, 2021
a3a13e6
fix readme
rcannood Feb 18, 2021
b663fd3
clean up figures
rcannood Feb 18, 2021
535c3eb
add link to cmd check badge
rcannood Feb 18, 2021
ae09748
specify image width
rcannood Feb 18, 2021
eee9442
fix urls
rcannood Feb 18, 2021
39fac3a
re-enable dyno blocks
rcannood Feb 18, 2021
7ee61fa
update vignette, license, metadata
rcannood Feb 18, 2021
c809a20
update links
rcannood Feb 18, 2021
b8f8565
restructure vignettes
rcannood Feb 19, 2021
ffee9da
move files around
rcannood Feb 19, 2021
9c6bb28
update paths
rcannood Feb 19, 2021
fa62c72
improve package documentation
rcannood Feb 19, 2021
dc41fa3
extend package documentation
rcannood Feb 19, 2021
80d5cf8
ship some vignettes in package
rcannood Feb 19, 2021
311e949
fix figure heights in vignette
rcannood Feb 19, 2021
dca94e1
prepare for release
rcannood Feb 19, 2021
66a540c
update news
rcannood Feb 19, 2021
dcb1a3b
skip testing sce as well
rcannood Feb 19, 2021
af4181f
propose changes for (not) solving #28.
rcannood Feb 19, 2021
6c4ff01
`wrap_dataset()`: Repurpose function to be able to choose the output …
rcannood Feb 20, 2021
1357de0
`generate_experiment()`: Allow toggling on or off the mapping of the …
rcannood Feb 21, 2021
9ada660
update vignettes
rcannood Feb 21, 2021
e447de1
also return the milestone percentages
rcannood Feb 22, 2021
08e9ea9
merge
rcannood Feb 22, 2021
5539c71
include recent changes in 1.0.0
rcannood Feb 22, 2021
678d0ab
update documentation
rcannood Feb 22, 2021
24abcda
change format order
rcannood Feb 22, 2021
3c48ec2
add more helpful message for now
rcannood Feb 22, 2021
623f98e
use `wrap_dataset()` instead of `as_dyno()` in examples
rcannood Feb 22, 2021
4dfc76f
fix format issues
rcannood Feb 22, 2021
63cb671
update example model
rcannood Feb 22, 2021
35a9e58
simplify combine_models test
rcannood Feb 22, 2021
2508c8a
remove num cores and download cache dir from example model
rcannood Feb 22, 2021
4da53a8
speed up generate partitions check
rcannood Feb 22, 2021
4233f1d
add some more checks for the dataset
rcannood Feb 22, 2021
523abfd
refactor examples to reduce cmd check time
rcannood Feb 22, 2021
d05d13e
install miniconda
rcannood Feb 22, 2021
ba2bc2d
update news
rcannood Feb 22, 2021
dc7fd77
uniformise examples
rcannood Feb 22, 2021
5439fe7
fix docs
rcannood Feb 22, 2021
b059c83
don't test plotting functions
rcannood Feb 22, 2021
51e080f
fix vignette
rcannood Feb 23, 2021
4f77ead
fix readme
rcannood Feb 23, 2021
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
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.travis
^\.git$
^_pkgdown\.yml$
^data-raw$
^docs$
^appveyor\.yml$
^README\.Rmd$
^example_script\.R$
^scripts_tmp
^LICENSE\.md$
^LICENSE\.md$
^man/figures/logo\.svg$
^man/figures/Arte_De_athletica_2b\.jpg$
^man/figures/dependencies\.png$
^\.github$
^docker$
^vignettes/advanced_topics$
^vignettes/.*\.md$
^vignettes/.*/.*\.png$
^vignettes/getting_started.Rmd$
^vignettes/showcase_backbones.Rmd$
^vignettes/.*_files$
^vignettes/.*.Rmd$
^vignettes/.*.R$
^vignettes/scalability_and_runtime_runs$
^vignettes/showcase_backbones
^cran-comments\.md$
^pkgdown$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
38 changes: 38 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
branches:
- master
- devel
schedule:
- cron: "0 0 * * 1"

name: docker_build

jobs:
build_containers:
runs-on: 'ubuntu-latest'
if: "!contains(github.event.head_commit.message, 'ci skip')"
name: build container

steps:
- uses: actions/checkout@v2

- name: Build
run: |
VERSION=`cat DESCRIPTION | grep Version | sed 's#.*: ##'`
BRANCH="${GITHUB_REF#refs/heads/}"
docker build -t $GITHUB_REPOSITORY:$BRANCH -f docker/Dockerfile .
if [[ $BRANCH == "master" ]] ; then
docker tag $GITHUB_REPOSITORY:$BRANCH $GITHUB_REPOSITORY:$VERSION
docker tag $GITHUB_REPOSITORY:$BRANCH $GITHUB_REPOSITORY:latest
fi

- name: Push
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
BRANCH="${GITHUB_REF#refs/heads/}"
docker push $GITHUB_REPOSITORY:$BRANCH
if [[ $BRANCH == "master" ]] ; then
docker push $GITHUB_REPOSITORY:$VERSION
docker push $GITHUB_REPOSITORY:latest
fi
51 changes: 51 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches:
- main
- master

name: pkgdown

jobs:
pkgdown:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1

- uses: r-lib/actions/setup-pandoc@v1

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
install.packages("pkgdown", type = "binary")
install.packages("tidyverse", type = "binary")
remotes::install_github('dynverse/dyno')
remotes::install_bioc('countsimQC')
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Deploy package
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
6 changes: 4 additions & 2 deletions .github/workflows/r_cmd_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
config:
- {os: windows-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: ubuntu-16.04, r: '3.5', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.6', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
# - {os: ubuntu-16.04, r: '3.5', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} # disable 3.5 due to SCE
# - {os: ubuntu-16.04, r: '3.6', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} # disable 3.6 due to Seurat >_>
- {os: ubuntu-16.04, r: 'release', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}

env:
Expand Down Expand Up @@ -64,6 +64,8 @@ jobs:
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
reticulate::install_miniconda()
anndata::install_anndata()
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
reticulate::install_miniconda()
anndata::install_anndata()
remotes::install_cran("covr")
shell: Rscript {0}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
.httr-oauth
inst/doc
scripts_tmp
docs
16 changes: 9 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Type: Package
Package: dyngen
Title: A Multi-Modal Simulator for Spearheading Single-Cell
Omics Analyses
Version: 0.4.0
Version: 1.0.0
Authors@R:
c(person(given = "Robrecht",
family = "Cannoodt",
role = c("aut", "cre"),
role = c("aut", "cre", "cph"),
email = "rcannood@gmail.com",
comment = c(ORCID = "0000-0003-3641-729X")),
person(given = "Wouter",
Expand All @@ -15,21 +15,20 @@ Authors@R:
email = "wouter.saelens@ugent.be",
comment = c(ORCID = "0000-0002-7114-6248")))
Description: A novel, multi-modal simulation engine for
studying dynamic cellular processes at single-cell resolution. dyngen
studying dynamic cellular processes at single-cell resolution. 'dyngen'
is more flexible than current single-cell simulation engines. It
allows better method development and benchmarking, thereby stimulating
development and testing of novel computational methods. Cannoodt et
al. (2020) <doi:10.1101/2020.02.06.936971>.
License: MIT + file LICENSE
URL: https://github.com/dynverse/dyngen
URL: https://dyngen.dynverse.org, https://github.com/dynverse/dyngen
BugReports: https://github.com/dynverse/dyngen/issues
Depends:
R (>= 3.5.0)
Imports:
assertthat,
dplyr,
dynutils (>= 1.0.4),
furrr,
ggplot2,
ggraph (>= 2.0),
ggrepel,
Expand All @@ -51,15 +50,18 @@ Imports:
utils,
viridis
Suggests:
anndata,
covr,
dynwrap (>= 1.2.0),
knitr,
R.rsp,
rmarkdown,
Seurat,
SingleCellExperiment (>= 1.5.3),
SummarizedExperiment,
testthat
VignetteBuilder:
knitr,
R.rsp
biocViews:
Encoding: UTF-8
LazyData: TRUE
Roxygen: list(markdown = TRUE)
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2014-2020
COPYRIGHT HOLDER: Robrecht Cannoodt, Wouter Saelens
YEAR: 2014-2021
COPYRIGHT HOLDER: Robrecht Cannoodt
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2014-2020 Robrecht Cannoodt, Wouter Saelens
Copyright (c) 2014-2021 Robrecht Cannoodt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
22 changes: 21 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export(as_anndata)
export(as_dyno)
export(as_list)
export(as_sce)
export(as_seurat)
export(backbone)
export(backbone_bifurcating)
export(backbone_bifurcating_converging)
Expand All @@ -20,6 +26,7 @@ export(bblego_branching)
export(bblego_end)
export(bblego_linear)
export(bblego_start)
export(combine_models)
export(experiment_snapshot)
export(experiment_synchronised)
export(feature_network_default)
Expand All @@ -30,6 +37,7 @@ export(generate_feature_network)
export(generate_gold_standard)
export(generate_kinetics)
export(generate_tf_network)
export(get_timings)
export(gold_standard_default)
export(initialise_model)
export(kinetics_default)
Expand All @@ -40,6 +48,7 @@ export(list_experiment_samplers)
export(ode_em)
export(plot_backbone_modulenet)
export(plot_backbone_statenet)
export(plot_experiment_dimred)
export(plot_feature_network)
export(plot_gold_expression)
export(plot_gold_mappings)
Expand Down Expand Up @@ -67,6 +76,7 @@ importFrom(Matrix,summary)
importFrom(Matrix,t)
importFrom(assertthat,"%has_name%")
importFrom(assertthat,assert_that)
importFrom(dplyr,.data)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
Expand Down Expand Up @@ -100,10 +110,12 @@ importFrom(dynutils,add_class)
importFrom(dynutils,extend_with)
importFrom(dynutils,extract_row_to_list)
importFrom(dynutils,is_sparse)
importFrom(furrr,future_map)
importFrom(ggplot2,aes)
importFrom(ggplot2,aes_string)
importFrom(ggplot2,coord_equal)
importFrom(ggplot2,coord_flip)
importFrom(ggplot2,facet_wrap)
importFrom(ggplot2,geom_bar)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,geom_path)
importFrom(ggplot2,geom_point)
Expand All @@ -113,8 +125,12 @@ importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggsave)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_colour_manual)
importFrom(ggplot2,scale_fill_brewer)
importFrom(ggplot2,scale_linetype_manual)
importFrom(ggplot2,scale_size_manual)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_bw)
importFrom(ggplot2,theme_classic)
importFrom(ggraph,circle)
importFrom(ggraph,geom_edge_fan)
importFrom(ggraph,geom_edge_loop)
Expand All @@ -139,7 +155,9 @@ importFrom(lmds,lmds)
importFrom(methods,as)
importFrom(methods,is)
importFrom(patchwork,plot_annotation)
importFrom(patchwork,plot_layout)
importFrom(patchwork,wrap_plots)
importFrom(pbapply,pblapply)
importFrom(pbapply,setTimerProgressBar)
importFrom(pbapply,timerProgressBar)
importFrom(purrr,"%>%")
Expand All @@ -153,6 +171,7 @@ importFrom(purrr,map_int)
importFrom(purrr,pmap)
importFrom(purrr,set_names)
importFrom(rlang,"%|%")
importFrom(rlang,"%||%")
importFrom(stats,approx)
importFrom(stats,approxfun)
importFrom(stats,density)
Expand All @@ -164,6 +183,7 @@ importFrom(stats,rmultinom)
importFrom(stats,rnorm)
importFrom(stats,runif)
importFrom(tibble,as_tibble)
importFrom(tibble,column_to_rownames)
importFrom(tibble,deframe)
importFrom(tibble,enframe)
importFrom(tibble,lst)
Expand Down
Loading