It looks like create relies on the file extension to determine the type of input, which precludes using /dev/stdin as the input file. Since create doesn't have many filtering options, it is often necessary to use samtools view to filter the file (e.g. remove duplicate reads) upstream of create.
You could be fancy and try to sniff the file type using the magic bytes, or you could just add an option for the user to specify the file type.
It looks like
create
relies on the file extension to determine the type of input, which precludes using/dev/stdin
as the input file. Sincecreate
doesn't have many filtering options, it is often necessary to usesamtools view
to filter the file (e.g. remove duplicate reads) upstream ofcreate
.You could be fancy and try to sniff the file type using the magic bytes, or you could just add an option for the user to specify the file type.