public static void Main() { modshogun.init_shogun_with_defaults(); String[] strings = new String[] {"AAAAAAAAAACCCCCCCCCCGGGGGGGGGGTTTTTTTTTT"}; StringCharFeatures f = new StringCharFeatures(strings, EAlphabet.DNA); f.obtain_by_sliding_window(5,1); DynamicIntArray positions = new DynamicIntArray(); positions.append_element(0); positions.append_element(6); positions.append_element(16); positions.append_element(25); //f.obtain_by_position_list(8,positions); }
internal static ArrayList run(string[] strs) { modshogun.init_shogun_with_defaults(); StringCharFeatures f = new StringCharFeatures(strs, DNA); f.obtain_by_sliding_window(5,1); f.set_features(strs); DynamicIntArray positions = new DynamicIntArray(); positions.append_element(0); positions.append_element(6); positions.append_element(16); positions.append_element(25); //f.obtain_by_position_list(8,positions); ArrayList result = new ArrayList(); result.Add(f); modshogun.exit_shogun(); return result; }