Protein.Chain.centroid: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/protein.bend as Protein Lines 144-147 of bend-prot@0.1.0.0/protein.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/protein.bend&start_line=144&end_line=147 import Base import bend-prot@0.1.0.0/geom.bend as G def Chain.centroid(c: Chain) -> G.Vec3: match c: case Chain{cid, residues}: centroid_of_sum(sum_count_atoms(flatten_residues(residues))) Uses (5): https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/geom.bend&name=Vec3 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Chain https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=centroid_of_sum https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=flatten_residues https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=sum_count_atoms