Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Aug 13, 2019
1 parent 445a561 commit 624fa5f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 151 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Author: Witold Wolski
Description: Analysing and LFQ and SRM experiments in service mode.
Data preprocessing and visualization.
Imports:
bibliospec,
bookdown,
conflicted,
corrplot,
dplyr,
forcats,
glue,
gridExtra,
heatmap3,
Expand Down
6 changes: 4 additions & 2 deletions R/Grp2Analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,16 @@ Grp2Analysis <- setRefClass("Grp2Analysis",
fileID <- as.character(subset(.self$annotation_, Condition == condition)$Raw.file)
normalized[, fileID]
},
resetModelMatrix = function(){
.self$modelMatrix <- matrix(ncol=0, nrow=0)
},
setModelMatrix = function(modelMatrix){
.self$modelMatrix <- modelMatrix
},
getDesignMatrix = function(){
if(isTRUE(all.equal(dim(.self$modelMatrix), c(0,0)))){
# hack for putting reference into denomintor.
design <- gsub(reference, paste("A_", reference, sep=""),
.self$annotation_$Condition)
design <- forcats::fct_relevel(.self$annotation_$Condition, .self$reference)
.self$modelMatrix <- model.matrix(~design)
}
return(.self$modelMatrix)
Expand Down
3 changes: 3 additions & 0 deletions inst/RunScripts/Run_MQ_QuantTwoGroupAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ grp2 <- Grp2Analysis(annotation, "Experimentname",
numberOfProteinClusters = 20
)

grp2$getDesignMatrix()

grp2$setMQProteinGroups(protein)
grp2$setQValueThresholds(qvalue = qvalueThreshold,qfoldchange = qfoldchange)
mqQuantMatrixGRP2 <- grp2

head(mqQuantMatrixGRP2$getModPValuesCI())

usethis::use_data(mqQuantMatrixGRP2, overwrite = TRUE)
#readr::write_tsv(grp2$getResultTable(), path=file.path(resultdir,"pValues.csv"))

Expand Down
32 changes: 0 additions & 32 deletions inst/samples/plotlyExample.Rmd

This file was deleted.

87 changes: 0 additions & 87 deletions inst/samples/plotlyViewer/ProteinPeptideViewer.Rmd

This file was deleted.

28 changes: 0 additions & 28 deletions inst/samples/plotlyViewer/RenderPepideProteinViewer.R

This file was deleted.

2 changes: 1 addition & 1 deletion vignettes/Grp2PullDownExample.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ header-includes:
params:
grp: !r quote(SRMService::grp2PullDownExample)
vignette: >
%\VignetteIndexEntry{FGCZ Two-Group Analysis}
%\VignetteIndexEntry{FGCZ Two-Group Analysis - pull down example}
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown}
bibliography: bibliography.bib
Expand Down

0 comments on commit 624fa5f

Please sign in to comment.