... | ... |
@@ -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 |
} |
Former-commit-id: 91ec8da24f45c110ab4f2e728ab71e9c1d255ca8
... | ... |
@@ -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 |
} |
Former-commit-id: b8f82581ead9bfe31c088db02857a1d1c996d832
... | ... |
@@ -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 |
} |
Former-commit-id: 9823f9b8cf0ad38ebbe2bcd6f870a63a98c29d07
Former-commit-id: c41bda4739a20cb0a346da77aaa02256d756b67f
Former-commit-id: e52b32b4499d2b03f0175aea229f12e4ceb43999
... | ... |
@@ -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} |
Former-commit-id: 6c0f23354428e151ce50a784d61b6a9bcad0861a
... | ... |
@@ -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} |
Former-commit-id: af53b823be827fde1d0a8435136b9455293ccbdc
Former-commit-id: c30d5e0eb17749597b12316855f05517b93b7be9
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 |
+} |