牛排骨炖什么好吃| 非食健字是什么意思| 1953年是什么生肖| 兔子吃什么食物| 铅是什么| 雪莲菌泡牛奶有什么功效| 什么是正太| 十月二十七是什么星座| 凤鸾是什么意思| 什么水果对皮肤好| 罗汉肉是什么肉| 灵芝与什么相克| 贫血三项是指什么检查| 性侵是什么意思| 双侧肋膈角锐利是什么意思| 随诊什么意思| 星五行属性是什么| 什么时候减肥效果最快最好| 开光的手串有什么禁忌| 睡觉空调开什么模式| 农历六月十四是什么日子| 作息是什么意思| gp什么意思| 乳酸菌可以制作什么| 潘海利根香水什么档次| 硬膜囊前缘受压是什么意思| 耳后淋巴结肿大挂什么科| 喉咙发炎吃什么消炎药| 医院信息科是做什么| 绝非偶然是什么意思| biw医学上是什么意思| 五月是什么月| 什么是腰肌劳损| 乙肝病毒核心抗体阳性是什么意思| 阑尾炎属于什么科室| 什么枝条| 菩提子是什么| 左眼皮肿是什么原因引起的| 牛肉和什么炒最好吃| 暗里着迷什么意思| 解脲脲原体阳性吃什么药| 肺气肿是什么原因导致的| 蜱虫用什么药可以消灭| 书卷气是什么意思| 学制是什么| 91年的羊是什么命| 什么是精神分裂| 合成革是什么材质| 入职需要准备什么材料| vc是什么药| zara是什么品牌| lily是什么花| 相生相克是什么意思| 疤痕增生是什么| 盍是什么意思| 肺炎吃什么药有效| jeans什么意思| 胃隐隐作痛吃什么药| 酒后打嗝是什么原因| 甲胎蛋白是检查什么的| 喝醉是什么感觉| 夏季有什么花| 梦见自己的哥哥死了是什么意思| 为什么会落枕| 联票是什么意思| 国家为什么重视合肥| 变态反应科是看什么病的| 乙肝有抗体是显示什么结果| 6月12是什么星座| 脾大是什么原因引起的| 100聚酯纤维是什么面料| 肥波是什么品种的猫| 高血压吃什么可以降下来| 后羿射日什么意思| 胃充盈欠佳是什么意思| 肺癌有什么症状| 游手好闲是什么意思| 私募是什么| 九月二十五是什么星座| 乳腺b超挂什么科| 预防是什么意思| 新生儿ad滴剂什么时候吃最好| 怀孕有什么反应| 开瑞坦是什么药| 狮子座是什么象星座| 水苏糖是什么东西| 2007年属猪五行属什么| 斗米恩升米仇什么意思| 并蒂是什么意思| 熊猫为什么吃竹子| 口腔溃疡用什么药| 直肠壁增厚一般是什么情况| 梦见大火烧房子是什么意思| 铺天盖地的意思是什么| 镜子碎了有什么征兆吗| 各类病原体dna测定是检查什么| 鸡飞狗跳是指什么生肖| 627是什么星座| 吃什么对肝脏有好处能养肝| 牙龈出血用什么牙膏| 什么叫近视| 这是什么车| 越睡越困是什么原因| 富贵包挂什么科| 小三阳和大三阳有什么区别| 生菜为什么会苦| 惊奇地什么| 去减一笔变成什么字| 胎儿腹围偏大说明什么| 什么什么大笑| 产酸克雷伯菌属于什么菌| 怀孕的脉搏和正常脉搏有什么区别| 什么面料不容易皱| 牛大力泡酒有什么功效| 低血压低是什么原因| 崩溃是什么意思| 925银什么意思| 咽炎吃什么药好使| bb霜是什么| 2003年五行属什么| 什么异思迁| 湿毒吃什么药最有效| 玫瑰和月季有什么区别| 什么是医保| 耳朵发炎吃什么药| 双性恋是什么| 桃胶是什么| 鹿晗有什么歌| 疱疹感染是什么病| 五月是什么星座| 气短气喘吃什么药| 痛风可以喝什么酒| 眉尾长痘是什么原因| 什么澎湃| 绝眼是什么原因引起的| 曼妥思是什么糖| 类风湿性关节炎用什么药| 为什么冰箱冷藏室会结冰| 慢性萎缩性胃炎是什么意思| 什么叫佛| 女生安全期是什么时候| 脚老是抽筋是什么原因| 气短挂什么科| aug是什么意思| 肛窦炎用什么药最好| 正常人为什么会低血糖| sle是什么病| 嘴角烂是什么原因| 女人性冷淡用什么药| 尿颜色很黄是什么原因| 水准仪是测量什么的| o是什么元素| 犯了痔疮为什么老放屁| 什么是转述句| 做什么菜好吃又简单| 猪脚炖什么| essence什么意思| 知了喜欢吃什么| 做完胃镜可以吃什么| 护士一般是什么学历| 优格是什么| 脚疼挂什么科| 心肾不交失眠吃什么中成药| 腿硬邦邦的是什么原因| 肌肉拉伤挂什么科| 橙色加蓝色是什么颜色| 爬山膝盖疼是什么原因| 刚需是什么意思| 碘伏用什么可以洗掉| 一个虫一个合读什么| 什么药能治痛风| 打哈欠为什么会传染| 不作为是什么意思| 夏天喝什么| 万足读什么| lofter是什么意思| 生殖器疱疹是什么原因引起的| 痔疮吃什么药效果好| 木瓜和什么不能一起吃| 慢阻肺是什么病| 眼睛突然红了是什么原因| 孩子铅高有什么症状| 高血压为什么不能献血| ws什么意思| 什么水果对眼睛好| 巨蟹和什么星座最配对| 回族为什么姓马的多| 软科是什么意思| 人体含量最多的元素是什么| 咳嗽吃什么能治好| 农历7月15是什么节| 什么时间吃苹果最好| 得不到的永远在骚动什么意思| 膀胱冲洗用什么药| 钙片吃多了有什么副作用| 梦见发工资了是什么意思| 强回声斑块是什么意思| 阿托伐他汀治什么病| 众星捧月是什么意思| 梦见捡到很多钱是什么意思| 竟无语凝噎什么意思| 阴道骚痒是什么原因| 打新股需要什么条件| kenwood是什么牌子| 泽泻是什么| boss是什么意思| 男人吃荔枝有什么好处| 清洁度三度是什么炎症| 为什么嗓子总有痰| 什么动物冬眠| 浣碧什么时候背叛甄嬛| 体格检查是什么意思| 天上的星星是什么| 咏柳的咏是什么意思| 梦见头发白了是什么意思| 六月十五号是什么星座| 胎儿左侧侧脑室增宽的原因是什么| 老白茶是什么茶| 肺结节钙化是什么意思| 头顶发热是什么原因| 胸椎退变是什么意思| 什么什么龙什么| 卵巢多囊是什么原因造成的| 绞肠痧是什么病| 生机勃勃什么意思| 坐骨神经吃什么药效果最好| 什么人容易得帕金森| 腿疼去医院挂什么科| 螳螂吃什么东西| 西洋参吃了有什么好处| 八卦分别代表什么| 什么是基因突变| 鹿茸有什么功效| 胚根发育成什么| 低血压的人吃什么好| 乳腺囊肿和乳腺结节有什么区别| 筋膜炎有什么症状| 鸡属相和什么属相最配| 随餐服用是什么时候吃| 梦见摘丝瓜有什么预兆| 月经量减少是什么原因| 牙龈发黑是什么原因| 世界上最贵的烟是什么烟| 头疼是什么引起的| 小白兔是什么意思| 真空是什么意思| 全身发烫但不发烧是什么原因| 妊娠高血压什么症状| 男士脸黑穿什么颜色好| 三月什么星座| 圆脸适合什么发型好看| 胃酸分泌过多吃什么药| 陈小春什么星座| tdi是什么意思| 104岁属什么生肖| loa是什么胎位| 怀孕吃核桃对宝宝有什么好处| 六月种什么菜| cea检查是什么意思| 流汗太多对身体有什么危害| 龟头炎用什么| 舌边有齿痕是什么原因| 华字五行属什么| 共度良宵是什么意思| 百度
Skip to content

jewettaij/superpose3d

Repository files navigation

CircleCI codecov GitHub PyPI - Downloads PyPI - Version python-versions GitHub code size in bytes

superpose3d

Note: There is a C++ version of this repository here.

Usage

def Superpose3D(X,    # <-- Nx3 array of coords for the "frozen" point cloud
                x,    # <-- Nx3 array of coords for the "mobile" point cloud
                # ---- optional arguments: ----
                w = None,        # optional weights for the calculation of RMSD
                allow_rescale=False,   # attempt to rescale mobile point cloud?
                report_quaternion=False)      # report rotation angle and axis?

Superpose3D() takes two lists (or numpy arrays) of xyz coordinates (of the same length, N) representing two ordered sets of points ("clouds", X and x). Treating them as rigid objects, "Superpose3D()" superimposes them using rotations, translations, and (optionally) scale transformations in order to minimize the root-mean-squared-distance (RMSD) between corresponding points from either cloud, where RMSD is defined as:

...where:

   R_ij = a rotation matrix    (a 3x3 numpy array representing the rotation. |R|=1)
   T_j  = a translation vector (a 1-D numpy array containing x,y,z displacements)
    c   = a scalar             (a number. optional. 1 by default)

This function returns a 4-tuple containing the optimal values of:

   (RMSD, R, T, c)

Note: The point clouds must contain the same number of points (N).

Note: This function does not attempt to determine which pairs of points from either cloud correspond. Instead, it infers them from the order of the arrays. (It assumes that the i'th point from X corresponds to the i'th point from x.) More generally, the open3d python module supports the IPC algorithm, and works with unordered point clouds of arbitrary size. (Usage example here. Also see: link1, link2, link3, link4(protein-alignment).)

Rotation angles, axes, and quaternions

If the rotation angle and axis are needed, then set the report_quaternion argument to True. In that case, the function will return this 4-tuple instead:

   (RMSD, q, T, c)

...where q is a numpy array of size 4. The first element of q will store cos(θ/2) (where θ is the rotation angle). The remaining 3 elements of q form a vector (of length sin(θ/2)), pointing along the axis of rotation. Equivalently, q is the quaternion corresponding to rotation R.

Weighted RMSD

A weighted version of the RMSD minimization algorithm is also available if the caller supplies an extra argument specifying the weight of every point in the cloud (wn). In that case, RMSD is defined as:

Algorithm

This function implements a more general variant of the method from this paper: R. Diamond, (1988) "A Note on the Rotational Superposition Problem", Acta Cryst. A44, pp. 211-216.

Scale transformations

This version has been augmented slightly to support scale transformations. (I.E. multiplication by scalars. This can be useful for the registration of two different annotated volumetric 3-D images of the same object taken at different magnifications.)

Note that if you enable scale transformations (i.e. if allow_rescale=True), you should be wary if the function returns a negative c value. Negative c values correspond to inversions (reflections). For this reason, if you are using this function to compare the conformations of molecules, you should probably set allow_rescale=False. This will prevent matching a molecule with its stereoenantiomer.

Installation using pip

pip install .

Later, you can uninstall superpose3d using:

pip uninstall superpose3d

Requirements

superpose3d depends on numpy

License

superpose3d is available under the terms of the MIT license.

三尖瓣少量反流是什么意思 为什么长痱子 黄色加红色是什么颜色 盐酸利多卡因注射作用是什么 背上长痘痘是什么原因
海盐是什么盐 什么蔬菜含维生素d 什么耳机比较好 什么是试管婴儿 女人是什么动物
半套是什么意思 92是什么 牙齿根管治疗是什么意思 无量寿佛是什么意思 先心病是什么病
非洲有什么动物 看不上是什么意思 阿托伐他汀钙片治什么病 长期失眠看什么科最好 什么是18k金
天花是什么hcv8jop1ns2r.cn 乳房疼痛什么原因hcv8jop8ns1r.cn 瘦脱相是什么意思hcv7jop9ns5r.cn 水弹是什么材料hcv8jop1ns3r.cn 梦见掉头发是什么意思bysq.com
手上长毛是什么原因hcv8jop0ns9r.cn 脾脏结节一般是什么病hcv8jop2ns0r.cn 一带一路指的是什么hcv8jop9ns2r.cn 什么辕什么辙hcv8jop6ns3r.cn 喝什么睡眠效果最好hcv9jop1ns0r.cn
令郎是什么意思hcv8jop7ns6r.cn 武警是干什么的hcv7jop6ns9r.cn 牙垢是什么hcv9jop6ns5r.cn 查微量元素挂什么科hcv8jop8ns5r.cn 鳖孙是什么意思hcv9jop1ns7r.cn
1988是什么年hcv8jop8ns9r.cn 查胃病做什么检查合适hcv7jop7ns2r.cn 为什么拉屎会有血hcv8jop3ns6r.cn 贵格是什么意思hcv7jop6ns0r.cn 什么网站可以看黄色视频hcv8jop1ns1r.cn
百度