Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
akahles committed Jan 19, 2022
2 parents bbf2860 + 3c2e15e commit 3b81023
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
# -- Project information -----------------------------------------------------

project = u'SplAdder'
copyright = u'2019, Andre Kahles'
copyright = u'2013-2022, Andre Kahles'
author = u'Andre Kahles'

# The short X.Y version
version = u'3.0'
# The full version, including alpha/beta/rc tags
release = u'3.0.0'
release = u'3.0.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.0
current_version = 3.0.1
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/ratschlab/spladder',
version='3.0.0',
version='3.0.1',
zip_safe=False,
)
2 changes: 1 addition & 1 deletion spladder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__author__ = """Andre Kahles"""
__email__ = '[email protected]'
__version__ = '3.0.0'
__version__ = '3.0.1'
6 changes: 6 additions & 0 deletions spladder/alt_splice/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,19 @@ def curate_alt_prime(event_list, options):
elif event_list[i].exons1[1, 1] < event_list[i].exons2[1, 1]:
event_list[i].exons2[1, 1] = event_list[i].exons1[1, 1]
corr_count += 1
### check whether our isoform convention is still met - if not, correct
if np.sum(event_list[i].exons1[:, 1] - event_list[i].exons1[:, 0]) > np.sum(event_list[i].exons2[:, 1] - event_list[i].exons2[:, 0]):
event_list[i].exons1, event_list[i].exons2 = event_list[i].exons2, event_list[i].exons1
elif np.all(event_list[i].exons1[1, :] == event_list[i].exons2[1, :]):
if event_list[i].exons1[0, 0] > event_list[i].exons2[0, 0]:
event_list[i].exons2[0, 0] = event_list[i].exons1[0, 0]
corr_count += 1
elif event_list[i].exons1[0, 0] < event_list[i].exons2[0, 0]:
event_list[i].exons1[0, 0] = event_list[i].exons2[0, 0]
corr_count += 1
### check whether our isoform convention is still met - if not, correct
if np.sum(event_list[i].exons1[:, 1] - event_list[i].exons1[:, 0]) > np.sum(event_list[i].exons2[:, 1] - event_list[i].exons2[:, 0]):
event_list[i].exons1, event_list[i].exons2 = event_list[i].exons2, event_list[i].exons1

### remove events with non-overlapping alt_exons
if len(rm_idx) > 0:
Expand Down

0 comments on commit 3b81023

Please sign in to comment.