Infernal contains a taxonomy database. This is a simple module reflecting said database.
- data Species = Species {
- name :: ByteString
- classification :: [ByteString]
- taxid :: Int
- shortenName :: ByteString -> ByteString
Documentation
For each species, we store the name and a classification list from most general (head) to most specific (last). The database comes with the NCBI taxon identifier (taxid).
Species | |
|
shortenName :: ByteString -> ByteStringSource
Given a name such as Drosophila Melanogaster, returns d.melanogaster.