-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(groupComparison): Enable parallel processing for groupComparison…
… function (#110) * feat(groupComparison): Enable parallel processing for groupComparison function * refactored single core vs multicore group comparison into separate util functions * update documentation regarding groupComparisonWithMultipleCores util function * fix(groupComparison): Remove return statements, define environment() variable, fixed all_proteins_id iterator * docs: Updated docs to mention that parallel processing only works for Linux/Mac OS
- Loading branch information
1 parent
e589cb0
commit 9c655f6
Showing
9 changed files
with
187 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,8 @@ Imports: | |
grDevices, | ||
graphics, | ||
methods, | ||
statmod | ||
statmod, | ||
parallel | ||
Suggests: | ||
BiocStyle, | ||
knitr, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Setup ------------------------------------------------------------------ | ||
QuantData = dataProcess(SRMRawData, use_log_file = FALSE) | ||
comparison = matrix(c(-1,0,0,0,0,0,1,0,0,0),nrow=1) | ||
row.names(comparison) = "T7-T1" | ||
groups = levels(QuantData$ProteinLevelData$GROUP) | ||
colnames(comparison) = groups[order(as.numeric(groups))] | ||
|
||
# Test groupComparison with default parameters --------------------------- | ||
testResultDefaultComparison = groupComparison(contrast.matrix=comparison, | ||
data=QuantData, | ||
use_log_file = FALSE) | ||
|
||
# Test groupComparison with numberOfCores parameter ---------------------- | ||
testResultParallelComparison = groupComparison(contrast.matrix=comparison, | ||
data=QuantData, | ||
use_log_file = FALSE, | ||
numberOfCores = 2) | ||
|
||
expect_equal(nrow(testResultDefaultComparison$ComparisonResult), | ||
nrow(testResultParallelComparison$ComparisonResult)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.