static public CaseIdToAASeq GetInstance() { CaseIdToAASeq caseId = new CaseIdToAASeq(); caseId._caseIdToAASeq = new Dictionary <string, AASeq>(); return(caseId); }
// /* // 1189MB MEPVDPNLEPWNHPGSQPKTPCTNCYCKHCSYHCLVCFQTKGLGISYGRK // J112MA MEPVDPNLEPWNHPGSQPITACNKCYCKYCSYHCLVCFQTKGLGISYGRK // 1157M3M MEPVDPNLEPWNHPGSQPKTPCNKCYCKHCSYHCLVCFQTKGLGISYGRK // 1195MB MEPVDPNLEPWNHPGSQPKTPCNKCYCKYCSYHCLVCFQTKGLGISYGRK // */ static public CaseIdToAASeq GetInstance(TextReader textReader, bool mixture) { CaseIdToAASeq caseIdToAASeq = CaseIdToAASeq.GetInstance(); foreach (Dictionary <string, string> row in SpecialFunctions.TabFileTable(textReader, "cid\taaSeq", false)) { string caseId = row["cid"]; //!!!const string aaSeqAsString = row["aaSeq"]; //!!!const AASeq aaSeq = AASeq.GetInstance(aaSeqAsString, mixture); caseIdToAASeq.Add(caseId, aaSeq); } return(caseIdToAASeq); }