You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the usage function for pysam index in the python interpreter the parameter -M is listed as a way to get it to accept multiple files to index.
Traceback (most recent call last):
File "/Users/nproach/Documents/fulcrum_genomics/internal_repos/fgpyo/mre.py", line 14, in <module>
pysam.index("-M", str(example1), str(example2))
File "/Users/nproach/miniconda3/envs/fgpyo-test/lib/python3.10/site-packages/pysam/utils.py", line 56, in __call__
retval, stderr, stdout = _pysam_dispatch(
File "pysam/libcutils.pyx", line 323, in pysam.libcutils._pysam_dispatch
OSError: No such file or directory: '-M'
The text was updated successfully, but these errors were encountered:
Thanks for the report. Somewhat unfortunately, the Python code contains an additional option parser for the index subcommands, and that had not been updated to account for newer options added to samtools or bcftools. I've fixed this by simplifying the additional parser so that it doesn't need its own list of the simple options like -M.
This should now be fixed if you build your own pysam from the Git repository, and the fix will appear in the next pysam release.
When running the usage function for pysam index in the python interpreter the parameter
-M
is listed as a way to get it to accept multiple files to index.However attempting to run pysam with this parameter results in an error.
Results in the following error:
The text was updated successfully, but these errors were encountered: