WebJun 24, 2024 · 1 Answer. Sorted by: 1. You can try this: from rdkit import Chem smiles_list = ["O=C (NCc1cc (OC)c (O)cc1)CCCC/C=C/C (C)C", "CC (C)CCCCCC (=O)NCC1=CC (=C (C=C1)O)OC", "c1 (C=O)cc (OC)c (O)cc1"] # create a list of mols mols = [Chem.MolFromSmiles (smiles) for smiles in smiles_list] # create a list of fingerprints … WebMar 21, 2024 · i有1398行和2列的.CSV文件.我将40%作为y_test集,因为它在上述代码中可见. 推荐答案. 打印X_Train形状.你看到了什么?我敢打赌,X_train是2D(带有单列的矩阵),而y_train 1D(向量).反过来,您会得到不同的尺寸. 我认为使用X_train[:,0]进行绘图(这是错误起源的位置)应解决问题
rdkit.Chem.PandasTools module — The RDKit 2024.03.1
WebMay 25, 2024 · import pandas as pd from rdkit.Chem import PandasTools pp = pd.read_csv ('anti.smiles', names= ['Smiles', 'BA']) PandasTools.AddMoleculeColumnToFrame … http://rdkit.org/docs/source/rdkit.Chem.PandasTools.html elmo world dogs channel
How to Read CSV Without Headers in Pandas (With Example)
WebTo convert a SMILES file into a SD file along with calculation of 2D coordinates, type: % RDKitConvertFileFormat.py -i Sample.smi -o SampleOut.sdf. % RDKitConvertFileFormat.py -i Sample.mol -o SampleOut.pdb. To convert a CSV SMILES file with column headers, SMILES strings in column 1, and name in column 2 into a SD file containing 2D ... WebJan 1, 2014 · After looking more closely at this file that won't exactly work, it's problematic since each line starts with a double quote character. To "correctly" read CSV formats you have to take everything between the quotes, this will read each line into a separate row without considering the commas. WebNov 23, 2024 · Use Rdkit to break down SDF files RDKit 4 Goals and Objectives Obtain descriptors from SDF files so that they can be treated as CSV files. What is a descriptor? … elmo world dressed