|
1 | 1 | test_fCCAC <- function() {
|
2 |
| - if (.Platform$OS.type == "unix") { |
| 2 | + if ( .Platform$OS.type == "unix" ) { |
3 | 3 |
|
4 |
| - owd <- setwd(tempdir()) |
| 4 | + owd <- setwd( tempdir() ) |
5 | 5 |
|
6 |
| - bigwig1 <- "chr21_H3K4me3_1.bw" |
7 |
| - bigwig2 <- "chr21_H3K4me3_2.bw" |
8 |
| - bigwig3 <- "chr21_H3K4me3_3.bw" |
9 |
| - peakFile <- "chr21_merged_ACT_K4.bed" |
10 |
| - labels <- c( "H3K4me3", "H3K4me3","H3K4me3" ) |
| 6 | + bigwig1 <- "chr21_H3K4me3_1.bw" |
| 7 | + bigwig2 <- "chr21_H3K4me3_2.bw" |
| 8 | + bigwig3 <- "chr21_H3K4me3_3.bw" |
| 9 | + peakFile <- "chr21_merged_ACT_K4.bed" |
| 10 | + labels <- c( "H3K4me3", "H3K4me3","H3K4me3" ) |
11 | 11 |
|
12 |
| - r1 <- system.file("extdata", bigwig1, package="fCCAC",mustWork = TRUE) |
13 |
| - r2 <- system.file("extdata", bigwig2, package="fCCAC",mustWork = TRUE) |
14 |
| - r3 <- system.file("extdata", bigwig3, package="fCCAC",mustWork = TRUE) |
15 |
| - r4 <- system.file("extdata", peakFile, package="fCCAC",mustWork = TRUE) |
| 12 | + r1 <- system.file("extdata", bigwig1, package="fCCAC", mustWork = TRUE) |
| 13 | + r2 <- system.file("extdata", bigwig2, package="fCCAC", mustWork = TRUE) |
| 14 | + r3 <- system.file("extdata", bigwig3, package="fCCAC", mustWork = TRUE) |
| 15 | + r4 <- system.file("extdata", peakFile, package="fCCAC", mustWork = TRUE) |
16 | 16 |
|
17 |
| - fc <- fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(r1,r2,r3), labels=labels, splines=15, nbins=100, ncan=15, outFiles=FALSE) |
| 17 | + fc <- fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(r1,r2,r3), labels=labels, splines=15, nbins=100, ncan=15, outFiles=FALSE) |
18 | 18 |
|
19 |
| - # check that if minimal input is not introduced the package recognizes an error situation |
20 |
| - # peakFile |
21 |
| - checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=c(), bigwigs=c(r1,r2,r3), labels=labels, splines=15, nbins=100, ncan=15) ) |
22 |
| - # bigwigs |
23 |
| - checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(), labels=labels, splines=15, nbins=100, ncan=15) ) |
24 |
| - # labels |
25 |
| - checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(r1,r2,r3), labels=c(), splines=15, nbins=100, ncan=15) ) |
| 19 | + # check that if minimal input is not introduced the package recognizes an error situation |
| 20 | + # peakFile |
| 21 | + checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=c(), bigwigs=c(r1,r2,r3), labels=labels, splines=15, nbins=100, ncan=15) ) |
| 22 | + # bigwigs |
| 23 | + checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(), labels=labels, splines=15, nbins=100, ncan=15) ) |
| 24 | + # labels |
| 25 | + checkException( fccac(bar=NULL, main="H3K4me3 peaks", peaks=r4, bigwigs=c(r1,r2,r3), labels=c(), splines=15, nbins=100, ncan=15) ) |
26 | 26 |
|
27 |
| - setwd(owd) |
| 27 | + setwd( owd ) |
28 | 28 | }
|
29 | 29 | }
|
0 commit comments