module Data.Fasta.ByteString.Types where
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as M
data FastaSequence = FastaSequence { fastaHeader :: B.ByteString
, fastaSeq :: B.ByteString
} deriving (Eq, Ord, Show)
type Clone = FastaSequence
type Germline = FastaSequence
type Codon = B.ByteString
type CloneMap = M.Map (Int, Germline) [Clone]
class ShowFasta a where
showFasta :: a -> B.ByteString
instance ShowFasta FastaSequence where
showFasta FastaSequence {fastaHeader = x, fastaSeq = y} = B.concat [ ">"
, x
, "\n"
, y ]