Skip to content

Commit 76ca71e

Browse files
committed
Patch: Adding safer get method to prevent KeyErrors with custom reference genomes.
1 parent eec6781 commit 76ca71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rna-seek

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def setup(sub_args, ifiles, repo_path, output_path):
657657
config['bin']['rnaseq']['tool_parameters']['KRAKENBACDB'] = os.path.join(sub_args.shared_resources, "k2_pluspf_20241228")
658658
# Check if reference contains arriba references
659659
# there are only references for hg19/hg38/mm10
660-
if config["references"]["rnaseq"]["FUSIONBLACKLIST"]:
660+
if config["references"]["rnaseq"].get("FUSIONBLACKLIST", ''):
661661
new_path = sub_args.shared_resources.rstrip('/')
662662
config["references"]["rnaseq"]["FUSIONBLACKLIST"] = config["references"]["rnaseq"]["FUSIONBLACKLIST"].replace("/data/OpenOmics/references/common", new_path)
663663
config["references"]["rnaseq"]["FUSIONCYTOBAND"] = config["references"]["rnaseq"]["FUSIONCYTOBAND"].replace("/data/OpenOmics/references/common", new_path)

0 commit comments

Comments
 (0)