Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
livnatje committed Feb 28, 2023
1 parent ed963dd commit 50837fd
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions DIALOGUE.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Version: 1.0

RestoreWorkspace: No
SaveWorkspace: No
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
Encoding: UTF-8

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes
LineEndingConversion: Posix

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

export(DIALOGUE.plot)
export(DIALOGUE.run)
export(DIALOGUE_SeuratExample)
export(DIALOGUE_make.cell.type.seurat)
export(cell.type)
export(make.cell.type)
exportClasses(cell.type)
6 changes: 5 additions & 1 deletion R/DIALOGUE_SeuratExample.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#' DIALOGUE_SeuratExample
#'
#' Using Seurat objects as input for DIALOGUE
#' @param results.dir path to the directory for saving the output.
#'
#' @examples
#' # Run DIALOGUE with simulated PBMC data
#' R<-DIALOGUE_SeuratExample(results.dir = "DIALOGUE.output")
#'
#' @export

DIALOGUE_SeuratExample<-function(results.dir){
Expand Down Expand Up @@ -62,6 +65,7 @@ DIALOGUE_example.initialize<-function(installation.flag){
}

#' DIALOGUE_make.cell.type.seurat
#'
#' Using Seurat objects as input for DIALOGUE make.cell.type function
#' @param obj Seurat object
#' @param cell.subtypes the cell type or subtype to be use. Make sure the obj metadata includes a column of "cell.subtypes"
Expand All @@ -75,7 +79,7 @@ DIALOGUE_example.initialize<-function(installation.flag){
#' rA<- list(A = r1,B = r2)
#' R <- DIALOGUE.run(rA = rA, main = "ToyExample",k = 2, results.dir = "DIALOGUE.output",spatial.flag = F,plot.flag = T,conf = "cellQ")
#'
#'#' @export
#' @export

DIALOGUE_make.cell.type.seurat<- function(obj, cell.subtypes, name){
# Given a Seurat object with "cell.subtypes" and "samples" information provided in the meta.data field
Expand Down
Binary file added man/.DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions man/DIALOGUE_SeuratExample.Rd

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

27 changes: 27 additions & 0 deletions man/DIALOGUE_make.cell.type.seurat.Rd

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

0 comments on commit 50837fd

Please sign in to comment.