failed test - diff tmp expected
Closed this issue · 1 comments
ChiWPak commented
Any idea why this test would fail?
cd test; python2.7 test.py
Testing: ../bin/wiggletools do isZero diff fixedStep.bw variableStep.wig
Testing: ../bin/wiggletools diff fixedStep.bw variableStep.wig fixedStep.wig
Trailing tokens: the last tokens in your command were not read, check your syntax:
... fixedStep.wig
Testing: ../bin/wiggletools do isZero diff fixedStep.bw fixedStep.wig
Testing: ../bin/wiggletools do isZero offset -1 ratio variableStep.bw variableStep.wig
Testing: ../bin/wiggletools do isZero diff bam.bam pileup.bg
Testing: ../bin/wiggletools do isZero diff bam.bam cram.cram
Testing: ../bin/wiggletools do isZero diff bam.bam sam.sam
Testing: cat sam.sam | ../bin/wiggletools do isZero diff bam.bam sam -
Testing: ../bin/wiggletools do isZero diff overlapping.bed overlapping.bb
Testing: ../bin/wiggletools do isZero diff variableStep.bw variableStep.wig
Testing: ../bin/wiggletools do isZero diff vcf.vcf bcf.bcf
Testing: ../bin/wiggletools do isZero diff sum fixedStep.bw fixedStep.bw : scale 2 fixedStep.bw
Testing: ../bin/wiggletools do isZero diff sum fixedStep.bw fixedStep.bw : sum fixedStep.bw fixedStep.bw
Testing: ../bin/wiggletools do isZero diff ln fixedStep.bw sum map ln fixedStep.bw
Testing: ../bin/wiggletools do isZero diff ln exp fixedStep.bw fixedStep.wig
Testing: ../bin/wiggletools do isZero diff pow 2 fixedStep.bw mult fixedStep.wig fixedStep.wig
Testing: ../bin/wiggletools do isZero diff lt 5 fixedStep.wig gt -5 scale -1 fixedStep.wig
Testing: ../bin/wiggletools apply_paste tmp/regional_means.txt meanI overlapping.bed fixedStep.wig
Testing: ../bin/wiggletools print tmp/pearson.txt pearson fixedStep.wig variableStep.wig
Testing: ../bin/wiggletools profiles tmp/profiles.txt 3 overlapping.bed fixedStep.wig
Testing: ../bin/wiggletools profile tmp/profile.txt 3 overlapping.bed fixedStep.wig
Testing: ../bin/wiggletools do isZero diff fixedStep.wig overlaps fixedStep.wig fixedStep.wig
Testing: ../bin/wiggletools write_bg tmp/nearest_overlapping.bg nearest variableStep.wig overlapping.bed
Testing: ../bin/wiggletools write_bg tmp/nearest_fixedStep.bg nearest variableStep.wig fixedStep.bw
Testing: ../bin/wiggletools print - minI fixedStep.wig
Testing: ../bin/wiggletools print - maxI fixedStep.wig
Testing: ../bin/wiggletools do isZero diff overlapping_coverage.wig coverage overlapping.bed
Testing: ../bin/wiggletools do isZero diff trim overlapping.bed variableStep.wig mult overlapping.bed variableStep.wig
Testing: ../bin/wiggletools run program.txt
Testing: diff tmp expected
diff tmp/profiles.txt expected/profiles.txt
1,2c1,2
< chr1 3 7 2.000000 3.000000 9.000000
< chr1 4 9 3.000000 9.000000 13.000000
---
> chr1 3 7 2.666667 4.000000 12.000000
> chr1 4 9 5.000000 15.000000 21.666667
diff tmp/profile.txt expected/profile.txt
1,3c1,3
< 0 5.000000
< 1 12.000000
< 2 22.000000
---
> 0 7.666667
> 1 19.000000
> 2 33.666667
Traceback (most recent call last):
File "test.py", line 112, in <module>
assert test('diff tmp expected') == 0
AssertionError
make: *** [tests] Error 1```
dzerbino commented
Derr, I corrected the profile function and forgot to update the unit tests...