Skip to content
Snippets Groups Projects
Commit 0a074c8a authored by Alexander Rose's avatar Alexander Rose
Browse files

add modelNum to location labels

parent 8b314ebb
Branches
Tags
No related merge requests found
......@@ -85,9 +85,10 @@ export function linkLabel(link: Link.Location) {
export type LabelGranularity = 'element' | 'residue' | 'chain' | 'structure'
export function elementLabel(location: StructureElement.Location, granularity: LabelGranularity = 'element') {
const model = location.unit.model.entry
const entry = location.unit.model.entry
const model = `Model ${location.unit.model.modelNum}`
const instance = location.unit.conformation.operator.name
const label = [model, instance]
const label = [entry, model, instance]
if (Unit.isAtomic(location.unit)) {
label.push(atomicElementLabel(location as StructureElement.Location<Unit.Atomic>, granularity))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment