Skip to content

Commit

Permalink
Example size reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
TanerArslan committed Mar 4, 2019
1 parent 6333009 commit 0b5d88f
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 48 deletions.
6 changes: 3 additions & 3 deletions R/applyThresholdToCompartment.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand Down
6 changes: 3 additions & 3 deletions R/applyThresholdToNeighborhood.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand Down
2 changes: 1 addition & 1 deletion R/load.data.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#'@export
#'@examples {
#'
#'df <- loadData(SubCellBarCode::hcc827Ctrl)
#'df <- loadData(SubCellBarCode::hcc827Ctrl[1:10,])
#'}
#'@return protein.data.df

Expand Down
2 changes: 1 addition & 1 deletion R/markerQualityControl.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'r.markers <- markerQualityControl(c.prots[1:10], df)
#'r.markers <- markerQualityControl(c.prots[1:5], df)
#'}
#' @import ggplot2
#' @import gridExtra
Expand Down
6 changes: 3 additions & 3 deletions R/mergeCompNeigh.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand Down
8 changes: 4 additions & 4 deletions R/plotBarcode.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand All @@ -33,7 +33,7 @@
#'
#'cls.df <- mergeCls(c.cls.df, n.cls.df)
#'
#'proteinPlot <- plotBarcode(cls.df, "AAED1", hcc827CtrlPSMCount)
#'proteinPlot <- plotBarcode(cls.df, "AAR2", hcc827CtrlPSMCount)
#'}
#'@import ggplot2
#'@importFrom graphics plot
Expand Down
6 changes: 3 additions & 3 deletions R/probabilityThresholdCompartments.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand Down
6 changes: 3 additions & 3 deletions R/probabilityThresholdNeighborhood.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'test.A <- cls[[1]]$svm.test.prob.out
#'test.B <- cls[[2]]$svm.test.prob.out
Expand Down
5 changes: 3 additions & 2 deletions R/svmClassifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
#'
#'c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
#'
#'set.seed(1)
#'cls <- svmClassification(c.prots[1:700], df, markerProteins)
#'set.seed(5)
#'c.prots <- sample(c.prots, 450)
#'cls <- svmClassification(c.prots, df, markerProteins)
#'
#'}
#'@import caret
Expand Down
2 changes: 1 addition & 1 deletion R/tSNEVisualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#'set.seed(21)
#'tsneMap.df <- tsneVisualization(protein.data = df,
#'markerProteins = c.prots[1:30],
#'markerProteins = c.prots[1:20],
#'dims = 2, theta = c(0.4), perplexity = c(5))
#'}
#'
Expand Down
6 changes: 3 additions & 3 deletions man/applyThresholdCompartment.Rd

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

6 changes: 3 additions & 3 deletions man/applyThresholdNeighborhood.Rd

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

6 changes: 3 additions & 3 deletions man/computeThresholdCompartment.Rd

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

6 changes: 3 additions & 3 deletions man/computeThresholdNeighborhood.Rd

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

2 changes: 1 addition & 1 deletion man/loadData.Rd

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

2 changes: 1 addition & 1 deletion man/markerQualityControl.Rd

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

6 changes: 3 additions & 3 deletions man/mergeCls.Rd

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

8 changes: 4 additions & 4 deletions man/plotBarcode.Rd

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

5 changes: 3 additions & 2 deletions man/svmClassification.Rd

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

2 changes: 1 addition & 1 deletion man/tsneVisualization.Rd

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

0 comments on commit 0b5d88f

Please sign in to comment.