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