Function Invoke-With-Open-Sam

Part of:

package elprep
( invoke-with-open-sam < function > < filename > &rest < args > &key (direction input) < header-only > (wait t) )
Call a function and pass it a stream for reading or writing a SAM file.