Skip to content

Commit

Permalink
fix for dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
avikdatta committed Nov 24, 2023
1 parent b8b9090 commit c122c46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion igf_airflow/utils/dag34_cellranger_multi_scRNA_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def prepare_cellranger_script(sample_group: str, design_dict: dict) -> dict:
prepare_cellranger_run_dir_and_script_file(
sample_group=str(sample_group),
work_dir=work_dir,
output_dir=os.path.join(work_dir, str(sample_group))
design_file=design_file,
db_config_file=DATABASE_CONFIG_FILE,
run_script_template=CELLRANGER_MULTI_SCRIPT_TEMPLATE)
Expand Down Expand Up @@ -187,6 +188,7 @@ def prepare_cellranger_script(sample_group: str, design_dict: dict) -> dict:
def prepare_cellranger_run_dir_and_script_file(
sample_group: str,
work_dir: str,
output_dir: str,
design_file: str,
db_config_file: str,
run_script_template: str,
Expand Down Expand Up @@ -233,14 +235,16 @@ def prepare_cellranger_run_dir_and_script_file(
os.path.join(
work_dir,
os.path.basename(run_script_template))
# output_dir = \
# os.path.join(work_dir, str(sample_group))
_create_output_from_jinja_template(
template_file=run_script_template,
output_file=script_file,
autoescape_list=['xml',],
data=dict(
CELLRANGER_MULTI_ID=str(sample_group),
CELLRANGER_MULTI_CSV=library_csv_file,
CELLRANGER_MULTI_OUTPUT_DIR=work_dir,
CELLRANGER_MULTI_OUTPUT_DIR=output_dir,
WORKDIR=work_dir))
return library_csv_file, script_file
except Exception as e:
Expand Down

0 comments on commit c122c46

Please sign in to comment.