-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-actions
- Loading branch information
Showing
36 changed files
with
3,328 additions
and
934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ _builds | |
_install | ||
*.so | ||
*.o | ||
*.Rd | ||
*.log | ||
*.lock | ||
RACES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
Package: rRACES | ||
Type: Package | ||
Title: rRACES: An R wrapper for RACES | ||
Title: rRACES: An R Wrapper for RACES | ||
Version: 0.0.1 | ||
Date: 2023-10-25 | ||
Authors@R: | ||
c(person(given = "Giulio", | ||
family = "Caravagna", | ||
role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
person(given = "Alberto", | ||
family = "Casagrande", | ||
role = "aut")) | ||
Description: This is a wrapper for RACES. This package supports | ||
spacial evolution of different clones, different epigenetic | ||
clone states, timed-triggered driver mutations. | ||
Authors@R: c( | ||
person("Giulio", "Caravagna", email = "[email protected]", role = c("aut", "cre")), | ||
person("Alberto", "Casagrande", role = "aut")) | ||
Maintainer: Giulio Caravagna <[email protected]> | ||
Description: A wrapper for RACES. This package supports | ||
spacial evolution of different clones, different | ||
epigenetic clone states, timed-triggered driver | ||
mutations. | ||
License: GPL-3 + file LICENSE | ||
LinkingTo: Rcpp | ||
Encoding: UTF-8 | ||
SystemRequirements: C++17 | ||
SystemRequirements: C++17, GNU make | ||
Imports: | ||
methods, | ||
magrittr, | ||
dplyr, | ||
Rcpp (>= 1.0.11), | ||
ggplot2, | ||
cli, | ||
crayon | ||
crayon, | ||
RColorBrewer, | ||
knitr, | ||
rlang | ||
RoxygenNote: 7.2.3 | ||
Suggests: | ||
knitr, | ||
rmarkdown | ||
VignetteBuilder: knitr | ||
Depends: | ||
methods, | ||
R (>= 2.10) | ||
LazyData: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# prepare the package for release | ||
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION) | ||
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION) | ||
PKGSRC := $(shell basename `pwd`) | ||
|
||
.PHONY: all docs build build-cran install check travis clean | ||
|
||
docs: | ||
R --vanilla --silent -e 'Rcpp::compileAttributes()' | ||
R --vanilla --silent -e 'roxygen2::roxygenise(roclets=c("rd"))' | ||
|
||
build: | ||
(cd .. && R CMD build --no-manual $(PKGSRC)) | ||
|
||
build-cran: | ||
(cd ..; && R CMD build $(PKGSRC)) | ||
|
||
install: build | ||
(cd .. && R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz) | ||
|
||
check: build-cran | ||
(cd .. && R CMD check $(PKGNAME)_$(PKGVERS).tar.gz --as-cran) | ||
|
||
travis: build | ||
(cd ..; && R CMD check $(PKGNAME)_$(PKGVERS).tar.gz --no-manual) | ||
|
||
clean: | ||
rm -rf _install _builds RACES | ||
rm src/RcppExports.cpp src/*.o src/*.so R/RcppExports.R | ||
rm -rf man/*.Rd | ||
(cd .. && rm -rf $(PKGNAME).Rcheck) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
useDynLib(rRACES, .registration=TRUE) | ||
importFrom("dplyr", "pull", "row_number", "%>%", "mutate", "rename", "filter", "case_when") | ||
importFrom("stats", "time") | ||
importFrom("rlang", ".data") | ||
import(methods, Rcpp) | ||
|
||
S3method(print,rraces) | ||
export(Simulation) | ||
export(set_initial_cell) | ||
export(create_simulation) | ||
export(plot_state) | ||
export(add_species) | ||
export(plot_tissue) | ||
export(plot_firings) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
my_theme = function(){ | ||
my_theme <- function() { | ||
ggplot2::theme_linedraw(base_size = 10) + | ||
ggplot2::theme( | ||
legend.position = 'bottom' | ||
legend.position = "bottom" | ||
) | ||
} | ||
|
||
get_species_colors = function(x){ | ||
nm = sort(x) | ||
|
||
nmc = RColorBrewer::brewer.pal(x %>% length(), "Set1") | ||
|
||
if(length(nm) < length(nmc)) | ||
nmc = nmc[1:length(nm)] | ||
|
||
names(nmc) = nm | ||
|
||
get_species_colors <- function(x) { | ||
nm <- sort(x) | ||
|
||
nmc <- RColorBrewer::brewer.pal(x %>% length(), "Set1") | ||
|
||
if (length(nm) < length(nmc)) { | ||
nmc <- nmc[1:length(nm)] | ||
} | ||
|
||
names(nmc) <- nm | ||
|
||
return(nmc) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
utils::globalVariables() |
Oops, something went wrong.