File: ch33query.sql

package info (click to toggle)
rdkit 202503.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 222,000 kB
  • sloc: cpp: 411,111; python: 78,482; ansic: 26,181; java: 8,285; javascript: 4,404; sql: 2,393; yacc: 1,626; lex: 1,267; cs: 1,090; makefile: 581; xml: 229; fortran: 183; sh: 121
file content (26 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
select distinct
    md.chembl_id chid,
        cs.standard_inchi,
        md.pref_name molname,
        td.chembl_id tchid,
		td.pref_name tarname,
        pchembl_value pchembl,
        organism as organism,
		ac.activity_id,
        td.target_type
        from
        ch33.activities ac,
        ch33.molecule_dictionary md,
        ch33.assays ay,
        ch33.target_dictionary td,
        ch33.compound_structures cs,
        ch33.chembl_id_lookup cl
        where
        cl.entity_id = cs.molregno and
        cl.entity_type = 'COMPOUND' and
        ac.molregno = md.molregno and
        ac.molregno = cl.entity_id and
        ac.assay_id = ay.assay_id and
        pchembl_value > 5 and
        ac.pchembl_value is not null and td.tid = ay.tid and td.target_type in (
	'PROTEIN COMPLEX','SINGLE PROTEIN')