Skip to content

Commit 9389d57

Browse files
committed
more cleaning
1 parent 6095416 commit 9389d57

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

kb_python/extract.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def remove_mm_from_mc(t2g_path, txnames, temp_dir):
225225
ecmap_no_mm = os.path.join(temp_dir, "matrix_no_mm.ec")
226226

227227
logger.debug(
228-
f"Replacing transcript entries with -1 for equivalence classes "
229-
"that map to multiple genes from {os.path.join(temp_dir, 'matrix.ec')}"
228+
"Replacing transcript entries with -1 for equivalence classes "
229+
f"that map to multiple genes from {os.path.join(temp_dir, 'matrix.ec')}"
230230
)
231231

232232
# Get multimapped equivalence classes
@@ -238,8 +238,8 @@ def remove_mm_from_mc(t2g_path, txnames, temp_dir):
238238
ec_df.to_csv(ecmap_no_mm, sep="\t", index=False, header=None)
239239

240240
logger.debug(
241-
f"matrix.ec file where transcript entries were replaced with -1 for "
242-
"equivalence classes that map to multiple genes saved at {ecmap_no_mm}"
241+
"matrix.ec file where transcript entries were replaced with -1 for "
242+
f"equivalence classes that map to multiple genes saved at {ecmap_no_mm}"
243243
)
244244

245245
return ecmap_no_mm
@@ -331,12 +331,13 @@ def extract(
331331
"(and extract_all_fast and extract_all_unmapped are False), OR extract_all is True"
332332
)
333333

334-
# extract_all_unmapped requires bustools version > 0.43.2 since previous versions have a bug in the output fastq format that changes the sequence headers
334+
# extract_all_unmapped requires bustools version > 0.43.2
335+
# since previous versions have a bug in the output fastq format that changes the sequence headers
335336
bustools_version_tuple = get_bustools_version()
336337
if extract_all_unmapped and not (0, 43, 2) < bustools_version_tuple:
337338
raise ValueError(
338-
f"extract_all_unmapped requires bustools version > 0.43.2. "
339-
"You are currently using bustools version {'.'.join(str(i) for i in bustools_version_tuple)}."
339+
"extract_all_unmapped requires bustools version > 0.43.2. "
340+
f"You are currently using bustools version {'.'.join(str(i) for i in bustools_version_tuple)}."
340341
)
341342

342343
make_directory(out_dir)

0 commit comments

Comments
 (0)