Skip to content

Commit

Permalink
fix ref bin output name
Browse files Browse the repository at this point in the history
  • Loading branch information
LindoNkambule committed Feb 5, 2025
1 parent 21fa520 commit 29b91ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gwaspy/imputation/glimpse2_impute.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def create_binary_ref(
"""Convert the reference panel into GLIMPSE2’s binary file format"""
j = b.new_job(name=f'create binary ref panel: {input_region}')
chrom = input_region.split(":")[0]
bin_reg_out = input_region.replace(":", "_").replace("-", "_")

j.image(img)
j.cpu(ncpu)
Expand All @@ -195,7 +196,7 @@ def create_binary_ref(
--output-region {output_region} \
--threads {ncpu} \
--output ref_bin_out
mv ref_bin_out.bin {j.ref_bin}
mv ref_bin_out_{bin_reg_out}.bin {j.ref_bin}
"""
)
return j
Expand Down

0 comments on commit 29b91ea

Please sign in to comment.