Seq
Create a Seq from a String, could be DNA or RNA. This functions provides compatibility with BioPython, but the preferred use is to use either NucSeq or ProteinSeq, as the Seq is less clear. Unlike Biopython Seq will not convert Protein String to Protein - use ProteinSeq
The String is tested for with compatibility DNA, RNA, and then ambiguous versions. It will throw an IllegalStateException, if it is not compatible with any.
val aSeq = Seq("GCATA")
val aNucSeq = Seq("GCATA")
val nSeq = NucSeq("GCATA")
val pSeq = ProteinSeq("MAIVMGR")
val pSeq = Seq("MAIVMGR") //Throw errorContent copied to clipboard