锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日本电影一区二区,992tv免费直播在线观看,国产资源在线观看http://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2009/11/20/303059.htmlEric.ZhouEric.ZhouFri, 20 Nov 2009 07:26:00 GMThttp://www.aygfsteel.com/rain1102/archive/2009/11/20/303059.htmlhttp://www.aygfsteel.com/rain1102/comments/303059.htmlhttp://www.aygfsteel.com/rain1102/archive/2009/11/20/303059.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/303059.htmlhttp://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2009/10/25/299655.htmlEric.ZhouEric.ZhouSun, 25 Oct 2009 04:37:00 GMThttp://www.aygfsteel.com/rain1102/archive/2009/10/25/299655.htmlhttp://www.aygfsteel.com/rain1102/comments/299655.htmlhttp://www.aygfsteel.com/rain1102/archive/2009/10/25/299655.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/299655.htmlhttp://www.aygfsteel.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://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2009/10/21/299137.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/299137.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2009/10/21/299137.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/299137.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/aggbug/299137.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2009-10-21 08:55 <a href="http://www.aygfsteel.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"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">凤冈县</a>| <a href="http://" target="_blank">绍兴市</a>| <a href="http://" target="_blank">阿合奇县</a>| <a href="http://" target="_blank">沾益县</a>| <a href="http://" target="_blank">扎囊县</a>| <a href="http://" target="_blank">金溪县</a>| <a href="http://" target="_blank">灌云县</a>| <a href="http://" target="_blank">托克托县</a>| <a href="http://" target="_blank">二手房</a>| <a href="http://" target="_blank">济源市</a>| <a href="http://" target="_blank">图木舒克市</a>| <a href="http://" target="_blank">宁河县</a>| <a href="http://" target="_blank">旌德县</a>| <a href="http://" target="_blank">陆丰市</a>| <a href="http://" target="_blank">稻城县</a>| <a href="http://" target="_blank">民和</a>| <a href="http://" target="_blank">股票</a>| <a href="http://" target="_blank">临猗县</a>| <a href="http://" target="_blank">柳林县</a>| <a href="http://" target="_blank">托克托县</a>| <a href="http://" target="_blank">靖州</a>| <a href="http://" target="_blank">阿巴嘎旗</a>| <a href="http://" target="_blank">海城市</a>| <a href="http://" target="_blank">喀喇沁旗</a>| <a href="http://" target="_blank">柯坪县</a>| <a href="http://" target="_blank">灵川县</a>| <a href="http://" target="_blank">巴彦县</a>| <a href="http://" target="_blank">伽师县</a>| <a href="http://" target="_blank">汶上县</a>| <a href="http://" target="_blank">抚松县</a>| <a href="http://" target="_blank">佛教</a>| <a href="http://" target="_blank">剑川县</a>| <a href="http://" target="_blank">闽侯县</a>| <a href="http://" target="_blank">永平县</a>| <a href="http://" target="_blank">晋中市</a>| <a href="http://" target="_blank">新余市</a>| <a href="http://" target="_blank">福泉市</a>| <a href="http://" target="_blank">凉山</a>| <a href="http://" target="_blank">新兴县</a>| <a href="http://" target="_blank">元朗区</a>| <a href="http://" 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>