posts - 431,  comments - 344,  trackbacks - 0
          公告
           Don't Repeat Yourself
          座右銘:you can lose your money, you can spent all of it, and if you work hard you get it all back. But if you waste your time, you're never gonna get it back.
          公告本博客在此聲明部分文章為轉(zhuǎn)摘,只做資料收集使用。


          微信: szhourui
          QQ:109450684
          Email
          lsi.zhourui@gmail.com
          <2011年4月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          留言簿(15)

          隨筆分類(1019)

          文章分類(3)

          文章檔案(21)

          收藏夾

          Link

          好友博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 865435
          • 排名 - 44

          最新評論

          閱讀排行榜

          OPSIN - Open Parser for Systematic IUPAC Nomenclature (OPSIN) OPSIN takes an IUPAC chemical name and outputs a structure either as as CML (Chemical Markup Language), SMILES, or InChI. OPSIN's primary focus is organic chemical nomenclature,本來Opsin是OSCAR中的一個小模塊。
          下載地址: http://bitbucket.org/dan2097/opsin/
          下面我們直接看代碼吧,很簡單!

          package com.founder.opsin;

          import nu.xom.Element;
          import uk.ac.cam.ch.wwmm.opsin.NameToInchi;
          import uk.ac.cam.ch.wwmm.opsin.NameToStructure;
          import uk.ac.cam.ch.wwmm.opsin.NameToStructureConfig;
          import uk.ac.cam.ch.wwmm.opsin.NameToStructureException;
          import uk.ac.cam.ch.wwmm.opsin.OpsinResult;

          public class OpsinTest {

           /**
            * @param args
            * @author Zhou Rui
            * @throws NameToStructureException
            */
           public static void main(String[] args) throws NameToStructureException {
            NameToStructure n2s = NameToStructure.getInstance();
            
            NameToStructureConfig n2sconfig = new NameToStructureConfig();
            
            OpsinResult result = n2s.parseChemicalName("acetonitrile", n2sconfig);
            
            System.out.println(result.getStatus());
            
            String smiles = result.getSmiles();
            String inchi = NameToInchi.convertResultToInChI(result);
            System.out.println(smiles);
            System.out.println(inchi);
           }

          }

          輸出結(jié)果如下:
          SUCCESS
          C(C)#N
          InChI=1/C2H3N/c1-2-3/h1H3

          posted on 2011-04-19 21:52 周銳 閱讀(621) 評論(0)  編輯  收藏 所屬分類: ChemistryJava
          主站蜘蛛池模板: 泰安市| 南溪县| 石首市| 油尖旺区| 太仆寺旗| 海原县| 申扎县| 乌拉特前旗| 拉孜县| 陈巴尔虎旗| 西峡县| 十堰市| 象山县| 兴文县| 玛多县| 锦屏县| 清苑县| 尼玛县| 綦江县| 宜春市| 宁蒗| 巴彦淖尔市| 施秉县| 扶沟县| 鄂托克前旗| 玉屏| 金堂县| 垣曲县| 龙州县| 海淀区| 瑞昌市| 富源县| 兴和县| 耒阳市| 大荔县| 博野县| 勃利县| 泰兴市| 会昌县| 项城市| 栾川县|