Skip to content

Commit

Permalink
Standardize variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
memgonzales committed Dec 20, 2023
1 parent 2c4cb26 commit 1918320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions callbacks/file_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions callbacks/lift_over/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 1918320

Please sign in to comment.