Changeset 6269 for branches/clusters/SL/FAST_ALIGNER/fast_aligner.cxx
- Timestamp:
- 23/11/09 08:54:41 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/clusters/SL/FAST_ALIGNER/fast_aligner.cxx
r6141 r6269 132 132 // -------------------------------------------------------------------------------- 133 133 134 static inline GB_ERROR species_not_found(GB_CSTR species_name) { 135 return GB_export_errorf("No species '%s' found!", species_name); 136 } 137 138 static GB_ERROR reverseComplement(GBDATA *gb_species, GB_CSTR ali, int max_protection) { 134 ATTRIBUTED(__ATTR__USERESULT, 135 static inline GB_ERROR species_not_found(GB_CSTR species_name)) 136 { 137 return GBS_global_string("No species '%s' found!", species_name); 138 } 139 140 ATTRIBUTED(__ATTR__USERESULT, 141 static GB_ERROR reverseComplement(GBDATA *gb_species, GB_CSTR ali, int max_protection)) 142 { 139 143 GBDATA *gbd = GBT_read_sequence(gb_species, ali); 140 144 GB_ERROR error = 0; 141 145 142 146 if (!gbd) { 143 error = GB _export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species));147 error = GBS_global_string("No 'data' found for species '%s'", GBT_read_name(gb_species)); 144 148 } 145 149 else { … … 159 163 } 160 164 else { // protection error 161 error = GB _export_errorf("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species));165 error = GBS_global_string("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species)); 162 166 } 163 167 … … 1129 1133 } 1130 1134 else { 1131 error = GB _export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species));1135 error = GBS_global_string("No 'data' found for species '%s'", GBT_read_name(gb_species)); 1132 1136 if (dataPtr) *dataPtr = NULL; // (user must not care to free data if we fail) 1133 1137 } … … 1139 1143 } 1140 1144 1141 static GB_ERROR writeStringToAlignment(GBDATA *gb_species, GB_CSTR alignment, GB_CSTR data_name, GB_CSTR str, bool temporary) { 1145 ATTRIBUTED(__ATTR__USERESULT, 1146 static GB_ERROR writeStringToAlignment(GBDATA *gb_species, GB_CSTR alignment, GB_CSTR data_name, GB_CSTR str, bool temporary)) 1147 { 1142 1148 GBDATA *gb_ali = GB_search(gb_species, alignment, GB_DB); 1143 1149 GB_ERROR error = NULL; … … 1150 1156 } 1151 1157 else { 1152 error = GB _export_errorf("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species));1158 error = GBS_global_string("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species)); 1153 1159 } 1154 1160 … … 1498 1504 GBDATA *gbd = GBT_read_sequence(gb_toAlign, relSearch.pt_server_alignment); // use a different alignment for next relative search 1499 1505 if (!gbd) { 1500 error = GB _export_errorf("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment);1506 error = GBS_global_string("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment); 1501 1507 } 1502 1508 else { … … 2207 2213 2208 2214 if (wasNotAllowedToAlign>0) { 2209 const char *mess = GB _export_errorf("%i species were not aligned (because of protection level)", wasNotAllowedToAlign);2215 const char *mess = GBS_global_string("%i species were not aligned (because of protection level)", wasNotAllowedToAlign); 2210 2216 aw_popup_ok(mess); 2211 2217 } … … 2213 2219 if (err_count) { 2214 2220 if (error) aw_message(error); 2215 error = GB _export_errorf("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's');2221 error = GBS_global_string("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's'); 2216 2222 } 2217 2223
