private long progressSessionId;
- private boolean mappingForPhyre2Model;
/*
* Set of any registered mappings between (dataset) sequences.
private List<SelectionListener> sel_listeners = new ArrayList<SelectionListener>();
+ private List<String> phyre2ModelTemplates = new ArrayList<String>();
+
/**
* @return true if will try to use external services for processing secondary
* structure
{
pdbFile = "INLINE" + pdb.getId();
}
-
+ boolean phyre2Template = isPhyre2Template(pdbFile);
List<StructureMapping> seqToStrucMapping = new ArrayList<StructureMapping>();
- if (!isMappingForPhyre2Model() && isMapUsingSIFTs && seq.isProtein())
+ if (!phyre2Template && isMapUsingSIFTs && seq.isProtein())
{
if (progress!=null) {
progress.setProgressBar(MessageManager
}
}
}
- else if (isMappingForPhyre2Model())
+ else if (phyre2Template)
{
setProgressBar(null);
setProgressBar(MessageManager
return pdb;
}
- private boolean isCIFFile(String filename)
+ public void registerPhyre2Template(String phyre2Template)
{
- String fileExt = filename.substring(filename.lastIndexOf(".") + 1,
- filename.length());
- return "cif".equalsIgnoreCase(fileExt);
+ phyre2ModelTemplates.add(phyre2Template);
}
/**
return seqmappings;
}
- public boolean isMappingForPhyre2Model()
+ public boolean isPhyre2Template(String structureFile)
{
- return mappingForPhyre2Model;
+ if (structureFile == null || phyre2ModelTemplates == null
+ || phyre2ModelTemplates.isEmpty())
+ {
+ return false;
+ }
+ return (phyre2ModelTemplates.contains(structureFile));
}
- public void setMappingForPhyre2Model(boolean mappingForPhyre2Model)
- {
- this.mappingForPhyre2Model = mappingForPhyre2Model;
- }
public static StructureSelectionManager getStructureSelectionManager()
{