锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产中文v高清在线观看,亚洲伊人久久大香线蕉结合,亚洲午夜激情视频http://m.tkk7.com/rain1102/category/42273.html<br/><font color="green" style="font-family: 鍗庢枃琛屾シ;font-size:16px;">瀛愭洶錛氬嵄閭︿笉鍏ワ紝涔遍偊涓嶅眳銆傚ぉ涓嬫湁閬撳垯瑙侊紝鏃犻亾鍒欓殣銆?lt;/font><font color="#3C1435"></font>zh-cnFri, 20 Nov 2009 14:31:45 GMTFri, 20 Nov 2009 14:31:45 GMT60mol2ps-a freeware tool for 2D depiction of molecular structureshttp://m.tkk7.com/rain1102/archive/2009/11/20/303059.htmlEric.ZhouEric.ZhouFri, 20 Nov 2009 07:26:00 GMThttp://m.tkk7.com/rain1102/archive/2009/11/20/303059.htmlhttp://m.tkk7.com/rain1102/comments/303059.htmlhttp://m.tkk7.com/rain1102/archive/2009/11/20/303059.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/303059.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/303059.htmlmol2ps is a freely available command-line utility program which reads molecular structure files in different formats (see below) and generates Postscript output for 2D display. The Postscript file can then be used e.g. for creating a bitmap file, using a Postscript interpreter like Ghostscript.

As an example, the following 2D representation of caffeine in PNG (Portable Network Graphics) format was created from the corresponding MDL molfile (PubChem CID 2519), using mol2ps in combination with Ghostscript:

Caffeine 2D structure

As input files, MDL molfiles and SD files (*.mol, *.sdf; 2D and 3D), Alchemy molfiles (*.mol), and Sybyl mol2 files (*.mol2) are accepted by mol2ps, the preferred format is the MDL molfile format. At present, it is not intended to extend the number of supported input file formats, as there are powerful file format converters available, such as OpenBabel.

The main purpose of mol2ps is to create small, but high-quality 2D pictures of molecules for display on web pages. Especially for web-based molecular structure databases it is quite useful to have pre-built pictures for display in hitlists instead of invoking browser plugins, Java applets, or server-side programs for display of the individual structures. A description of how such structure databases can be created with free software is given here.

Availability

mol2ps is freely available under the terms of the GNU General Public License (GPL), for a detailed description of this license, please visit http://www.gnu.org/copyleft/gpl.html.
It is written in Pascal and it was compiled with the Free Pascal compiler for the following platforms: Linux i386, FreeBSD i386, Windows (Win32 console application). You may use it on your own risk, there is no warranty for anything.

Download

source code: mol2ps.pas (approx. 139 KB)
Linux (i386) executable: mol2ps-latest-linux-i386.gz (approx. 81 KB)
FreeBSD (i386) executable: mol2ps-latest-freebsd-i386.gz (approx. 114 KB)
Win32 console application: mol2ps-latest-win32.zip (approx. 62 KB)
example color definition file: color.conf


Eric.Zhou 2009-11-20 15:26 鍙戣〃璇勮
]]>
鍦≒ython涓嬌鐢╫penbabelhttp://m.tkk7.com/rain1102/archive/2009/10/25/299655.htmlEric.ZhouEric.ZhouSun, 25 Oct 2009 04:37:00 GMThttp://m.tkk7.com/rain1102/archive/2009/10/25/299655.htmlhttp://m.tkk7.com/rain1102/comments/299655.htmlhttp://m.tkk7.com/rain1102/archive/2009/10/25/299655.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/299655.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/299655.html濡傛灉浣犵殑鐜榪樻病鍑嗗濂? 鍙互瀹樻柟緗戠珯鐪嬪浣曢厤緗幆澧?http://openbabel.org/wiki/Install_Python_bindings
1. 閫氳繃浣跨敤OBMol, OBAtom鍜孫BBond鏉ュ垱寤哄師瀛愬拰閿?/strong>
import openbabel

mol = openbabel.OBMol()
print 'Should print 0 (atoms)'
print mol.NumAtoms()

a = mol.NewAtom()
a.SetAtomicNum(6)   # carbon atom
a.SetVector(0.0, 1.0, 2.0) # coordinates

b = mol.NewAtom()
mol.AddBond(1, 2, 1)   # atoms indexed from 1
print 'Should print 2 (atoms)'
print mol.NumAtoms()
print 'Should print 1 (bond)'
print mol.NumBonds()

mol.Clear();

2. 閫氳繃OBConversion鏉ヨ鍙栧垎瀛? 騫惰緭鍑轟笉鍚屾牸寮忔枃浠舵垨瀛楃涓插?/strong>
import openbabel

obConversion = openbabel.OBConversion()
obConversion.SetInAndOutFormats("smi", "mdl")    //璇誨彇smiles鍊? 鐒跺悗杈撳嚭mdl鍊?br />
mol = openbabel.OBMol()
obConversion.ReadString(mol, "C1=CC=CS1")

print 'Should print 5 (atoms)'
print mol.NumAtoms()

mol.AddHydrogens()
print 'Should print 9 (atoms) after adding hydrogens'
print mol.NumAtoms()      //杈撳嚭鍘熷瓙涓暟

outMDL = obConversion.WriteString(mol)

3. 璁$畻fp鍊?/strong>
import pybel
smiles = ['CCCC', 'CCCN']
mols = [pybel.readstring("smi", x) for x in smiles]   # Create two molecules from the SMILES
fps = [x.calcfp() for x in mols]   # Calculate their fingerprints
print fps[0].bits, fps[1].bits
print fps[0].fp[0]

mol2 = pybel.readstring('smi', 'c2ccc1ccccc1c2')
fp2 = mol2.calcfp("FP4")
print fp2
print fp2.bits


mol3 = pybel.readstring('smi', 'C1CCCCC1')
fp3 = mol3.calcfp()

print fp3.__or__(fp2)  //璁$畻鐩鎬技搴﹀?br />
4. 璇誨彇sdf鏂囦歡
#encoding=utf-8
import pybel
for mymol in pybel.readfile("sdf", "structures_all.sdf"):
    fp = mymol.calcfp("FP2")
    print fp

5. 杈撳嚭txt鏂囦歡鍜宻df鏂囦歡

print mymol.write("smi")    //'CCCC'
mymol.write("smi", "outputfile.txt")
largeSDfile = Outputfile("sdf", "multipleSD.sdf")
largeSDfile.write(mymol)
largeSDfile.write(myothermol)
largeSDfile.close()



Eric.Zhou 2009-10-25 12:37 鍙戣〃璇勮
]]>
Openbabel瀛愮粨鏋勫尮閰?/title><link>http://m.tkk7.com/rain1102/archive/2009/10/21/299137.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Wed, 21 Oct 2009 00:55:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2009/10/21/299137.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/299137.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2009/10/21/299137.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/299137.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/299137.html</trackback:ping><description><![CDATA[<p>package com.founder.openbabel;</p> <p>import org.openbabel.OBConversion;<br /> import org.openbabel.OBMol;<br /> import org.openbabel.OBSmartsPattern;</p> <p>public class Test {</p> <p> public static void main(String[] args) {<br />         // Initialise<br />         System.loadLibrary("openbabel_java");</p> <p>        // Read molecule from SMILES string<br />         OBConversion conv = new OBConversion();<br />         OBMol mol = new OBMol();<br />         conv.SetInFormat("smi");<br />         conv.ReadString(mol, "C(Cl)(=O)CCC(=O)Cl");</p> <p>        // What are the indices of the carbon atoms<br />         // of the acid chloride groups?<br />        <span style="color: #008000"> OBSmartsPattern acidpattern = new OBSmartsPattern();<br />         acidpattern.Init("C(=O)Cl");<br /> </span>        long t1 = System.currentTimeMillis();<br />         <span style="color: #008000">boolean flag = acidpattern.Match(mol);<br /> </span>        long t2 = System.currentTimeMillis();<br />         System.out.println("Cost time:" + (t2-t1) + "ms");<br />         System.out.println(flag);<br />     }</p> <p>}<br /> </p><img src ="http://m.tkk7.com/rain1102/aggbug/299137.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2009-10-21 08:55 <a href="http://m.tkk7.com/rain1102/archive/2009/10/21/299137.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://shunfk.com" target="_blank">天堂亚洲国产中文在线</a>| <a href="http://pyjxyey.com" target="_blank">久久亚洲国产视频</a>| <a href="http://zhhy68.com" target="_blank">亚洲a∨无码一区二区</a>| <a href="http://miya77772.com" target="_blank">在线观看AV片永久免费</a>| <a href="http://aicbbs.com" target="_blank">亚洲国产成人精品无码区在线网站 </a>| <a href="http://hyhtzh.com" target="_blank">a级毛片无码免费真人久久</a>| <a href="http://daohang123456.com" target="_blank">国产精品免费视频播放器</a>| <a href="http://meinvtaotu.com" target="_blank">亚洲欧美不卡高清在线</a>| <a href="http://hjndgb.com" target="_blank">精品国产免费一区二区</a>| <a href="http://cdlsy.com" target="_blank">国产偷国产偷亚洲清高APP</a>| <a href="http://aicbbs.com" target="_blank">免费观看日本污污ww网站一区</a>| <a href="http://chuoche.com" target="_blank">国产亚洲精品美女</a>| <a href="http://sao350.com" target="_blank">久久久久亚洲AV成人网人人网站 </a>| <a href="http://yzddcpj.com" target="_blank">两个人看的www高清免费观看</a>| <a href="http://msjdyd.com" target="_blank">久久国产成人亚洲精品影院</a>| <a href="http://www-6209.com" target="_blank">中文字幕av无码不卡免费</a>| <a href="http://qimiaodh.com" target="_blank">国产亚洲av片在线观看16女人</a>| <a href="http://gwcyy.com" target="_blank">中文字幕久精品免费视频 </a>| <a href="http://727744.com" target="_blank">亚洲精品第五页中文字幕</a>| <a href="http://sanyoumiaomu.com" target="_blank">免费观看无遮挡www的小视频</a>| <a href="http://626632.com" target="_blank">色在线亚洲视频www</a>| <a href="http://haigoumama.com" target="_blank">亚洲性久久久影院</a>| <a href="http://tiantangapp.com" target="_blank">国产麻豆一精品一AV一免费</a>| <a href="http://18jko.com" target="_blank">亚洲乱码在线视频</a>| <a href="http://zzo8.com" target="_blank">无码av免费一区二区三区试看</a>| <a href="http://my55572.com" target="_blank">久久久久亚洲AV成人无码 </a>| <a href="http://srztw.com" target="_blank">免费中文字幕不卡视频</a>| <a href="http://badabg.com" target="_blank">中国在线观看免费国语版</a>| <a href="http://8xcb.com" target="_blank">亚洲av无码专区在线电影天堂</a>| <a href="http://se988.com" target="_blank">免费播放春色aⅴ视频</a>| <a href="http://023439.com" target="_blank">免费无码一区二区三区蜜桃 </a>| <a href="http://cc88899.com" target="_blank">婷婷国产偷v国产偷v亚洲</a>| <a href="http://35419470.com" target="_blank">国产亚洲av片在线观看18女人</a>| <a href="http://wxxwy.com" target="_blank">亚洲免费在线视频</a>| <a href="http://lzhuiding.com" target="_blank">亚洲精品无码久久久久YW</a>| <a href="http://0595laser.com" target="_blank">久久精品亚洲福利</a>| <a href="http://abbobo.com" target="_blank">97在线视频免费播放</a>| <a href="http://3x79.com" target="_blank">国产亚洲综合久久</a>| <a href="http://pchbgs.com" target="_blank">亚洲色图校园春色</a>| <a href="http://wangdei.com" target="_blank">www国产亚洲精品久久久</a>| <a href="http://97aimeili.com" target="_blank">四虎国产成人永久精品免费 </a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>