| 82 | } |
| 83 | |
| 84 | void MzTabFile::load(const String& filename, MzTab& mz_tab) |
| 85 | { |
| 86 | TextFile tf(filename, true); |
| 87 | |
| 88 | MzTabMetaData mz_tab_metadata; |
| 89 | MzTabProteinSectionRows mz_tab_protein_section_data; |
| 90 | MzTabPeptideSectionRows mz_tab_peptide_section_data; |
| 91 | MzTabPSMSectionRows mz_tab_psm_section_data; |
| 92 | MzTabSmallMoleculeSectionRows mz_tab_small_molecule_section_data; |
| 93 | map<Size, String> comment_rows; |
| 94 | vector<Size> empty_rows; |
| 95 | |
| 96 | map<String, Size> protein_custom_opt_columns; // map column name to original column index |
| 97 | map<String, Size> peptide_custom_opt_columns; |
| 98 | map<String, Size> psm_custom_opt_columns; |
| 99 | map<String, Size> smallmolecule_custom_opt_columns; |
| 100 | |
| 101 | Size count_study_variable_description = 0; |
| 102 | Size count_ms_run_location = 0; |
| 103 | |
| 104 | // protein section column information |
| 105 | Size protein_accession_index = 0; |
| 106 | Size protein_description_index = 0; |
| 107 | Size protein_taxid_index = 0; |
| 108 | Size protein_species_index = 0; |
| 109 | Size protein_database_index = 0; |
| 110 | Size protein_database_version_index = 0; |
| 111 | Size protein_search_engine_index = 0; |
| 112 | map<Size, Size> protein_best_search_engine_score_to_column_index; // score number to column index |
| 113 | map<Size, std::pair<Size, Size> > protein_column_index_to_score_runs_pair; // map column of the protein section to a search_engine_score[index1]_ms_run[index] index pair |
| 114 | Size protein_reliability_index = 0; |
| 115 | map<Size, Size> protein_num_psms_ms_run_indices; |
| 116 | map<Size, Size> protein_num_peptides_distinct_ms_run_indices; |
| 117 | map<Size, Size> protein_num_peptides_unique_ms_run_indices; |
| 118 | Size protein_ambiguity_members_index = 0; |
| 119 | Size protein_modifications_index = 0; |
| 120 | Size protein_uri_index = 0; |
| 121 | Size protein_go_terms_index = 0; |
| 122 | Size protein_coverage_index = 0; |
| 123 | map<Size, Size> protein_abundance_assay_indices; |
| 124 | map<Size, Size> protein_abundance_study_variable_to_column_indices; |
| 125 | map<Size, Size> protein_abundance_stdev_study_variable_to_column_indices; |
| 126 | map<Size, Size> protein_abundance_std_error_study_variable_to_column_indices; |
| 127 | |
| 128 | // peptide section column information |
| 129 | Size peptide_sequence_index = 0; |
| 130 | Size peptide_accession_index = 0; |
| 131 | Size peptide_unique_index = 0; |
| 132 | Size peptide_database_index = 0; |
| 133 | Size peptide_database_version_index = 0; |
| 134 | Size peptide_search_engine_index = 0; |
| 135 | map<Size, Size> peptide_best_search_engine_score_to_column_index; |
| 136 | map<Size, std::pair<Size, Size> > peptide_column_index_to_score_runs_pair; // map column of the peptide section to a search_engine_score[index1]_ms_run[index] index pair |
| 137 | Size peptide_reliability_index = 0; |
| 138 | Size peptide_modifications_index = 0; |
| 139 | Size peptide_retention_time_index = 0; |
| 140 | Size peptide_retention_time_window_index = 0; |
| 141 | Size peptide_charge_index = 0; |
nothing calls this directly
no test coverage detected