Skip to content

Commit 4b180e5

Browse files
authored
indents
1 parent c962c5a commit 4b180e5

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

inst/unitTests/test_fCCAC.R

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
test_fCCAC <- function() {
2-
if (.Platform$OS.type == "unix") {
2+
if ( .Platform$OS.type == "unix" ) {
33

4-
owd <- setwd(tempdir())
4+
owd <- setwd( tempdir() )
55

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" )
1111

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)
1616

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)
1818

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) )
2626

27-
setwd(owd)
27+
setwd( owd )
2828
}
2929
}

0 commit comments

Comments
 (0)