38 / d4-format

The D4 Quantitative Data Format
MIT License
156 stars 20 forks source link

Enable `create` to take input from stdin #60

Open jdidion opened 2 years ago

jdidion commented 2 years ago

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.

arq5x commented 2 years ago

We will look into this, but will likely be a while before this could be implemented.