• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python standardize.standardize_smiles函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中molvs.standardize.standardize_smiles函数的典型用法代码示例。如果您正苦于以下问题:Python standardize_smiles函数的具体用法?Python standardize_smiles怎么用?Python standardize_smiles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了standardize_smiles函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_pyrimidone_charge_recombination

def test_pyrimidone_charge_recombination():
    """Recombine aromatic 1,3-separated charges to form pyrimidone."""
    eq_(standardize_smiles("[O-]c1[n+](C)cccc1"), "Cn1ccccc1=O")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例2: test_nitro_normalization

def test_nitro_normalization():
    """Normalize nitro group."""
    eq_(standardize_smiles("C1(=CC=CC=C1)[N+](=O)[O-]"), "O=[N+]([O-])c1ccccc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例3: test_nitro_normalization5

def test_nitro_normalization5():
    """Normalize nitro group."""
    eq_(standardize_smiles("O[N+](=O)[O-]"), "O=[N+]([O-])O")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例4: test_disconnect_metal3

def test_disconnect_metal3():
    """Disconnect Pt in metal complex."""
    eq_(standardize_smiles("[Pt](Cl)(Cl)(O)(O)(NC(C)C)NC(C)C"), "[OH-].[OH-].[Cl-].[Cl-].[Pt+6].CC(C)[NH-].CC(C)[NH-]")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例5: test_disconnect_metal5

def test_disconnect_metal5():
    """Silver carbonate. Unsure about this one."""
    eq_(standardize_smiles("[Ag]OC(=O)O[Ag]"), "[Ag+].[Ag+].O=C([O-])[O-]")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例6: test_disconnect_metal6

def test_disconnect_metal6():
    """"""
    eq_(standardize_smiles("C1(CCCCC1)[Zn]Br"), "[Zn+2].[Br-].[CH-]1CCCCC1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例7: test_disconnect_metal

def test_disconnect_metal():
    """Break metal-organic covalent bonds."""
    eq_(standardize_smiles("[Na]OC(=O)c1ccccc1"), "[Na+].O=C([O-])c1ccccc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例8: test_charge_to_protonated_atom6

def test_charge_to_protonated_atom6():
    """Shift positive charge from nonprotonated to protonated atom."""
    eq_(standardize_smiles("[nH]1ccc(=[N+](C)C)cc1"), "CN(C)c1cc[nH+]cc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例9: test_charge_to_protonated_atom7

def test_charge_to_protonated_atom7():
    """Shift positive charge from nonprotonated to protonated atom."""
    eq_(standardize_smiles("CNc1cc[n+](C)cc1"), "C[NH+]=c1ccn(C)cc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例10: test_1_5_aromatic_charge_recombination2

def test_1_5_aromatic_charge_recombination2():
    """Recombine aromatic 1,5-separated charges."""
    eq_(standardize_smiles("C[n+]1ccc([N-]C)cc1"), "CN=c1ccn(C)cc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例11: test_aromaticity2

def test_aromaticity2():
    """Both rings should be aromatic."""
    eq_(standardize_smiles("C[N]1C=NC2=C1C(=O)N(C)C(=O)N2C"), "Cn1cnc2c1c(=O)n(C)c(=O)n2C")
    eq_(standardize_smiles("Cn1cnc2c1c(=O)n(C)c(=O)n2C"), "Cn1cnc2c1c(=O)n(C)c(=O)n2C")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:4,代码来源:test_standardize.py


示例12: test_1_5_aromatic_charge_recombination

def test_1_5_aromatic_charge_recombination():
    """Recombine aromatic 1,5-separated charges."""
    eq_(standardize_smiles("[n-]1ccc(=[N+](C)C)cc1"), "CN(C)c1ccncc1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例13: test_1_5_nonaromatic_charge_recombination

def test_1_5_nonaromatic_charge_recombination():
    """Recombine non-aromatic 1,5-separated charges."""
    eq_(standardize_smiles("C[N-]C=CC=[N+](C)C"), "CN=CC=CN(C)C")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例14: test_pyrimidone_charge_recombination2

def test_pyrimidone_charge_recombination2():
    """Recombine aromatic 1,3-separated charges to form pyrimidone."""
    eq_(
        standardize_smiles("COc1cc2ccc3c4c(OC)cc(OC)c(OC)c4c([O-])[n+](C)c3c2cc1OC"),
        "COc1cc2ccc3c4c(OC)cc(OC)c(OC)c4c(=O)n(C)c3c2cc1OC",
    )
开发者ID:gitter-badger,项目名称:MolVS,代码行数:6,代码来源:test_standardize.py


示例15: test_charge_preservation2

def test_charge_preservation2():
    """"""
    eq_(standardize_smiles("[Cl-].C[NH+](C)C"), "[Cl-].C[NH+](C)C")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例16: test_charge_to_protonated_atom8

def test_charge_to_protonated_atom8():
    """Shift positive charge from nonprotonated to protonated atom."""
    eq_(standardize_smiles("C[n+]1ccc2[nH]ccc2c1"), "Cn1ccc2[nH+]ccc-2c1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例17: test_aromaticity3

def test_aromaticity3():
    """Redo incorrect aromatization."""
    eq_(standardize_smiles("C=Cc1ccc2c(c1)NC(=O)/C/2=C\\c1ccc[nH]1"), "C=Cc1ccc2c(c1)NC(=O)/C2=C\\c1ccc[nH]1")
    eq_(standardize_smiles("C=Cc1ccc2c(c1)[nH]c(=O)/c/2=C\\c1ccc[nH]1"), "C=Cc1ccc2c(c1)NC(=O)/C2=C\\c1ccc[nH]1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:4,代码来源:test_standardize.py


示例18: test_charge_to_protonated_atom9

def test_charge_to_protonated_atom9():
    """Shift positive charge from nonprotonated to protonated atom."""
    eq_(standardize_smiles("CNC=CC=[N+](C)C"), "C[NH+]=CC=CN(C)C")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例19: test_stereochemistry

def test_stereochemistry():
    """Check stereochemistry is correctly perceived."""
    eq_(standardize_smiles("Cl\\C=C/Cl"), "Cl/C=C\\Cl")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py


示例20: test_transform_maintains_ring

def test_transform_maintains_ring():
    """Ensure no transforms inadvertently breaks open rings."""
    eq_(standardize_smiles("[nH]1ccc2cccc[n+]12"), "c1cc2ccccn2[nH+]1")
开发者ID:gitter-badger,项目名称:MolVS,代码行数:3,代码来源:test_standardize.py



注:本文中的molvs.standardize.standardize_smiles函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python builtins.b函数代码示例发布时间:2022-05-27
下一篇:
Python standardize.enumerate_tautomers_smiles函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap