Skip to content

Commit

Permalink
fixed #25
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Dec 7, 2023
1 parent f5b82f4 commit 3265306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bedboss/bedmaker/bedmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
BED_TO_BIGBED_PROGRAM,
BIGBED_TO_BED_PROGRAM,
QC_FOLDER_NAME,
REFGENIE_ENV_VAR,
)

_LOGGER = logging.getLogger("bedboss")
Expand Down Expand Up @@ -390,7 +391,7 @@ def get_rgc(self) -> str:
"""
if not self.rfg_config:
_LOGGER.info("Creating refgenie genome config file...")
cwd = os.getcwd()
cwd = os.getenv(REFGENIE_ENV_VAR, os.getcwd())
self.rfg_config = os.path.join(cwd, "genome_config.yaml")

# get path to the genome config; from arg or env var if arg not provided
Expand Down
1 change: 1 addition & 0 deletions bedboss/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@
DEFAULT_BEDBASE_CACHE_PATH = "./bedabse_cache"

BEDBOSS_PEP_SCHEMA_PATH = "https://schema.databio.org/pipelines/bedboss.yaml"
REFGENIE_ENV_VAR = "REFGENIE"

0 comments on commit 3265306

Please sign in to comment.