Theoretical and practical analyses in metagenomic sequence classification