Skip to content

Commit a55ed3c

Browse files
authored
Merge pull request #27 from COMBINE-lab/develop
merge develop into main
2 parents 55cd1ea + c9189ed commit a55ed3c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyroe
3-
version = 0.8.0
3+
version = 0.8.1
44
author = Dongze He, Rob Patro
55
66
description = utilities of alevin-fry
@@ -22,7 +22,7 @@ python_requires = >=3.7
2222
include_package_data = True
2323
install_requires =
2424
pandas >= 1.3.0
25-
pyranges >= 0.0.115
25+
pyranges >= 0.0.120
2626
biopython >= 1.77
2727
packaging >= 21.0
2828
scanpy >= 1.8.2

src/pyroe/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.8.0"
1+
__version__ = "0.8.1"
22

33
from pyroe.load_fry import load_fry
44
from pyroe.make_txome import make_splici_txome, make_spliceu_txome

src/pyroe/make_txome.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def check_bedtools_version(bt_path):
446446
found_ver = parse_version(vstr)
447447
req_ver = parse_version("2.30.0")
448448
return found_ver >= req_ver
449-
except subprocess.CalledProcessError as err:
449+
except Exception as err:
450450
# in this case couldn't even run subprocess
451451
logging.warning(f" Cannot check bedtools version. The error message was: {err}")
452452
return False
@@ -608,7 +608,7 @@ def make_splici_txome(
608608
# load gtf
609609
try:
610610
gr = pr.read_gtf(gtf_path)
611-
except ValueError as err:
611+
except Exception as err:
612612
# in this case couldn't even read the GTF file
613613
logging.error(
614614
"".join(
@@ -774,13 +774,13 @@ def make_splici_txome(
774774
if tid2strand[prev_rec.id] == "-":
775775
prev_rec = prev_rec.reverse_complement(id=True, description=True)
776776
SeqIO.write(prev_rec, out_handle, "fasta")
777-
# shutil.rmtree(temp_dir, ignore_errors=True)
777+
shutil.rmtree(temp_dir, ignore_errors=True)
778778
except Exception as err:
779779
no_bt = True
780780
logging.warning(
781781
f" Bedtools failed; Using biopython instead. The error message was: \n{err}"
782782
)
783-
# shutil.rmtree(temp_dir, ignore_errors=True)
783+
shutil.rmtree(temp_dir, ignore_errors=True)
784784

785785
if no_bt:
786786
with open(out_fa, "w") as out_handle:
@@ -1015,7 +1015,7 @@ def make_spliceu_txome(
10151015
"".join(
10161016
[
10171017
" PyRanges failed to parse the input GTF file.",
1018-
" Please check the PyRanges documentation for ",
1018+
" Please check the PyRanges documentation for",
10191019
" the expected GTF format constraints at",
10201020
" https://pyranges.readthedocs.io/en/latest/autoapi/pyranges/readers/index.html?highlight=read_gtf#pyranges.readers.read_gtf .",
10211021
f" The error message was: {str(err)}",
@@ -1137,7 +1137,7 @@ def make_spliceu_txome(
11371137
logging.warning(
11381138
f" Bedtools failed; Using biopython instead. The error message was: {err}"
11391139
)
1140-
# shutil.rmtree(temp_dir, ignore_errors=True)
1140+
shutil.rmtree(temp_dir, ignore_errors=True)
11411141

11421142
if no_bt:
11431143
with open(out_fa, "w") as out_handle:

0 commit comments

Comments
 (0)