Instead of adding two new functions, I'd prefer something like decomposeLabel :: SeqLabel -> (SeqId, Maybe SeqDescription)
There are already too many seqfoos, IMHO. Cheers, On Mon, Dec 10, 2012 at 9:54 AM, Ketil Malde <ke...@malde.org> wrote: > Christian Höner zu Siederdissen <choe...@tbi.univie.ac.at> writes: > >> do you want to have certain laws? Like header = id + (" " +) >> description? In general, seqid + seqheader seems the most useful >> combination in terms of fasta http://en.wikipedia.org/wiki/FASTA_format >> assuming that the full line is a header (id + desc). Of course, that >> would be a "3." -- and I am ignoring all other formats out there that >> could be BioSeq's. > > Yes, it strikes me as perhaps the best option: add seqid and seqheader, > remove seqlabel from the class, but make it a separate alias with a > deprecation warning. > > Anyone opposed? > > Also, I think one should be able to work with sequences as far as > possible without resorting to Bytestring operations (exposing the > internals). > > Is it okay to use Monoid for appending and (m)empty? And have separate > 'slice' and 'copy' (or perhaps 'defragment')? Any implementor of the > classes would have to bear the burden of implementing this as well, of > course. > > -k > _______________________________________________ > Biohaskell mailing list > Biohaskell@biohaskell.org > http://malde.org/cgi-bin/mailman/listinfo/biohaskell -- Felipe. _______________________________________________ Biohaskell mailing list Biohaskell@biohaskell.org http://malde.org/cgi-bin/mailman/listinfo/biohaskell