化學結構式檢索obabel

2021-08-08 10:49:25 字數 1026 閱讀 3801

1、mol檔案追加到檢索庫

sdf

2、生成索引檔案fs

babel default1.sdf -ofs

3、精確檢索

smiles;inchi;

兩個格式結果等同,但smiles效率應該略高,採用的索引。

smiles:

babel search.mol -osmi

obabel default1.fs -o out.svg  -s c1c(ccc(c1)[n+](=o)[o-])n exact

3個結果。

ex:babel "g:\default1\default1.sdf" -s "g:\default1\search.mol exact"  -o out.svg

32個結果

,非精確,應該屬於高度相似匹配了。

inchi

babel search.mol -oinchi

babel default1.sdf

--filter \"

inchi

\" -ofpt

結果3個;

4、模糊檢索

babel default1.fs -s search.mol -at 0.7 -ofpt

at >1,取匹配得前幾項;

obabel default1.fs -o out.svg  -s search.mol -at 4

at <1 ,取相似度以內的資料;

obabel default1.fs -o out.svg  -s search.mol -at 0.8

5、子結構檢索

smiles

生成smi庫

babel default1.sdf -o default1.smi

檢索項轉化成smi

babel search.mol -osmi

檢索:obgrep -n  "c1c(ccc(c1)[n+](=o)[o-])n" default1.smi

用latex畫化學結構式

最近寫 需要畫化學結構式,於是想到用latex裡的包。但是一看知乎裡面的大牛們一片口誅筆伐,說還是chemdraw好。用latex是裝。這裡還有個例子 經過晚上一小時折騰,終於把兩種方法都掌握了。chemdraw裝17版本就好。確實畫起來很方便 而latex則比較麻煩了。要看好input載入的對應資...

SQL中查詢樹結構式結果

sql中查詢樹結構式結果 sql select a.id,a.gnwzmc,a.idx,b.idx as parentidx,a.級數 from select rownum as idx,level as 級數,id,fid,gnwzmc from gy sb wjjg start with fid...

點 結構式 在三維座標上平移,Python實現

沒有廢話,直接上 記得要宣告point類 結構式在三維座標上平移,預設將下標為0的點移動到某個位置,其它點同樣平移 這個listpoint可能只是乙個片段 staticmethod defstructuremoveto listpoint,movetopoint,index 0 if0 index ...