public Leave_out_readWriteOptions_class() { string directory = Global_directory_and_file_class.MBCO_datasets_directory; ReadWriteClass.Create_directory_if_it_does_not_exist(directory); File = directory + "Supplementary Table S35 - inferred SCP relationships.txt"; Key_propertyNames = new string[] { "ProcessLevel", "Left_out_processName", "ProcessID", "ProcessName", "Original_process_size", "Process_size_after_left_out", "New_symbols_count", "New_symbols_count_divided_by_original_process_size", "New_symbols_rank_increase", "New_symbols_rank_increase_divided_by_original_process_size" }; Key_columnNames = Key_propertyNames; File_has_headline = true; HeadlineDelimiters = new char[] { Global_class.Tab }; LineDelimiters = new char[] { Global_class.Tab }; Report = ReadWrite_report_enum.Report_main; }
public Ontology_enrich_readWriteOptions_class(string subdirectory, string fileName) { string directory = Global_directory_and_file_class.Results_directory + subdirectory; ReadWriteClass.Create_directory_if_it_does_not_exist(directory); this.File = directory + fileName; Key_propertyNames = new string[] { "Ontology_type", "ProcessLevel", "EntryType", "Timepoint", "Sample_name", "Scp_id", "Scp_name", "Minus_log10_pvalue", "Pvalue", "FDR", "ReadWrite_overlap_symbols" }; Key_columnNames = new string[] { "Ontology_type", "ProcessLevel", "EntryType", "Timepoint", "Sample_name", "Scp_id", "Scp_name", "Minus_log10_pvalue", "Pvalue", "FDR", "Overlap_symbols" }; Key_columnNames = Key_propertyNames; File_has_headline = true; LineDelimiters = new char[] { Global_class.Tab }; HeadlineDelimiters = new char[] { Global_class.Tab }; Report = ReadWrite_report_enum.Report_main; }
public void Generate_by_reading_files() { string directory = Global_directory_class.Degs_directory; string[] complete_file_names = System.IO.Directory.GetFiles(directory); string complete_file_name; string fileName_without_extension; int complete_file_names_length = complete_file_names.Length; Deg_line_class[] add_degs; for (int indexC = 0; indexC < complete_file_names_length; indexC++) { complete_file_name = complete_file_names[indexC]; fileName_without_extension = System.IO.Path.GetFileNameWithoutExtension(complete_file_name); Deg_readOptions_class readOptions = new Deg_readOptions_class(complete_file_name); add_degs = ReadWriteClass.ReadRawData_and_FillArray <Deg_line_class>(readOptions); add_degs = Add_fileName(add_degs, fileName_without_extension); Add_to_array(add_degs); } }
public async Task TwoWay_should_update_from_js_readwrite_property() { var datacontext = new ReadWriteClass(); var test = new TestInContextAsync() { Bind = (win) => Bind(win, datacontext, JavascriptBindingMode.TwoWay), Test = async(mb) => { var js = mb.JSRootObject; var newValue = 1200; var jsValue = _WebView.Factory.CreateInt(newValue); SetAttribute(js, "ReadWrite", jsValue); await Task.Delay(150); DoSafeUI(() => datacontext.ReadWrite.Should().Be(newValue)); } }; await RunAsync(test); }
public async Task TwoWay_should_update_from_csharp_readwrite_property() { var datacontext = new ReadWriteClass(); var test = new TestInContextAsync() { Bind = (win) => Bind(win, datacontext, JavascriptBindingMode.TwoWay), Test = async(mb) => { var js = mb.JSRootObject; var newValue = 550; DoSafeUI(() => datacontext.ReadWrite = newValue); await Task.Delay(150); var readOnlyValue = GetIntAttribute(js, "ReadWrite"); readOnlyValue.Should().Be(newValue); } }; await RunAsync(test); }
private void Read_mbco_associations() { MBCO_association_readOptions_class readOptions = new MBCO_association_readOptions_class(); this.MBCO_associations = ReadWriteClass.ReadRawData_and_FillArray <MBCO_association_line_class>(readOptions); }
public void Write_in_results_directory(string fileName) { Ontology_enrichment_readWriteOptions_class readWriteOptions = new Ontology_enrichment_readWriteOptions_class(fileName); ReadWriteClass.WriteData(this.Onto_enrich, readWriteOptions); }
private void Read(Custom_data_readWriteOptions_class readWriteOptions) { this.Custom_data = ReadWriteClass.ReadRawData_and_FillArray <Custom_data_line_class>(readWriteOptions); }
public void Write(string subdirectory, string file_name) { Ontology_enrich_readWriteOptions_class readWriteOptions = new Ontology_enrich_readWriteOptions_class(subdirectory, file_name); ReadWriteClass.WriteData(Enrich, readWriteOptions); }
private void Read() { Leave_out_readWriteOptions_class readWriteOptions = new Leave_out_readWriteOptions_class(); this.Leave_out_lines = ReadWriteClass.ReadRawData_and_FillArray <Leave_out_line_class>(readWriteOptions); }