Implements auto-detection of genotype-filetype