cnvkit icon indicating copy to clipboard operation
cnvkit copied to clipboard

cnvkit batch - generate target_bed in output_dir if given

Open pontushojer opened this issue 11 months ago • 1 comments

Hi!

Small edit here.

I noticed that the target BED generated by cnvkit.py batch was created in the working directory, NOT the specified output directory. This PR add some logic to fix this.

For context I am running cnvkit batch in WGS mode using only a FASTA while specifying an output directory, this is the command:

cnvkit.py batch path/to/my.cram -n -m wgs -f path/to/genome.fa -d output

This generates a target BED based on the FASTA, but despite giving an output directory this BED (genome.bed in this case) was generated in the current directory.

pontushojer avatar Jan 22 '25 16:01 pontushojer

Relates to: https://github.com/etal/cnvkit/issues/781

pontushojer avatar Feb 03 '25 16:02 pontushojer

Thanks!

etal avatar Mar 23 '25 18:03 etal