public simParams(simParams s) //COPY CONSTRUCTOR { dict = new SortedDictionary <string, SortedDictionary <string, string> > (); foreach (KeyValuePair <string, SortedDictionary <string, string> > sec in s.dict) { dict.Add(sec.Key, new SortedDictionary <string, string>()); foreach (KeyValuePair <string, string> attr in s.dict[sec.Key]) { dict[sec.Key].Add(attr.Key, attr.Value); } } }
//Called once for initialization void Start() { GUIParams = new simParams(); fullSectionList = GUIParams.initialize_defaults(); fullSectionList = GUIParams.read("SAMPLE_TRAPP.ini"); paramsOn = false; string[] tlist = { "REB1", "MCM1", "RSC3", "TEC1", "STE12", "FLO8", "SFL1", "GAL4" }; //An attempt at an exhaustive list of all transcription factors that could be possible string[] alltlist = { "REB1", "MCM1", "RSC3", "TEC1", "STE12", "FLO8", "SFL1", "GAL4", "DAL80", "GAL4", "GTS1", "HAP3", "NRG1", "PHO2", "PHO4", "RAP1", "RIM101", "SOK2", "STE13", "TBP", "YAP5" }; tfactorList = new List <string> (tlist); selectedFactorList = new List <string> (); for (int i = 0; i < tfactorList.Count; ++i) { factorToggle.Add(false); } }
void AddTFAttributes(ref simParams s, string sectionLabel) { s.add_string(sectionLabel, "INITIAL_COUNT", ""); s.add_string(sectionLabel, "ON_RATE", ""); s.add_string(sectionLabel, "MOTIF_THRESH", ""); }