Skip to content

Commit

Permalink
“update”
Browse files Browse the repository at this point in the history
  • Loading branch information
RihaoQu committed Apr 5, 2024
1 parent 80043b0 commit a775c79
Show file tree
Hide file tree
Showing 47 changed files with 209 additions and 279 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^GeneTrajectory\.Rproj$
^\.Rproj\.user$
^README\.Rmd$
Empty file modified .Rhistory
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.Rproj.user
inst/doc
4 changes: 4 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ Imports:
biclust,
stats,
Matrix (>= 1.5)
Suggests:
knitr,
rmarkdown
VignetteBuilder: knitr
12 changes: 5 additions & 7 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ export(GetGenePseudoorder)
export(GetGraphDistance)
export(LoadGeneDistMat)
export(RunDM)
export(checkIgtPythonEnvironment)
export(coarse.grain)
export(diffusion.map)
export(get.RW.matrix)
export(setupIgtPythonEnvironment)
export(simulate.bifurcation)
export(simulate.coral)
export(simulate.cyclic)
export(simulate.cylinder)
export(simulate.linear)
export(simulate_bifurcation)
export(simulate_coral)
export(simulate_cyclic)
export(simulate_cylinder)
export(simulate_linear)
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# GeneTrajectory 1.0.0

* Initial CRAN submission.
22 changes: 0 additions & 22 deletions R/checkIgtPythonEnvironment.R

This file was deleted.

43 changes: 0 additions & 43 deletions R/setupIgtPythonEnvironment.R

This file was deleted.

4 changes: 2 additions & 2 deletions R/simulate.bifurcation.R → R/simulate_bifurcation.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
#' @return
#' Returns a gene-by-cell count matrix
#'
#' @export simulate.bifurcation
#' @export simulate_bifurcation
#'
#' @examples
#'

simulate.bifurcation <- function(N_cells = 5*c(100, 50, 50),
simulate_bifurcation <- function(N_cells = 5*c(100, 50, 50),
N_genes = 5*c(100, 50, 50),
model = "poisson",
meanlog = 0,
Expand Down
6 changes: 3 additions & 3 deletions R/simulate.coral.R → R/simulate_coral.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#' @return
#' Returns a gene-by-cell count matrix
#'
#' @export simulate.coral
#' @export simulate_coral
#'
#' @examples
#'


simulate.coral <- function(N_cells = 15*rep(100, 7),
simulate_coral <- function(N_cells = 15*rep(100, 7),
N_genes = 2*rep(100, 7),
N_genes_CC = 400,
model = "poisson",
Expand Down Expand Up @@ -124,7 +124,7 @@ simulate.coral <- function(N_cells = 15*rep(100, 7),

gc_mat_tree <- gc_mat

gc_mat_cyclic <- simulate.cyclic(N_cells = sum(N_cells),
gc_mat_cyclic <- simulate_cyclic(N_cells = sum(N_cells),
N_genes = N_genes_CC,
model = model,
meanlog = meanlog,
Expand Down
4 changes: 2 additions & 2 deletions R/simulate.cyclic.R → R/simulate_cyclic.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#' @return
#' Returns a gene-by-cell count matrix
#'
#' @export simulate.cyclic
#' @export simulate_cyclic
#'
#' @examples
#'

simulate.cyclic <- function(N_cells = 1000,
simulate_cyclic <- function(N_cells = 1000,
N_genes = 500,
model = "poisson",
meanlog = 0,
Expand Down
8 changes: 4 additions & 4 deletions R/simulate.cylinder.R → R/simulate_cylinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
#' @return
#' Returns a gene-by-cell count matrix
#'
#' @export simulate.cylinder
#' @export simulate_cylinder
#'
#' @examples
#'

simulate.cylinder <- function(N_cells = 5000,
simulate_cylinder <- function(N_cells = 5000,
N_genes = rep(500,2),
model = "poisson",
meanlog = 0,
Expand All @@ -31,7 +31,7 @@ simulate.cylinder <- function(N_cells = 5000,
sort = TRUE,
sparsity = 0.1,
theta = 10){
gc_mat_linear <- simulate.linear(N_cells = N_cells,
gc_mat_linear <- simulate_linear(N_cells = N_cells,
N_genes = N_genes[1],
model = model,
meanlog = meanlog,
Expand All @@ -42,7 +42,7 @@ simulate.cylinder <- function(N_cells = 5000,
sort = sort,
sparsity = sparsity,
theta = theta)
gc_mat_cyclic <- simulate.cyclic(N_cells = N_cells,
gc_mat_cyclic <- simulate_cyclic(N_cells = N_cells,
N_genes = N_genes[2],
model = model,
meanlog = meanlog,
Expand Down
4 changes: 2 additions & 2 deletions R/simulate.linear.R → R/simulate_linear.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#' @return
#' Returns a gene-by-cell count matrix
#'
#' @export simulate.linear
#' @export simulate_linear
#'
#' @examples
#'
#'

simulate.linear <- function(N_cells = 1000,
simulate_linear <- function(N_cells = 1000,
N_genes = 200,
model = "poisson",
meanlog = 0,
Expand Down
54 changes: 54 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
output: github_document
---

<!-- README.md is generated from README.Rmd. Please edit that file -->

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# GeneTrajectory

<!-- badges: start -->
<!-- badges: end -->

The goal of GeneTrajectory is to ...

## Installation

You can install the development version of GeneTrajectory like so:

``` r
# FILL THIS IN! HOW CAN PEOPLE INSTALL YOUR DEV PACKAGE?
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r example}
library(GeneTrajectory)
## basic example code
```

What is special about using `README.Rmd` instead of just `README.md`? You can include R chunks like so:

```{r cars}
summary(cars)
```

You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this.

You can also embed plots, for example:

```{r pressure, echo = FALSE}
plot(pressure)
```

In that case, don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN.
3 changes: 3 additions & 0 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/articles/GeneTrajectory.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
GeneTrajectory: GeneTrajectory.html
last_built: 2024-04-04T08:48Z
last_built: 2024-04-05T03:46Z

3 changes: 3 additions & 0 deletions docs/reference/AddGeneBinScore.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a775c79

Please sign in to comment.