📄 smartsqueryvisitortest.java
字号:
visit("[OX2H][CX3]=[OX1]"); } public void testPattern105() throws Exception { visit("[OX2H]P"); } public void testPattern106() throws Exception { visit("[OX2H][#6X3]=[#6]"); } public void testPattern107() throws Exception { visit("[OX2H][cX3]:[c]"); } public void testPattern108() throws Exception { visit("[OX2H][$(C=C),$(cc)]"); } public void testPattern109() throws Exception { visit("[$([OH]-*=[!#6])]"); } public void testPattern110() throws Exception { visit("[OX2,OX1-][OX2,OX1-]"); } public void testPattern111() throws Exception { // Phosphoric_acid groups. visit("[$(P(=[OX1])([$([OX2H]),$([OX1-]),$([OX2]P)])([$([OX2H]),$([OX1-]),$([OX2]P)])[$([OX2H]),$([OX1-]),$([OX2]P)]),$([P+]([OX1-])([$([OX" + "2H]),$([OX1-]),$([OX2]P)])([$([OX2H]),$([OX1-]),$([OX2]P)])[$([OX2H]),$([OX1-]),$([OX2]P)])]"); } public void testPattern112() throws Exception { // Phosphoric_ester groups. visit("[$(P(=[OX1])([OX2][#6])([$([OX2H]),$([OX1-]),$([OX2][#6])])[$([OX2H]),$([OX1-]),$([OX2][#6]),$([OX2]P)]),$([P+]([OX1-])([OX2][#6])([" + "$([OX2H]),$([OX1-]),$([OX2][#6])])[$([OX2H]),$([OX1-]),$([OX2][#6]),$([OX2]P)])]"); } public void testPattern113() throws Exception { visit("[S-][CX3](=S)[#6]"); } public void testPattern114() throws Exception { visit("[#6X3](=[SX1])([!N])[!N]"); } public void testPattern115() throws Exception { visit("[SX2]"); } public void testPattern116() throws Exception { visit("[#16X2H]"); } public void testPattern117() throws Exception { visit("[#16!H0]"); } public void testPattern118() throws Exception { visit("[NX3][CX3]=[SX1]"); } public void testPattern119() throws Exception { visit("[#16X2H0]"); } public void testPattern120() throws Exception { visit("[#16X2H0][!#16]"); } public void testPattern121() throws Exception { visit("[#16X2H0][#16X2H0]"); } public void testPattern122() throws Exception { visit("[#16X2H0][!#16].[#16X2H0][!#16]"); } public void testPattern123() throws Exception { visit("[$([#16X3](=[OX1])[OX2H0]),$([#16X3+]([OX1-])[OX2H0])]"); } public void testPattern124() throws Exception { visit("[$([#16X3](=[OX1])[OX2H,OX1H0-]),$([#16X3+]([OX1-])[OX2H,OX1H0-])]"); } public void testPattern125() throws Exception { visit("[$([#16X4](=[OX1])=[OX1]),$([#16X4+2]([OX1-])[OX1-])]"); } public void testPattern126() throws Exception { visit("[$([#16X4](=[OX1])(=[OX1])([#6])[#6]),$([#16X4+2]([OX1-])([OX1-])([#6])[#6])]"); } public void testPattern127() throws Exception { visit("[$([#16X4](=[OX1])(=[OX1])([#6])[OX2H,OX1H0-]),$([#16X4+2]([OX1-])([OX1-])([#6])[OX2H,OX1H0-])]"); } public void testPattern128() throws Exception { visit("[$([#16X4](=[OX1])(=[OX1])([#6])[OX2H0]),$([#16X4+2]([OX1-])([OX1-])([#6])[OX2H0])]"); } public void testPattern129() throws Exception { visit("[$([#16X4]([NX3])(=[OX1])(=[OX1])[#6]),$([#16X4+2]([NX3])([OX1-])([OX1-])[#6])]"); } public void testPattern130() throws Exception { visit("[SX4](C)(C)(=O)=N"); } public void testPattern131() throws Exception { visit("[$([SX4](=[OX1])(=[OX1])([!O])[NX3]),$([SX4+2]([OX1-])([OX1-])([!O])[NX3])]"); } public void testPattern132() throws Exception { visit("[$([#16X3]=[OX1]),$([#16X3+][OX1-])]"); } public void testPattern133() throws Exception { visit("[$([#16X3](=[OX1])([#6])[#6]),$([#16X3+]([OX1-])([#6])[#6])]"); } public void testPattern134() throws Exception { visit("[$([#16X4](=[OX1])(=[OX1])([OX2H,OX1H0-])[OX2][#6]),$([#16X4+2]([OX1-])([OX1-])([OX2H,OX1H0-])[OX2][#6])]"); } public void testPattern135() throws Exception { visit("[$([SX4](=O)(=O)(O)O),$([SX4+2]([O-])([O-])(O)O)]"); } public void testPattern136() throws Exception { visit("[$([#16X4](=[OX1])(=[OX1])([OX2][#6])[OX2][#6]),$([#16X4](=[OX1])(=[OX1])([OX2][#6])[OX2][#6])]"); } public void testPattern137() throws Exception { visit("[$([#16X4]([NX3])(=[OX1])(=[OX1])[OX2][#6]),$([#16X4+2]([NX3])([OX1-])([OX1-])[OX2][#6])]"); } public void testPattern138() throws Exception { visit("[$([#16X4]([NX3])(=[OX1])(=[OX1])[OX2H,OX1H0-]),$([#16X4+2]([NX3])([OX1-])([OX1-])[OX2H,OX1H0-])]"); } public void testPattern139() throws Exception { visit("[#16X2][OX2H,OX1H0-]"); } public void testPattern140() throws Exception { visit("[#16X2][OX2H0]"); } public void testPattern141() throws Exception { visit("[#6][F,Cl,Br,I]"); } public void testPattern142() throws Exception { visit("[F,Cl,Br,I]"); } public void testPattern143() throws Exception { visit("[F,Cl,Br,I].[F,Cl,Br,I].[F,Cl,Br,I]"); } public void testPattern144() throws Exception { visit("[CX3](=[OX1])[F,Cl,Br,I]"); } public void testPattern145() throws Exception { visit("[$([#6X4@](*)(*)(*)*),$([#6X4@H](*)(*)*)]"); } public void testPattern146() throws Exception { visit("[$([cX2+](:*):*)]"); } public void testPattern147() throws Exception { visit("[$([cX3](:*):*),$([cX2+](:*):*)]"); } public void testPattern148() throws Exception { visit("[$([cX3](:*):*),$([cX2+](:*):*),$([CX3]=*),$([CX2+]=*)]"); } public void testPattern149() throws Exception { visit("[$([nX3](:*):*),$([nX2](:*):*),$([#7X2]=*),$([NX3](=*)=*),$([#7X3+](-*)=*),$([#7X3+H]=*)]"); } public void testPattern150() throws Exception { visit("[$([#1X1][$([nX3](:*):*),$([nX2](:*):*),$([#7X2]=*),$([NX3](=*)=*),$([#7X3+](-*)=*),$([#7X3+H]=*)])]"); } public void testPattern151() throws Exception { visit("[$([NX4+]),$([NX3]);!$(*=*)&!$(*:*)]"); } public void testPattern152() throws Exception { visit("[$([#1X1][$([NX4+]),$([NX3]);!$(*=*)&!$(*:*)])]"); } public void testPattern153() throws Exception { visit("[$([$([NX3]=O),$([NX3+][O-])])]"); } public void testPattern154() throws Exception { visit("[$([$([NX4]=O),$([NX4+][O-])])]"); } public void testPattern155() throws Exception { visit("[$([$([NX4]=O),$([NX4+][O-,#0])])]"); } public void testPattern156() throws Exception { visit("[$([NX4+]),$([NX4]=*)]"); } public void testPattern157() throws Exception { visit("[$([SX3]=N)]"); } public void testPattern158() throws Exception { visit("[$([SX1]=[#6])]"); } public void testPattern159() throws Exception { visit("[$([NX1]#*)]"); } public void testPattern160() throws Exception { visit("[$([OX2])]"); } public void testPattern161() throws Exception { visit("[R0;D2][R0;D2][R0;D2][R0;D2]"); } public void testPattern162() throws Exception { visit("[R0;D2]~[R0;D2]~[R0;D2]~[R0;D2]"); } public void testPattern163() throws Exception { visit("[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]~[AR0]"); } public void testPattern164() throws Exception { visit("[!$([#6+0]);!$(C(F)(F)F);!$(c(:[!c]):[!c])!$([#6]=,#[!#6])]"); } public void testPattern165() throws Exception { visit("[$([#6+0]);!$(C(F)(F)F);!$(c(:[!c]):[!c])!$([#6]=,#[!#6])]"); } public void testPattern166() throws Exception { visit("[$([SX1]~P)]"); } public void testPattern167() throws Exception { visit("[$([NX3]C=N)]"); } public void testPattern168() throws Exception { visit("[$([NX3]N=C)]"); } public void testPattern169() throws Exception { visit("[$([NX3]N=N)]"); } public void testPattern170() throws Exception { visit("[$([OX2]C=N)]"); } public void testPattern171() throws Exception { visit("[!$(*#*)&!D1]-!@[!$(*#*)&!D1]"); } public void testPattern172() throws Exception { visit("[$([*R2]([*R])([*R])([*R]))].[$([*R2]([*R])([*R])([*R]))]"); } public void testPattern173() throws Exception { visit("*-!:aa-!:*"); } public void testPattern174() throws Exception { visit("*-!:aaa-!:*"); } public void testPattern175() throws Exception { visit("*-!:aaaa-!:*"); } public void testPattern176() throws Exception { visit("*-!@*"); } public void testPattern177() throws Exception { // CIS or TRANS double or aromatic bond in a ring visit("*/,\\[R]=,:;@[R]/,\\*"); } public void testPattern178() throws Exception { // Fused benzene rings visit("c12ccccc1cccc2"); } public void testPattern179() throws Exception { visit("[r;!r3;!r4;!r5;!r6;!r7]"); } public void testPattern180() throws Exception { visit("[sX2r5]"); } public void testPattern181() throws Exception { visit("[oX2r5]"); } public void testPattern182() throws Exception { // Unfused benzene ring visit("[cR1]1[cR1][cR1][cR1][cR1][cR1]1"); } public void testPattern183() throws Exception { // Multiple non-fused benzene rings visit("[cR1]1[cR1][cR1][cR1][cR1][cR1]1.[cR1]1[cR1][cR1][cR1][cR1][cR1]1"); } public void testPattern184() throws Exception { // Generic amino acid: low specificity. visit("[NX3,NX4+][CX4H]([*])[CX3](=[OX1])[O,N]"); } public void testPattern185() throws Exception { //Template for 20 standard a.a.s visit("[$([$([NX3H,NX4H2+]),$([NX3](C)(C)(C))]1[CX4H]([CH2][CH2][CH2]1)[CX3](=[OX1])[OX2H,OX1-,N])," + "$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX" + "4H2][CX3](=[OX1])[OX2H,OX1-,N]),$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H]([*])[CX3](=[OX1])[OX2H,OX1-,N])]"); } public void testPattern186() throws Exception { // Proline visit("[$([NX3H,NX4H2+]),$([NX3](C)(C)(C))]1[CX4H]([CH2][CH2][CH2]1)[CX3](=[OX1])[OX2H,OX1-,N]"); } public void testPattern187() throws Exception { // Glycine visit("[$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H2][CX3](=[OX1])[OX2H,OX1-,N])]"); } public void testPattern188() throws Exception { // Alanine visit("[$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H]([CH3X4])[CX3](=[OX1])[OX2H,OX1-,N]"); } public void testPattern189() throws Exception { //18_standard_aa_side_chains. visit("([$([CH3X4]),$([CH2X4][CH2X4][CH2X4][NHX3][CH0X3](=[NH2X3+,NHX2+0])[NH2X3])," + "$([CH2X4][CX3](=[OX1])[NX3H2]),$([CH2X4][CX3](=[OX1])[OH0-,OH])," + "$([CH2X4][SX2H,SX1H0-]),$([CH2X4][CH2X4][CX3](=[OX1])[OH0-,OH])," + "$([CH2X4][#6X3]1:[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H]),$([#7X3H])]:" + "[#6X3H]:[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H]),$([#7X3H])]:[#6X3H]1)," + "$([CHX4]([CH3X4])[CH2X4][CH3X4]),$([CH2X4][CHX4]([CH3X4])[CH3X4])," + "$([CH2X4][CH2X4][CH2X4][CH2X4][NX4+,NX3+0]),$([CH2X4][CH2X4][SX2][CH3X4])," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3H][cX3H][cX3H]1),$([CH2X4][OX2H])," + "$([CHX4]([CH3X4])[OX2H]),$([CH2X4][cX3]1[cX3H][nX3H][cX3]2[cX3H][cX3H][cX3H][cX3H][cX3]12)," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3]([OHX2,OH0X1-])[cX3H][cX3H]1),$([CHX4]([CH3X4])[CH3X4])])"); } public void testPattern190() throws Exception { // N in Any_standard_amino_acid. visit("[$([$([NX3H,NX4H2+]),$([NX3](C)(C)(C))]1[CX4H]([CH2][CH2][CH2]1)[CX3]" + "(=[OX1])[OX2H,OX1-,N]),$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H2][CX3]" + "(=[OX1])[OX2H,OX1-,N]),$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H]([$([CH3X4])," + "$([CH2X4][CH2X4][CH2X4][NHX3][CH0X3](=[NH2X3+,NHX2+0])[NH2X3]),$" + "([CH2X4][CX3](=[OX1])[NX3H2]),$([CH2X4][CX3](=[OX1])[OH0-,OH])," + "$([CH2X4][SX2H,SX1H0-]),$([CH2X4][CH2X4][CX3](=[OX1])[OH0-,OH])," + "$([CH2X4][#6X3]1:[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H]),$([#7X3H])]:" + "[#6X3H]:[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H]),$([#7X3H])]:[#6X3H]1)," + "$([CHX4]([CH3X4])[CH2X4][CH3X4]),$([CH2X4][CHX4]([CH3X4])[CH3X4])," + "$([CH2X4][CH2X4][CH2X4][CH2X4][NX4+,NX3+0]),$([CH2X4][CH2X4][SX2][CH3X4])," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3H][cX3H][cX3H]1),$([CH2X4][OX2H])," + "$([CHX4]([CH3X4])[OX2H]),$([CH2X4][cX3]1[cX3H][nX3H][cX3]2[cX3H][cX3H][cX3H][cX3H][cX3]12)," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3]([OHX2,OH0X1-])[cX3H][cX3H]1)," + "$([CHX4]([CH3X4])[CH3X4])])[CX3](=[OX1])[OX2H,OX1-,N])]"); } public void testPattern191() throws Exception { // Non-standard amino acid. visit("[$([NX3,NX4+][CX4H]([*])[CX3](=[OX1])[O,N]);!$([$([$([NX3H,NX4H2+])," + "$([NX3](C)(C)(C))]1[CX4H]([CH2][CH2][CH2]1)[CX3](=[OX1])[OX2H,OX1-,N])," + "$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H2][CX3](=[OX1])[OX2H,OX1-,N])," + "$([$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H]([$([CH3X4]),$([CH2X4][CH2X4][CH2X4][NHX3][CH0X3]" + "(=[NH2X3+,NHX2+0])[NH2X3]),$([CH2X4][CX3](=[OX1])[NX3H2]),$([CH2X4][CX3](=[OX1])[OH0-,OH])," + "$([CH2X4][SX2H,SX1H0-]),$([CH2X4][CH2X4][CX3](=[OX1])[OH0-,OH]),$([CH2X4][#6X3]1:" + "[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H]),$([#7X3H])]:" + "[#6X3H]:[$([#7X3H+,#7X2H0+0]:[#6X3H]:[#7X3H])," + "$([#7X3H])]:[#6X3H]1),$([CHX4]([CH3X4])[CH2X4][CH3X4]),$([CH2X4][CHX4]([CH3X4])[CH3X4])," + "$([CH2X4][CH2X4][CH2X4][CH2X4][NX4+,NX3+0]),$([CH2X4][CH2X4][SX2][CH3X4])," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3H][cX3H][cX3H]1),$([CH2X4][OX2H]),$([CHX4]([CH3X4])[OX2H])," + "$([CH2X4][cX3]1[cX3H][nX3H][cX3]2[cX3H][cX3H][cX3H][cX3H][cX3]12)," + "$([CH2X4][cX3]1[cX3H][cX3H][cX3]([OHX2,OH0X1-])[cX3H][cX3H]1)," + "$([CHX4]([CH3X4])[CH3X4])])[CX3](=[OX1])[OX2H,OX1-,N])])]"); } public void testPattern192() throws Exception { //Azide group visit("[$(*-[NX2-]-[NX2+]#[NX1]),$(*-[NX2]=[NX2+]=[NX1-])]"); } public void testPattern193() throws Exception { // Azide ion visit("[$([NX1-]=[NX2+]=[NX1-]),$([NX1]#[NX2+]-[NX1-2])]"); } public void testPattern194() throws Exception { //Azide or azide ion visit("[$([$(*-[NX2-]-[NX2+]#[NX1]),$(*-[NX2]=[NX2+]=[NX1-])]),$([$([NX1-]=[NX2+]=[NX1-]),$([NX1]#[NX2+]-[NX1-2])])]"); } public void testPattern195() throws Exception { // Sulfide visit("[#16X2H0]"); } public void testPattern196() throws Exception { // Mono-sulfide visit("[#16X2H0][!#16]"); } public void testPattern197() throws Exception { // Di-sulfide visit("[#16X2H0][#16X2H0]"); } public void testPattern198() throws Exception { // Two sulfides visit("[#16X2H0][!#16].[#16X2H0][!#16]"); } public void testPattern199() throws Exception { // Acid/conj-base visit("[OX2H,OX1H0-]"); } public void testPattern200() throws Exception { // Non-acid Oxygen visit("[OX2H0]"); } public void testPattern201() throws Exception { // Acid/base visit("[H1,H0-]"); } public void testPattern202() throws Exception { visit("([Cl!$(Cl~c)].[c!$(c~Cl)])"); } public void testPattern203() throws Exception { visit("([Cl]).([c])"); } public void testPattern204() throws Exception { visit("([Cl].[c])"); } public void testPattern205() throws Exception { visit("[NX3;H2,H1;!$(NC=O)].[NX3;H2,H1;!$(NC=O)]"); } public void testPattern206() throws Exception { visit("[#0]"); } public void testPattern207() throws Exception { visit("[*!H0,#1]"); } public void testPattern208() throws Exception { visit("[#6!H0,#1]"); } public void testPattern209() throws Exception { visit("[H,#1]");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -