pub fn autodetect_create_or_stdout_prefer_bgzip<P: AsRef<Path>>(
    path: Option<P>,
    compression_level: CompressionLevel
) -> Result<ProcessorWriter<Box<dyn Processor + Send + Unpin>, Box<dyn Write + Send + Unpin>>>
Expand description

Create a file or open standard input, and automatically select a suitable encoder from file extension.

This function prefers BGZip format to gzip formats. If file extension is .gz, BGZip format is used. When path is None and standard output is a terminal, plain format is used. When path is None and standard output is not a terminal, BGzip format is used.