Simplifying function

This commit is contained in:
Russ Taylor
2026-02-26 17:31:27 -05:00
parent 15eef7b688
commit 77f756dfe0

View File

@@ -110,16 +110,6 @@ export const KinemageDataProvider: CustomStructureProperty.Provider<KinemageData
});
function isApplicable(structure: Structure) {
if (!structure.isAtomic) return false;
for (const model of structure.models) {
const { byEntityKey } = model.sequence;
for (const key of Object.keys(byEntityKey)) {
const { kind, length } = byEntityKey[+key].sequence;
if (kind !== 'protein') continue; // can only process protein chains
if (length >= 15) return true; // short peptides might fail
}
}
return false;
}