Function Open-Temporary-Sam

Part of:

package elprep
( open-temporary-sam < sibling > )
Open a temporary SAM file for :output in the same folder as the sibling file. If the file is .bam or .cram, use samtools view for output.
Returns three values: a stream to read or write, optionally a process representation for samtools, and a pathname for the temporary file.