diff --git a/callbacks/file_util.py b/callbacks/file_util.py index 68be21fe..6e9a5692 100644 --- a/callbacks/file_util.py +++ b/callbacks/file_util.py @@ -44,7 +44,7 @@ def convert_text_to_path(text): ":", "_").replace(";", "__").replace("-", "_").replace('.', '_').replace(' ', '') -def get_path_to_temp(genomic_interval, analysis_type, *args): +def get_path_to_temp(genomic_intervals, analysis_type, *args): """ Forms the path to temporary (file-cached) results of given post-GWAS analysis This function returns only the path name. It does not create the actual file or directory @@ -58,7 +58,7 @@ def get_path_to_temp(genomic_interval, analysis_type, *args): - Path to temporary (file-cached) results of post-GWAS analysis """ genomic_interval_foldername = shorten_name(convert_text_to_path( - genomic_interval)) + genomic_intervals)) analysis_type = convert_text_to_path(analysis_type) diff --git a/callbacks/lift_over/util.py b/callbacks/lift_over/util.py index 5eb4f343..5b8c0ddf 100644 --- a/callbacks/lift_over/util.py +++ b/callbacks/lift_over/util.py @@ -47,7 +47,7 @@ def construct_options_other_ref_genomes(): # ===================================================== -def is_error(genomic_interval): +def is_error(genomic_intervals): """ Returns True if given genomic interval is malformed; False, otherwise @@ -60,7 +60,7 @@ def is_error(genomic_interval): Returns: - True if given genomic interval is malformed; False, otherwise """ - return isinstance(genomic_interval[0], int) + return isinstance(genomic_intervals[0], int) def get_error_message(error_code):