Fix faidx output capture and improve pysam's use of -o for redirection
Fix faidx output capture and improve pysam's use of -o for redirection: a task in cancer-swe-envs-100repos (Harbor dataset). Title: Fix faidx output capture and improve pysam's use of -o for redirection
The task
**Title:** Fix faidx output capture and improve pysam's use of -o for redirection
Part of scalingX/cancer-swe-envs-100repos.