*/
package jalview.gui.structurechooser;
-import java.util.Locale;
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
+import java.util.Locale;
import jalview.datamodel.SequenceI;
import jalview.fts.api.FTSData;
*/
private static List<String> EXP_CATEGORIES = Arrays
.asList(new String[]
- { "EXPERIMENTALLY DETERMINED", "DEEP-LEARNING", "TEMPLATE-BASED",
- "AB-INITIO", "CONFORMATIONAL ENSEMBLE" });
+ { "EXPERIMENTALLY DETERMINED", "DEEP-LEARNING", "AB-INITIO",
+ "TEMPLATE-BASED", "CONFORMATIONAL ENSEMBLE" });
private SequenceI seq;
int o2_xtent = o2_e - o2_s;
if (o1_xtent == o2_xtent)
{
+ // EXPERIMENTAL DATA ALWAYS TRUMPS MODELS
if (o1_cat == scoreCategory(EXP_CATEGORIES.get(0)))
{
if (o1_prov.equals(o2_prov))
}
else
{
+ // if both are not experimental, then favour alphafold
+ if (o2_cat > 0 && o1_cat > 0)
+ {
+ return "ALPHAFOLD DB".equals(o1_prov) ? -1
+ : "ALPHAFOLD DB".equals(o2_prov) ? 1 : 0;
+ }
return o2_cat - o1_cat;
}
}