datamol.data
¶
The data module aims to provide a fast and convenient access to various molecular datasets.
cdk2(as_df=True, mol_column='mol')
¶
Return the RDKit CDK2 dataset from RDConfig.RDDocsDir, 'Book/data/cdk2.sdf'
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
as_df |
bool
|
Whether to return a list mol or a pandas DataFrame. |
True
|
mol_column |
Optional[str]
|
Name of the mol column. Only relevant if |
'mol'
|
Source code in datamol/data/__init__.py
107 108 109 110 111 112 113 114 115 116 117 |
|
chembl_drugs(as_df=True)
¶
A list of ~2k molecules from ChEMBL (all drugs).
Originally, proposed by Patrick Walters at https://github.com/PatWalters/practical_cheminformatics_posts/tree/b4dae239a8b942dab3a41e637ac55d4491aee96f/molskill.
Source code in datamol/data/__init__.py
184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
chembl_samples(as_df=True)
¶
A list of ~2k molecules from ChEMBL.
Originally, proposed by Patrick Walters at https://github.com/PatWalters/practical_cheminformatics_posts/tree/b4dae239a8b942dab3a41e637ac55d4491aee96f/molskill.
Source code in datamol/data/__init__.py
209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
freesolv(as_df=True)
¶
Return the FreeSolv dataset as a dataframe.
The dataset contains 642 molecules and the following columns:
['iupac', 'smiles', 'expt', 'calc']
.
Warning
This dataset is only meant to be used as a toy dataset for pedagogic and testing purposes. It is not a dataset for benchmarking, analysis or model training.
Source code in datamol/data/__init__.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
solubility(as_df=True, mol_column='mol')
¶
Return the RDKit solubility dataset from RDConfig.RDDocsDir, 'Book/data/solubility.{train|test}.sdf'
.
The dataframe or the list of molecules with contain a split
column, either train
or test
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
as_df |
bool
|
Whether to return a list mol or a pandas DataFrame. |
True
|
mol_column |
Optional[str]
|
Name of the mol column. Only relevant if |
'mol'
|
Source code in datamol/data/__init__.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
|