Skip to content

Commit

Permalink
adjust target line
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmsk committed Sep 8, 2020
1 parent 47a65c1 commit baa3c9f
Show file tree
Hide file tree
Showing 24 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.pyc
src/bamsnap/__pycache__/
__pycache__/
.DS_Store
.eggs/
Expand Down
3 changes: 3 additions & 0 deletions docs/version_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Version History

v0.2.x release series
---------------------
0.2.11 (2020.09.08):
- adjust target line

0.2.10 (2020.09.08):
- debug ValueError when MD tag of read is missing (`issue #5<https://github.com/parklab/bamsnap/issues/5>`_)

Expand Down
2 changes: 1 addition & 1 deletion pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pip uninstall -y bamsnap
rm -rf build
rm -rf ./dist/*
python3 setup.py sdist bdist_wheel
pip install ./dist/bamsnap-0.2.10-py3-none-any.whl
pip install ./dist/bamsnap-0.2.11-py3-none-any.whl
# twine upload dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

setup(name='bamsnap',
version='0.2.10',
version='0.2.11',
url='https://github.com/danielmsk/bamsnap',
license='MIT',
author='Daniel Minseok Kwon',
Expand Down
2 changes: 1 addition & 1 deletion src/bamsnap.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: bamsnap
Version: 0.2.10
Version: 0.2.11
Summary: A converter from .bam to .png for specific genomic region.
Home-page: https://github.com/danielmsk/bamsnap
Author: Daniel Minseok Kwon
Expand Down
Binary file modified src/bamsnap/__pycache__/bamsnap.cpython-37.pyc
Binary file not shown.
Binary file modified src/bamsnap/__pycache__/drawread.cpython-37.pyc
Binary file not shown.
Binary file modified src/bamsnap/__pycache__/drawreadset.cpython-37.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions src/bamsnap/bamsnap.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ def drawplot_bamlist(self, pos1, image_w, bamlist, xscale, refseq):

if not self.opt['no_target_line']:
drawA = ImageDraw.Draw(ia)
x1 = xscale.xmap[pos1['t_spos']]['spos'] - 1
x2 = xscale.xmap[pos1['t_epos']]['epos'] + 1
x1 = xscale.xmap[pos1['t_spos']]['spos']
x2 = xscale.xmap[pos1['t_epos']]['spos']
for h1 in range(0, ia.height, 7):
drawA.line([(x1, h1), (x1, h1+2)], fill=COLOR['CENTER_LINE'], width=1)
drawA.line([(x2, h1), (x2, h1+2)], fill=COLOR['CENTER_LINE'], width=1)
Expand Down
4 changes: 2 additions & 2 deletions src/bamsnap/data/conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"TITLE":"BAMSNAP",
"VERSION":"0.2.10",
"VERSION_DATE":"2020-09-07",
"VERSION":"0.2.11",
"VERSION_DATE":"2020-09-08",
"PROG":"bamsnap",
"options":[
{"param":"bam", "default":[], "nargs":"*", "action": null, "choices":null, "type":null, "help":"bam file(s)"},
Expand Down
Binary file modified tests/out/NATRIO_chr10_117542948.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr10_117542948_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr10_117542948_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr10_117542948_baseplot_ex1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr10_117542948_baseplot_ex2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr10_117542948_baseplot_ex3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_chr9_114786933.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_test_3/chr14:36516859.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_test_3/chr1:45803673.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/NATRIO_test_3/chr5:197095.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/test_DEL_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/test_INV_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/out/test_noMDtag_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_run():
# print(cmd)
# print(shlex.quote(sys.argv))
bamsnap.cli()

# break


if __name__ == "__main__":
Expand Down

0 comments on commit baa3c9f

Please sign in to comment.