import jalview.io.StructureFile;
import jalview.util.MappingUtils;
import jalview.util.MessageManager;
+import jalview.ws.phyre2.Phyre2Client;
import jalview.ws.sifts.SiftsClient;
import jalview.ws.sifts.SiftsException;
import jalview.ws.sifts.SiftsSettings;
private long progressSessionId;
+ private boolean mappingForPhyre2Model;
+
/*
* Set of any registered mappings between (dataset) sequences.
*/
}
List<StructureMapping> seqToStrucMapping = new ArrayList<StructureMapping>();
- if (isMapUsingSIFTs && seq.isProtein())
+ if (!isMappingForPhyre2Model() && isMapUsingSIFTs && seq.isProtein())
{
setProgressBar(null);
setProgressBar(MessageManager
// "IEA:Jalview" ?
maxChain.transferResidueAnnotation(nwMapping, sqmpping);
ds.addPDBId(maxChain.sequence.getAllPDBEntries().get(0));
+ } catch (Exception e)
+ {
+ e.printStackTrace();
}
}
else
} catch (SiftsException e)
{
System.err.println(e.getMessage());
+ } catch (Exception e)
+ {
+ e.printStackTrace();
}
}
if (!foundSiftsMappings.isEmpty())
}
}
}
+ else if (isMappingForPhyre2Model())
+ {
+ setProgressBar(null);
+ setProgressBar(MessageManager
+ .getString("status.obtaining_mapping_with_phyre2_template_alignment"));
+ StructureMapping phyre2ModelMapping = new Phyre2Client(pdb)
+ .getStructureMapping(seq, pdbFile, " ");
+
+ seqToStrucMapping.add(phyre2ModelMapping);
+ ds.addPDBId(maxChain.sequence.getAllPDBEntries().get(0));
+ }
else
{
setProgressBar(null);
private StructureMapping getStructureMapping(SequenceI seq,
String pdbFile, String targetChainId, StructureFile pdb,
PDBChain maxChain, jalview.datamodel.Mapping sqmpping,
- AlignSeq maxAlignseq) throws SiftsException
+ AlignSeq maxAlignseq) throws Exception
{
StructureMapping curChainMapping = siftsClient
- .getSiftsStructureMapping(seq, pdbFile, targetChainId);
+ .getStructureMapping(seq, pdbFile, targetChainId);
try
{
PDBChain chain = pdb.findChain(targetChainId);
return seqmappings;
}
+ public boolean isMappingForPhyre2Model()
+ {
+ return mappingForPhyre2Model;
+ }
+
+ public void setMappingForPhyre2Model(boolean mappingForPhyre2Model)
+ {
+ this.mappingForPhyre2Model = mappingForPhyre2Model;
+ }
+
+
}