Skip to content

Commit 4cc0778

Browse files
authored
Merge pull request #368 from jkmckenna/0.4.1
Update load_adata.py
2 parents 3da747e + 08e1d42 commit 4cc0778

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/smftools/cli/load_adata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def load_adata_core(cfg, paths: AdataPaths, config_path: str | None = None):
316316
# If the input is a fastq or a directory of fastqs, concatenate them into an unaligned BAM and save the barcode
317317
elif cfg.input_type == "fastq":
318318
# Output file for FASTQ concatenation.
319-
output_bam = load_directory / "canonical_basecalls.bam"
319+
output_bam = bam_outputs_directory / "canonical_basecalls.bam"
320320
if output_bam.exists():
321321
logger.debug("Output BAM already exists")
322322
else:
@@ -360,9 +360,9 @@ def load_adata_core(cfg, paths: AdataPaths, config_path: str | None = None):
360360
model_basename = str(model_basename).replace(".", "_")
361361
if cfg.smf_modality == "direct":
362362
mod_string = "_".join(cfg.mod_list)
363-
bam = load_directory / f"{model_basename}_{mod_string}_calls"
363+
bam = bam_outputs_directory / f"{model_basename}_{mod_string}_calls"
364364
else:
365-
bam = load_directory / f"{model_basename}_canonical_basecalls"
365+
bam = bam_outputs_directory / f"{model_basename}_canonical_basecalls"
366366
else:
367367
bam_base = cfg.input_data_path.stem
368368
bam = cfg.input_data_path.parent / bam_base

0 commit comments

Comments
 (0)