-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Options for Non-binarized counts and Negative Binomial Regression
- Loading branch information
1 parent
fcf3acc
commit b3be208
Showing
10 changed files
with
118 additions
and
36 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
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,4 +1,5 @@ | ||
#' @import methods Hmisc R.utils data.table stringr | ||
#' @import methods Hmisc data.table stringr | ||
#' @import R.utils | ||
#' @import lme4 boot MASS parallel | ||
#' @import Matrix | ||
NULL |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -55,23 +55,45 @@ head(SCENT_obj@rna[1:10,1:2]) | |
head(SCENT_obj@atac[1:10,1:2]) | ||
head([email protected]) | ||
head([email protected]) | ||
str(SCENT_obj) | ||
``` | ||
|
||
## SCENT Algorithm: Poisson Regression w/ Bootstrapping | ||
## SCENT Algorithm: Obtain small list of gene-peak pairs. | ||
|
||
```{r gene_peak} | ||
#Of the set of peak gene pairs: pick a set of pairs to test: | ||
#Example: (first 10 gene-peak pairs) | ||
[email protected] <- [email protected][1:10,] | ||
head([email protected]) | ||
``` | ||
## SCENT Algorithm: Options for Regression w/ Bootstrapping. | ||
|
||
```{r gene_peak} | ||
#Run SCENT algorithm of Tnk cell type and use 6 cores for parallelization: | ||
#Default: Poisson regression and Binarized ATAC counts | ||
SCENT_obj_ver1 <- SCENT_algorithm(SCENT_obj, "Tnk", 6) | ||
# By default settings the above will perform parallelizations using Poisson regression and Binarized counts. | ||
#Option 1: Poisson regression and Non-Binarized ATAC counts | ||
SCENT_obj_ver2 <- SCENT_algorithm(SCENT_obj, "Tnk", 6, regr = "poisson", bin = FALSE) | ||
#Option 2: Negative Binomial regression and Binarized ATAC counts | ||
SCENT_obj_ver3 <- SCENT_algorithm(SCENT_obj, "Tnk", 6, regr = "negbin", bin = TRUE) | ||
#Option 3: Negative Binomial regression and Non-Binarized ATAC counts | ||
SCENT_obj_ver4 <- SCENT_algorithm(SCENT_obj, "Tnk", 6, regr = "negbin", bin = FALSE) | ||
``` | ||
|
||
## Output of SCENT Algorithm | ||
|
||
```{r SCENT_algo} | ||
#Run SCENT algorithm of Tnk cell type and use 6 cores for parallelization: | ||
SCENT_obj <- SCENT_algorithm(SCENT_obj, "Tnk", 6) | ||
head([email protected]) | ||
head([email protected]) | ||
head([email protected]) | ||
head([email protected]) | ||
head([email protected]) | ||
``` | ||
|
||
``` | ||
|