From ef29d76af51ca9d2cc685ca5e91db2b02d1a2289 Mon Sep 17 00:00:00 2001 From: NolanHartwick Date: Fri, 22 Apr 2022 15:28:06 -0700 Subject: [PATCH] automated rampler lookup. Kind of ugly but preserves current functionality when desirable and should work --- scripts/racon_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/racon_wrapper.py b/scripts/racon_wrapper.py index 4eda76d..5ed664a 100644 --- a/scripts/racon_wrapper.py +++ b/scripts/racon_wrapper.py @@ -13,6 +13,9 @@ class RaconWrapper: __racon = '@racon_path@' __rampler = '@rampler_path@' + if(not os.path.exists(__rampler) and shutil.which("rampler")): + __rampler = shutil.which("rampler") + def __init__(self, sequences, overlaps, target_sequences, split, subsample, include_unpolished, fragment_correction, window_length, quality_threshold, error_threshold, match, mismatch, gap, threads,