*/
@Override
public List<StructureCommandI> superposeStructures(AtomSpecModel refAtoms,
- AtomSpecModel atomSpec)
+ AtomSpecModel atomSpec, boolean isNucleotide)
{
StringBuilder sb = new StringBuilder(64);
String refModel = refAtoms.getModels().iterator().next();
@Override
public List<StructureCommandI> superposeStructures(AtomSpecModel refAtoms,
- AtomSpecModel atomSpec)
+ AtomSpecModel atomSpec, boolean isNucleotide)
{
// https://pymolwiki.org/index.php/Super
List<StructureCommandI> commands = new ArrayList<>();
*
* @param refAtoms
* @param atomSpec
+ * @param isNucleotide TODO
+ * @param nucleotide - when true, superposition is based on phoshpate backbone, not peptide
* @return
*/
List<StructureCommandI> superposeStructures(AtomSpecModel refAtoms,
- AtomSpecModel atomSpec);
+ AtomSpecModel atomSpec, boolean isNucleotide);
/**
* Returns a command to open a file of commands at the given path
public String chain = "";
+ /**
+ * is the mapped sequence not protein ?
+ */
public boolean isRna;
/*
protected boolean colourBySequence = true;
+ /**
+ * true if all sequences appear to be nucleotide
+ */
private boolean nucleotide;
private boolean finishedInit = false;
structures[pdbfnum].chain = chain;
}
structures[pdbfnum].pdbId = mapping.getPdbId();
- structures[pdbfnum].isRna = theSequence.getRNA() != null;
+ structures[pdbfnum].isRna = !theSequence.isProtein();
/*
* move on to next pdb file (ignore sequences for other chains
*/
// todo better way to ensure synchronous than setting getReply true!!
executeCommands(commandGenerator.showBackbone(), true, null);
-
+
+ boolean isNucleotide = structures[refStructure].isRna;
/*
* superpose each (other) structure to the reference in turn
*/
{
AtomSpecModel atomSpec = getAtomSpec(structures[i], matched);
List<StructureCommandI> commands = commandGenerator
- .superposeStructures(refAtoms, atomSpec);
+ .superposeStructures(refAtoms, atomSpec,isNucleotide);
List<String> replies = executeCommands(commands, true, null);
for (String reply : replies)
{