import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Set;
HashSet<String> srcs = new HashSet<String>();
for (String src : sources)
{
- srcs.add(src);
+ srcs.add(src.toUpperCase());
}
List<DBRefEntry> res = new ArrayList<DBRefEntry>();
for (DBRefEntry dbr : dbrefs)
{
String source = getCanonicalName(dbr.getSource());
- if (srcs.contains(source))
+ if (srcs.contains(source.toUpperCase()))
{
res.add(dbr);
}
PDBEntry pdbr = new PDBEntry();
pdbr.setId(pdbid);
pdbr.setType(PDBEntry.Type.PDB);
- pdbr.setProperty(new Hashtable());
pdbr.setChainCode(chaincode);
- // pdbr.getProperty().put("CHAIN", chaincode);
seq.addPDBId(pdbr);
}
else
* sequences if they have an appropriate primary ref
* <table>
* <tr>
- * <td>Seq Type</td>
- * <td>Primary DB</td>
- * <td>Direct which will be promoted</td>
+ * <th>Seq Type</th>
+ * <th>Primary DB</th>
+ * <th>Direct which will be promoted</th>
* </tr>
- * <tr>
+ * <tr align=center>
* <td>peptides</td>
* <td>Ensembl</td>
* <td>Uniprot</td>
* </tr>
- * <tr>
+ * <tr align=center>
* <td>peptides</td>
* <td>Ensembl</td>
* <td>Uniprot</td>
* </tr>
- * <tr>
+ * <tr align=center>
* <td>dna</td>
* <td>Ensembl</td>
* <td>ENA</td>