Skip to content

Commit

Permalink
update 0.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmsk committed Sep 15, 2020
1 parent f038ca8 commit d6ab56a
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 13 deletions.
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.13 (2020.09.13):
- adjust target line for deletion in VCF

0.2.12 (2020.09.15):
- adjust target line for deletion in VCF

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.12-py3-none-any.whl
pip install ./dist/bamsnap-0.2.13-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.12',
version='0.2.13',
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.12
Version: 0.2.13
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__/_options.cpython-37.pyc
Binary file not shown.
Binary file modified src/bamsnap/__pycache__/bamsnap.cpython-37.pyc
Binary file not shown.
14 changes: 7 additions & 7 deletions src/bamsnap/_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def set_pos_list(opt):
p1['t_spos'] = int(arr[1])
p1['t_epos'] = int(arr[1]) + 1
elif len(ref) > len(alt):
p1['t_spos'] = int(arr[1])
p1['t_epos'] = int(arr[1]) + len(ref) + 1
p1['t_spos'] = int(arr[1]) + 1
p1['t_epos'] = int(arr[1]) + len(ref)
elif len(ref) < len(alt):
p1['t_spos'] = int(arr[1])
p1['t_epos'] = int(arr[1]) + len(alt) + 1
p1['t_spos'] = int(arr[1]) + 1
p1['t_epos'] = int(arr[1]) + len(alt)
else:
p1['t_spos'] = int(arr[1])
p1['t_epos'] = int(arr[1]) + len(alt) + 1
p1['t_spos'] = int(arr[1]) + 1
p1['t_epos'] = int(arr[1]) + len(alt)

p1['g_spos'] = p1['t_spos'] - int(opt['margin'])
p1['g_epos'] = p1['t_epos'] + int(opt['margin'])
poslist.append(p1)
Expand Down
2 changes: 1 addition & 1 deletion src/bamsnap/data/conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"TITLE":"BAMSNAP",
"VERSION":"0.2.12",
"VERSION":"0.2.13",
"VERSION_DATE":"2020-09-15",
"PROG":"bamsnap",
"options":[
Expand Down
1 change: 1 addition & 0 deletions tests/data/test_DEL_chr12_47977510.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chr12 47977510 . CTTGTTCCAACCTGCCACCCCCAGCTGACCTGTCAGGCCCGAGGCAATGTCCTCCCCAACCCACTGCACACACAGACACCAGACACTCA C
Binary file added tests/data/test_DEL_chr12_47977510_F.bam
Binary file not shown.
Binary file added tests/data/test_DEL_chr12_47977510_F.bam.bai
Binary file not shown.
Binary file added tests/data/test_DEL_chr12_47977510_M.bam
Binary file not shown.
Binary file added tests/data/test_DEL_chr12_47977510_M.bam.bai
Binary file not shown.
Binary file added tests/data/test_DEL_chr12_47977510_P.bam
Binary file not shown.
Binary file added tests/data/test_DEL_chr12_47977510_P.bam.bai
Binary file not shown.
Binary file modified tests/out/test_DEL_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 added tests/out/test_DEL_chr12.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 added tests/out/test_DEL_chr12_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 added tests/out/test_DEL_chr12_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 added tests/out/test_DEL_chr12_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 36 additions & 2 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
-save_image_only
""") # coordinates track example 3

#180097878-180098507

cmdlist.append("""
-bam ./data/test_DEL_4_180097876_180097877.bam \
-vcf ./data/test_DEL_4.vcf \
Expand All @@ -263,6 +263,41 @@
-save_image_only
""") # coordinates track example 3

cmdlist.append("""
-bam ./data/test_DEL_chr12_47977510_F.bam ./data/test_DEL_chr12_47977510_M.bam ./data/test_DEL_chr12_47977510_P.bam \
-vcf ./data/test_DEL_chr12_47977510.vcf \
-margin 20 \
-title "F" "M" "P" \
-out ./out/test_DEL_chr12_1.png \
-show_soft_clipped \
-read_color_by interchrom \
-read_group strand \
-save_image_only
""")

cmdlist.append("""
-bam ./data/test_DEL_chr12_47977510_F.bam ./data/test_DEL_chr12_47977510_M.bam ./data/test_DEL_chr12_47977510_P.bam \
-vcf ./data/test_DEL_chr12_47977510.vcf \
-margin 1000 \
-title "F" "M" "P" \
-out ./out/test_DEL_chr12_2.png \
-show_soft_clipped \
-read_color_by interchrom \
-read_group strand \
-save_image_only
""")

cmdlist.append("""
-bam ./data/test_DEL_chr12_47977510_F.bam ./data/test_DEL_chr12_47977510_M.bam ./data/test_DEL_chr12_47977510_P.bam \
-vcf ./data/test_DEL_chr12_47977510.vcf \
-margin 5000 \
-title "F" "M" "P" \
-out ./out/test_DEL_chr12_3.png \
-show_soft_clipped \
-read_color_by interchrom \
-read_group strand \
-save_image_only
""")

cmdlist.append("""
-bam ./data/test_noMDtag_1_102345_103355.bam \
Expand All @@ -286,7 +321,6 @@
""")



def test_run():
for cmd in cmdlist:
# cmd = cmdlist[-1]
Expand Down

0 comments on commit d6ab56a

Please sign in to comment.