Sha256: a58a82e14a78e6def43e53638a1701fab0081d2e1cf4840bb7d66913b8196718

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

package structurefeatures.rules;

import java.util.logging.Level;

import toxTree.tree.rules.smarts.RuleSMARTSSubstructureAmbit;
import ambit2.smarts.query.SMARTSException;
public class RuleBenzene extends RuleSMARTSSubstructureAmbit {
	private static final long serialVersionUID = 0;
	public RuleBenzene() {
		super();		
		try {
			//benzene, 1,2,3,4-fused
			super.initSingleSMARTS(super.smartsPatterns,"1", "c12ccccc1cccc2");			
			//1-alkylamino-
			super.initSingleSMARTS(super.smartsPatterns,"2", "a-[NX3;H2,H1;!$(NC=O)][CX4,CH,CH2,CH3]");			
			//1-carbonylamino
			super.initSingleSMARTS(super.smartsPatterns,"3", "[OX1]=CN");
			//1-methyl
			super.initSingleSMARTS(super.smartsPatterns,"4", "a-[cX3H]");
			//1-heteroamino
			super.initSingleSMARTS(super.smartsPatterns,"5", "[$([nX3](:*):*),$([nX2](:*):*),$([#7X2]=*),$([NX3](=*)=*),$([#7X3+](-*)=*),$([#7X3+H]=*);$(a-[NX3;H2,H1;!$(NC=O)])]");			
			
			
			id = "6";
			title = "Benzene";
			
			examples[0] = "";
			examples[1] = "";	
			editable = false;		
		} catch (SMARTSException x) {
			logger.log(Level.SEVERE,x.getMessage(),x);
		}

	}

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toxtree-0.0.1 Toxtree-v2.6.13/src/structurefeatures/rules/RuleBenzene.java