if (false)
// see JAL-623 - need method of matching pasted data up
{
+ // ALSO need to use the PDBEntry based setMapping method to pass in other metadata
pdb = getSsm().setMapping(getSequence()[pe], getChains()[pe],
pdbfile, DataSourceType.PASTE, getIProgressIndicator());
getPdbEntry(modelnum).setFile("INLINE" + pdb.getId());
{
}
// Explicitly map to the filename used by Jmol ;
- pdb = getSsm().setMapping(getSequence()[pe], getChains()[pe],
- fileName, protocol, getIProgressIndicator());
+ pdb = getSsm().setMapping(true,getSequence()[pe], getPdbEntry(pe), getChains()[pe],
+ getIProgressIndicator());
// pdbentry[pe].getFile(), protocol);
}
}
// Explicitly map to the filename used by Chimera ;
- pdb = jmb.getSsm().setMapping(jmb.getSequence()[pos],
- jmb.getChains()[pos], pe.getFile(), protocol,
+ pdb = jmb.getSsm().setMapping(true, jmb.getSequence()[pos], pe,
+ jmb.getChains()[pos],
getProgressIndicator());
jmb.stashFoundChains(pdb, pe.getFile());
}
else
{
- pdb = binding.getSsm().setMapping(binding.getSequence()[pos],
- binding.getChains()[pos], pe.getFile(), protocol,
+ pdb = binding.getSsm().setMapping(true,binding.getSequence()[pos],
+ pe,binding.getChains()[pos],
getProgressIndicator());
}
binding.stashFoundChains(pdb, pe.getFile());
}
/**
+ * import / map chain using metadata from a PDBEntry object
+ * @param forStructureView
+ * @param sequenceArray
+ * @param pdbEntry
+ * @param targetChainIds
+ * @return
+ */
+ synchronized public StructureFile setMapping(boolean forStructureView,
+ SequenceI[] sequenceArray, PDBEntry pdbEntry, String[] targetChainIds, IProgressIndicator progress)
+ {
+ return computeMapping(forStructureView, sequenceArray, targetChainIds,
+ pdbEntry.getFile(), pdbEntry.getProtocol(), progress, pdbEntry.getTempFacTypeTFType(), pdbEntry.getPAEFile(), true);
+ }
+ /**
+ * import / map chain using metadata from a PDBEntry object
+ * @param forStructureView
+ * @param sequenceArray
+ * @param pdbEntry
+ * @param targetChainIds
+ * @return
+ */
+ synchronized public StructureFile setMapping(boolean forStructureView,
+ SequenceI[] sequenceArray, PDBEntry pdbEntry, String[] targetChainIds)
+ {
+ return computeMapping(forStructureView, sequenceArray, targetChainIds,
+ pdbEntry.getFile(), pdbEntry.getProtocol(), null, pdbEntry.getTempFacTypeTFType(), pdbEntry.getPAEFile(), true);
+ }
+
+ /**
* create sequence structure mappings between each sequence and the given
* pdbFile (retrieved via the given protocol). Either constructs a mapping
* using NW alignment or derives one from any available SIFTS mapping data.