Skip to content

Commit

Permalink
Update parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuanhao-Chao committed Sep 9, 2023
1 parent b0ab95a commit 5724860
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

<p align="center">
<img src="./logo.png" alt="Italian Trulli" style="width:85%">
<img src="https://storage.googleapis.com/storage.khchao.com/figures/Splam/logo.png" alt="Italian Trulli" style="width:85%">
</p>


Expand Down
2 changes: 1 addition & 1 deletion src/include/htslib
6 changes: 5 additions & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext

VERSION = "1.0.3"
VERSION = "1.0.7"

# Convert distutils Windows platform specifiers to CMake -A arguments
PLAT_TO_CMAKE = {
Expand All @@ -17,6 +17,8 @@
"win-arm64": "ARM64",
}

this_directory = Path(__file__).resolve().parent
long_description = (this_directory / "../README.md").read_text()

# A CMakeExtension needs a sourcedir instead of a file list.
# The name must be the _single_ output extension from the CMake build.
Expand Down Expand Up @@ -142,4 +144,6 @@ def build_extension(self, ext: CMakeExtension) -> None:
cmdclass={"build_ext": CMakeBuild},
extras_require={"test": "pytest"},
entry_points={'console_scripts': ['splam = splam.main:main'], },
long_description=long_description,
long_description_content_type='text/markdown'
)
2 changes: 1 addition & 1 deletion src/splam/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2'
__version__ = '1.0.7'
2 changes: 1 addition & 1 deletion src/splam/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
__license__ = "MIT"
__maintainer__ = "developer"
__status__ = "Kuan-Hao Chao"
__version__ = "1.0.3"
__version__ = "1.0.7"
3 changes: 2 additions & 1 deletion src/splam/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def create_donor_acceptor_bed(junction_bed, junction_dir, reference_genome):
acceptor_s = acceptor - config.QUARTER_SEQ_LEN
acceptor_e = acceptor + flanking_size


if chr not in chrs.keys():
continue
if donor_e >= chrs[chr] or acceptor_e >= chrs[chr]:
continue
if donor_s < 0 or acceptor_s < 0:
Expand Down

0 comments on commit 5724860

Please sign in to comment.