Browse code

merge separate methods for Seurat and SCE signatures into one function

nttvy authored on 29/07/2021 22:23:02
Showing 1 changed files
... ...
@@ -19,8 +19,9 @@ Returns the parent of the cell type corresponding to the given classifier.
19 19
 data("tirosh_mel80_example")
20 20
 selected_marker_genes_B = c("CD19", "MS4A1", "CD79A")
21 21
 set.seed(123)
22
-classifier_b <- train_classifier(train_obj = tirosh_mel80_example, 
23
-marker_genes = selected_marker_genes_B, cell_type = "B cells")
22
+classifier_b <- train_classifier(train_obj = tirosh_mel80_example,
23
+assay = 'RNA', slot = 'counts', marker_genes = selected_marker_genes_B, 
24
+cell_type = "B cells", tag_slot = 'active.ident')
24 25
 parent(classifier_b)
25 26
 
26 27
 }
Browse code

replace core clf by caret_model replace all other clf by classifiers

Former-commit-id: 91ec8da24f45c110ab4f2e728ab71e9c1d255ca8

nttvy authored on 22/07/2021 13:51:48
Showing 1 changed files
... ...
@@ -19,8 +19,8 @@ Returns the parent of the cell type corresponding to the given classifier.
19 19
 data("tirosh_mel80_example")
20 20
 selected_marker_genes_B = c("CD19", "MS4A1", "CD79A")
21 21
 set.seed(123)
22
-clf_b <- train_classifier(train_obj = tirosh_mel80_example, 
22
+classifier_b <- train_classifier(train_obj = tirosh_mel80_example, 
23 23
 marker_genes = selected_marker_genes_B, cell_type = "B cells")
24
-parent(clf_b)
24
+parent(classifier_b)
25 25
 
26 26
 }
Browse code

change features to marker_genes

Former-commit-id: b8f82581ead9bfe31c088db02857a1d1c996d832

nttvy authored on 22/07/2021 11:32:05
Showing 1 changed files
... ...
@@ -17,10 +17,10 @@ Returns the parent of the cell type corresponding to the given classifier.
17 17
 }
18 18
 \examples{
19 19
 data("tirosh_mel80_example")
20
-selected_features_B = c("CD19", "MS4A1", "CD79A")
20
+selected_marker_genes_B = c("CD19", "MS4A1", "CD79A")
21 21
 set.seed(123)
22 22
 clf_b <- train_classifier(train_obj = tirosh_mel80_example, 
23
-features = selected_features_B, cell_type = "B cells")
23
+marker_genes = selected_marker_genes_B, cell_type = "B cells")
24 24
 parent(clf_b)
25 25
 
26 26
 }
Browse code

rename package from scClassifR to scAnnotatR

Former-commit-id: 9823f9b8cf0ad38ebbe2bcd6f870a63a98c29d07

nttvy authored on 01/07/2021 12:02:51
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 parent(classifier)
8 8
 }
9 9
 \arguments{
10
-\item{classifier}{scClassifR object}
10
+\item{classifier}{scAnnotatR object}
11 11
 }
12 12
 \value{
13 13
 Parent model of object
Browse code

rename package

Former-commit-id: c41bda4739a20cb0a346da77aaa02256d756b67f

nttvy authored on 29/12/2020 00:49:20
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 parent(classifier)
8 8
 }
9 9
 \arguments{
10
-\item{classifier}{scTypeR object}
10
+\item{classifier}{scClassifR object}
11 11
 }
12 12
 \value{
13 13
 Parent model of object
Browse code

convert single-method generics to plain-old functions

Former-commit-id: e52b32b4499d2b03f0175aea229f12e4ceb43999

nttvy authored on 24/12/2020 16:11:58
Showing 1 changed files
... ...
@@ -2,12 +2,9 @@
2 2
 % Please edit documentation in R/class.R
3 3
 \name{parent}
4 4
 \alias{parent}
5
-\alias{parent,scTypeR-method}
6 5
 \title{parent}
7 6
 \usage{
8 7
 parent(classifier)
9
-
10
-\S4method{parent}{scTypeR}(classifier)
11 8
 }
12 9
 \arguments{
13 10
 \item{classifier}{scTypeR object}
Browse code

group non exported functions

Former-commit-id: 6c0f23354428e151ce50a784d61b6a9bcad0861a

nttvy authored on 22/12/2020 16:30:32
Showing 1 changed files
... ...
@@ -2,9 +2,12 @@
2 2
 % Please edit documentation in R/class.R
3 3
 \name{parent}
4 4
 \alias{parent}
5
+\alias{parent,scTypeR-method}
5 6
 \title{parent}
6 7
 \usage{
7 8
 parent(classifier)
9
+
10
+\S4method{parent}{scTypeR}(classifier)
8 11
 }
9 12
 \arguments{
10 13
 \item{classifier}{scTypeR object}
Browse code

Change package name

Former-commit-id: af53b823be827fde1d0a8435136b9455293ccbdc

nttvy authored on 01/12/2020 09:03:46
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 parent(classifier)
8 8
 }
9 9
 \arguments{
10
-\item{classifier}{SingleCellClassR object}
10
+\item{classifier}{scTypeR object}
11 11
 }
12 12
 \value{
13 13
 Parent model of object
Browse code

Initial commit

Former-commit-id: c30d5e0eb17749597b12316855f05517b93b7be9

Johannes Griss authored on 10/11/2020 10:34:39
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,26 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/class.R
3
+\name{parent}
4
+\alias{parent}
5
+\title{parent}
6
+\usage{
7
+parent(classifier)
8
+}
9
+\arguments{
10
+\item{classifier}{SingleCellClassR object}
11
+}
12
+\value{
13
+Parent model of object
14
+}
15
+\description{
16
+Returns the parent of the cell type corresponding to the given classifier.
17
+}
18
+\examples{
19
+data("tirosh_mel80_example")
20
+selected_features_B = c("CD19", "MS4A1", "CD79A")
21
+set.seed(123)
22
+clf_b <- train_classifier(train_obj = tirosh_mel80_example, 
23
+features = selected_features_B, cell_type = "B cells")
24
+parent(clf_b)
25
+
26
+}