Skip to content

Commit

Permalink
Monkey patch this thing and call it done
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Mar 7, 2016
1 parent e7615d5 commit b3928d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install:
# command to run tests
script:
- flake8 . --exclude=.venv,.build,foo --ignore=E501,F403,E402
- nosetests --with-doctest --ignore-files=plotCoverage --exclude=deeptools.correctGCBias deeptools
- nosetests --with-doctest --ignore-files=plotCoverage deeptools
- nosetests deeptools/test/test_plotCoverage.py
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=`echo $PATH | sed -e 's/\/home\/travis\/miniconda\/bin://'` ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then /home/travis/build/fidelram/deepTools/foo/bin/planemo lint galaxy/wrapper/ ; fi
Expand Down
6 changes: 6 additions & 0 deletions deeptools/correctGCBias.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ def writeCorrectedSam_worker(chrNameBam, chrNameBit, start, end,
>>> tempFile = writeCorrectedSam_worker(*args, \
... tag_but_not_change_number=True, verbose=False)
>>> from StringIO import StringIO
>>> ostdout = sys.stdout
>>> import tempfile
>>> sys.stdout = tempfile.TemporaryFile()
>>> idx = pysam.index(tempFile)
>>> sys.stdout = ostdout
>>> bam = pysam.Samfile(tempFile)
>>> [dict(r.tags)['YN'] for r in bam.fetch(args[0], 200, 250)]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
Expand All @@ -305,7 +309,9 @@ def writeCorrectedSam_worker(chrNameBam, chrNameBit, start, end,
>>> tempFile = \
... writeCorrectedSam_worker(*test.testWriteCorrectedSam_paired(),\
... tag_but_not_change_number=True, verbose=False)
>>> sys.stdout = tempfile.TemporaryFile()
>>> idx = pysam.index(tempFile)
>>> sys.stdout = ostdout
>>> bam = pysam.Samfile(tempFile)
>>> [dict(r.tags)['YN'] for r in bam.fetch('chr2L', 0, 50)]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Expand Down

0 comments on commit b3928d9

Please sign in to comment.