-
/*
* Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
* Copyright (C) $$Year-Rel$$ The Jalview Authors
public class Pdb extends EbiFileRetrievedProxy
{
private static final String SEPARATOR = "|";
+
private static final String COLON = ":";
- private static final int PDB_ID_LENGTH = 4;
+ private static final int PDB_ID_LENGTH = 4;
public Pdb()
{
String ext = StructureImportSettings.getDefaultStructureFileFormat()
.equalsIgnoreCase(Type.MMCIF.toString()) ? ".cif" : ".xml";
EBIFetchClient ebi = new EBIFetchClient();
- file = ebi.fetchDataAsFile("pdb:" + id,
- StructureImportSettings.getDefaultStructureFileFormat().toLowerCase(),
- ext)
- .getAbsolutePath();
+ file = ebi.fetchDataAsFile(
+ "pdb:" + id,
+ StructureImportSettings.getDefaultStructureFileFormat()
+ .toLowerCase(), ext).getAbsolutePath();
stopQuery();
if (file == null)
{
{
// FIXME seems to result in 'PDB|1QIP|1qip|A' - 1QIP is redundant.
// TODO: suggest simplify naming to 1qip|A as default name defined
- pdbcs.setName(jalview.datamodel.DBRefSource.PDB + SEPARATOR + id
- + SEPARATOR + pdbcs.getName());
+ pdbcs.setName(jalview.datamodel.DBRefSource.PDB + SEPARATOR
+ + id + SEPARATOR + pdbcs.getName());
// Might need to add more metadata to the PDBEntry object
// like below
/*
return 0;
}
-
/**
* Returns a descriptor for suitable feature display settings with
* <ul>