Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use subprocess to check if pysam.index succeeds
Checking if pysam.index succeeds tests whether a file is coordinate sorted. If pysam.index fails to index htslib writes to stderr and this fails set meta tool. To prevent this we run this in a subprocess and discard stderr.
- Loading branch information
Showing
2 changed files
with
36 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters