You probably installed a newer version. Reinstalling samtools won't solve this particular error you faced, which was the lack of the -O flag. Please pay closer attention to the changes you make or you won't understand why something worked/did not work.
Also, accept your answer to mark the post as solved.
You probably installed a newer version. Reinstalling samtools won't solve this particular error you faced, which was the lack of the
-O
flag. Please pay closer attention to the changes you make or you won't understand why something worked/did not work.Also, accept your answer to mark the post as solved.