notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

Tutorial to Create SPLIF Features

Open sawsimeon opened this issue 4 years ago • 0 comments

Hi, I would like to know is there a way where I could create a SPLIF features into a single array of 4096 size. I do not know how to create a dataframe of the output from the SPLIF function.

import numpy as np
import pandas as pd
import oddt
import oddt.pandas as opd
from oddt.fingerprints import SPLIF

receptor = next(oddt.toolkit.readfile('pdb', 'xiap/receptor_rdkit.pdb'))
data = opd.read_sdf('xiap/actives_docked.sdf')
splif = SPLIF(data['mol'][0], protein=receptor)
splif

sawsimeon avatar Mar 05 '21 17:03 sawsimeon