- Timestamp:
- 07/08/20 13:12:16 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genoconv.cpp
r972 r981 159 159 if (Geno::formatIsOneOf(in.getFormat(), format_list)) 160 160 { 161 if (converter_missing) *converter_missing = false; return in; 161 if (converter_missing) *converter_missing = false; 162 return in; 162 163 } 163 164 GenoConverter *path[10]; 164 165 int dep; 165 166 GenoConverter **ret; 166 if (in.isInvalid()) { if (converter_missing) *converter_missing = false; return Geno("", Geno::INVALID_FORMAT, "", "invalid genotype cannot be converted"); } 167 if (in.isInvalid()) 168 { 169 if (converter_missing) *converter_missing = false; 170 return Geno("", Geno::INVALID_FORMAT, "", "Invalid genotype cannot be converted"); 171 } 167 172 int mapavail; 168 173 for (dep = 1; dep < (int)sizeof(path); dep++) //iterative deepening 169 174 if (ret = getPath(in.getFormat(), format_list, path, dep, &mapavail)) break; 170 if (!ret) { if (converter_missing) *converter_missing = true; return Geno("", Geno::INVALID_FORMAT, "", "converter not found"); } 175 if (!ret) 176 { 177 if (converter_missing) *converter_missing = true; 178 return Geno("", Geno::INVALID_FORMAT, "", "Converter not found"); 179 } 171 180 if (converter_missing) *converter_missing = false; 172 181 if (!map) mapavail = 0;
Note: See TracChangeset
for help on using the changeset viewer.