file command's magic pattern file for bioinformatics
Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
patterns
test
.gitignore
LICENSE
Makefile
README.md

README.md

magic

file command's magic pattern file for bioinformatics

Motivation: https://www.biostars.org/p/111642 "Tool that detects data types"

Compiling the magic file 'bioinfo.mgc'

$ make

Tested with file:

$ file --version
file-5.09

Examples

$ file -z -m bioinfo.mgc ex1.sam.gz
ex1.sam.gz: SAM file v1.0 sorted on coordinates (data)
$ file -z -m bioinfo.mgc file.bam
file.bam: BAM file v1.0 (data)
$ file -z -m bioinfo.mgc file.fasta
file.fasta: Fasta DNA sequence
$ file -z -m bioinfo.mgc file.vcf
file.vcf: VCF format 4.1
$ file -z -m bioinfo.mgc file.gz.tbi
file.gz.tbi: Tabix index file v1.0 (data) 

See also:

Author

Pierre Lindenbaum PhD @yokofakun