Icon

Target-Driven Bioactivity and Molecular Series Explorer

This workflow enables the retrieval and exploration of bioactivity data from ChEMBL. Given a biological target of interest, the workflow retrieves the associated compounds and their activities, applies a series of data processing steps to maximise data quality, and optionally organises the compounds into molecular series to enable a structured exploration of structure-activity relationships.

The workflow supports a broad range of target types, including single proteins, protein complexes and cell lines, and offers flexible options for molecular series identification, from scaffold-based grouping to clustering-based methods. Designed to be run either as a DataApp on a KNIME Hub instance or locally via KNIME Analytics Platform, it provides an intuitive and interactive web-based interface throughout.

For a detailed description of the workflow and its components, please refer to: https://medium.com/low-code-for-advanced-data-science/target-to-molecular-series-knime-workflow-e147a4f57e89

URL: From Target to Molecular Series: Introducing the Target-Driven Bioactivity and Molecular Series Explorer https://medium.com/low-code-for-advanced-data-science/target-to-molecular-series-knime-workflow-e147a4f57e89

Annotations and comments
  • Optional molecular series identification
  • Activity data retrieval for all molecules (aggregated and individual)
  • Web Portal page (interaction required)
  • Web Portal page
  • Target search and selection
  • Activity set selection and retrieval
  • Molecular structure manipulation and filtering
  • Activity aggregation
  • WebPortal page with required interaction
  • Web Portal page (data-dependent)
  • WebPortal
  • SET UP
  • Molecular series identification and activity retrieval for selected series
  • missing_target_search keyword switch end
  • identify_mol_series switch stop (mol activity)
  • missing_target_search keyword switch start
  • identify_mol_series switch start 1. all mols individually 2. identify mol series
  • chembl_db_type_index switch end (activity)
  • chembl_db_type_index switch end
  • calculate_p_value switch end
  • chembl_db_type_index switch start
  • calculate_p_value switch start
  • css so that the activity string column is not split
  • re-sort
  • ChEMBL Activity Retrieval input
  • ChEMBL Activity Retrieval output
  • concatenate optionally selected activities to non-anomalous
  • retrieve doc info from doc_id
  • retrieve current activity standard range
  • 1. adjust target mutation data 2. retrieve activity
  • empty when no anomalous act found
  • join doc info
  • calculate p-value
  • cast smiles
  • connect to ChEMBL
  • render mol struct
  • select just the first row
  • filter selected activities
  • split bottom act with not null data validity comment
  • split top activities with values outside typical range
  • calculate p-value_relation
  • calculate_p_value
  • create source reference
  • add a string activity column
  • add hyperlink to DOI
  • p-value name
  • to var
  • activity normal range
  • select anomalous activities
  • title
  • rename cols
  • ChEMBL Activity Type Selection input
  • ChEMBL Activity Type Selection output
  • re-calculate domain (useful when uncommon activity types are in the list)
  • inject vars
  • filter on assay_type
  • filter on activity type
  • filter on activity units
  • filter on assay_format
  • long to string
  • filter selected row (with no modified col)
  • select only the selected tactivity type
  • add "WT" to mutation fields representing targets with no mutations
  • selected_activity
  • string to int
  • sunburst activity type
  • display activity types
  • std_type & std_units lookup table
  • for each selected col loop start
  • resort cols
  • bottom: cols to treat
  • rules_none_substitution
  • calculate domain for string cols otherwise it may give problems
  • rejoin other cols
  • for each selected col loop end
  • replace missing fields with "[NONE]" to current column
  • rule_2_none_substitution
  • to table
  • chembl_db_type_index switch end (activity type)
  • std_type-std_units identifier
  • filter out std_type-std_units identifier
  • ChEMBL Activity Type Retrieval input
  • ChEMBL Activity Type Retrieval output
  • 1. adjust target mutation data 2. retrieve activity type (PostgreSQL version)
  • retrieve activity_stds_lookup
  • 1. adjust target mutation data 2. retrieve activity type (SQLite version)
  • select the std_type & std_units retrieved
  • reset rowID
  • mutated_target
  • sort by sdt_type & std_units
  • target_chembl_id
  • target_mutation
  • variant_id to string
  • variant_id to long
  • chembl_credentials_retrieval_mode case switch end
  • chembl_db_type_index switch end 0. postgres 1. sqlite
  • chembl_credentials_retrieval_mode case switch start: 0. user & password 1. from KNIME Hub
  • chembl_db_type_index switch start 0. postgres 1. sqlite
  • ChEMBL DB Connection input
  • ChEMBL DB Connection output
  • chembl_credentials
  • chembl_port
  • authenticate in KNIME Hub
  • chembl_sqlite_db_file
  • merge postgres vars
  • retrieve chembl_credentials
  • chembl_credentials_retrieval_mode
  • chembl_db_type
  • chembl_host
  • kn_hub_mountpoint
  • chembl_version
  • generate box plot
  • empty multi-activity mols switch end
  • write activity_by_series.csv
  • write individual_activities.csv
  • write activity_by_molecule.csv
  • color according with activity
  • filter out mol_depiction
  • filter out extra cols
  • filter series-related cols
  • filter mol-related cols
  • filter out doc-aggregated cols
  • Node 152
  • filter out image cols
  • filter out molecule structure
  • molecule activity source columns
  • add prefix to act cols
  • rename compounds & molID (set)
  • adjust act_id col name
  • rename mol activity as mol activity mean (as it was aggregated previously)
  • rename Molecule as SMILES
  • add "SMILES" suffix to series structure representative
  • rename Molecule as SMILES (for export)
  • split bottom mol_activity (because in mols with more than 1 act correspondt to the mean)
  • ChEMBL Molecular Series Detail input
  • ChEMBL Molecular Series Detail output
  • 1 row for each series
  • empty multi-activity mols switch start
  • molecular_series.csv
  • individual_activities.csv
  • aggregated_activities.csv
  • for each series loop start
  • box plot to table
  • join mol data
  • left outer join activity box plots
  • join activity info
  • for each series loop end
  • count-based_fp switch end
  • dimension reduction method (idx) switch end
  • count-based_fp switch start
  • dimension reduction method (idx) switch start: 0. PCA 1. t-SNE
  • filter only fps
  • mol_struct
  • split mol_struct top
  • Molecular Structure Coordinates Generation input
  • Molecular Structure Coordinates Generation output
  • expand fps
  • dimensions_to_reduce_to
  • join coordinates to original cols
  • merge
  • apply PCA
  • compute PCA
  • calculate fps
  • selected_fp
  • fp_radius
  • fp_hash_size
  • dimensions_reduction_method
  • compute & apply t-SNE
  • count-based_fp
  • fp_prefix
  • fp_regex
  • fp_type
  • fp_name
  • fp_hash_size to int
  • fp_radius to int
  • select only relevant cols
  • render struct
  • split top only rows belonging to series with > 1 compound
  • split bottom mols with > 1 activity
  • Series ID as rowID
  • chemical space
  • sort by rowID
  • sort by series_id, PC0 & act
  • mol_activity_mean regex_ready
  • mol_act_mean
  • tile_view_cols_regex
  • mol_struct_act_pattern
  • display series data
  • molecule activity source table
  • create oufile dir
  • create 1 empty row
  • to lists
  • merge vars
  • all outfile path to strings
  • outfile_names
  • tmp_folder_prefix
  • export_path
  • strip out digits relative to seconds in timestamp
  • outfile_extensions
  • outfile_var_names
  • timestamp format switch end
  • timestamp format switch start: 1. string 2. date&time
  • rename column according with name set in configuration
  • Timestamp Generator input
  • Timestamp Generator output
  • add timestamp col to input table
  • create an empty row
  • java timestamp
  • timestamp_format
  • timestamp_column
  • remove ";:.-" from timestamp string
  • convert to date&time format
  • individual molecule activity header
  • activity by molecule header
  • activity by series header
  • aggregated molecule activity
  • ungroup molID
  • ungroup activity_id
  • series_id first
  • split bottom series activities
  • split bottom data source
  • split bottom act_id and PCs
  • split bottom mol_act
  • calculate p-value switch end
  • calculate p-value switch start
  • rename "standard_value" as mol_activity
  • target_search_keywords
  • retrieve target pref_name for the following target types: %%00009'single protein', %%00009'cell-line', %%00009'protein complex', %%00009'protein-protein interaction', %%00009'protein family'
  • target_search_keyword_string
  • sorting_sequence switch rnf
  • sorting_sequence switch start
  • filter out target_type_order
  • join desired target type order
  • sorting_sequence
  • sort by: desired target_type target_name, organism, mutation
  • sort by: desired target_type target_name, organism
  • ChEMBL target_type desired order
  • ChEMBL Target Search input
  • ChEMBL Target Search output
  • 1. adjust target mutation data 2. search targets (PostgreSQL version)
  • 1. adjust target mutation data 2. search targets (SQLite version)
  • replace "?" strings in accession, component_descrriptions component_synonym (coming from group by) to real missing values
  • aggregate by tid
  • double quoting component synonyms
  • double quoting component description
  • associated_assays, associated_compounds, associated_activities to string
  • variant_id, associated_assays, associated_compounds, associated_activities to long
  • color by target type
  • resort col
  • ChEMBL Target Selection input
  • ChEMBL Target Selection output
  • re-calculate domain (necessary for interactive value filter nodes when the table is very populated)
  • inject variables 1. target_chembl_id 2. target_mutation
  • target_type_filter
  • organism_filter
  • mutation_filter
  • target_name_filter
  • filter only selected target
  • select only the selected target
  • add "WT" to mutation fields representing targets with no mutations for protein-type targets and "NONE REPORTED" for the others (e.g. cell-lines)
  • add hyperlink to accession
  • sunburst
  • show data hide tid
  • select chembl_id & mutation
  • add "target_" prefix
  • calculate_p-value switch end
  • calculate_p-value switch start
  • filter only struct, mol_id & act cols
  • rename std_value as selected_activity
  • rename mol_struct & mol_ID cols
  • filter only rows with standard_relation = "="
  • col_filter_regex
  • mol_id
  • mol_activity
  • color by mol_act
  • filter out mol_struct
  • filter out smiles
  • activity table col selection
  • activity filter
  • activity source selection
  • activity_id as rowID
  • filter out activity_id_set
  • rename activity_id_count as "Number of activities"
  • activity_by_molecule.csv
  • activity distribution
  • number of activities
  • extract rowID as MolID
  • sort mol activity desc
  • selected mol series switch start trigger a message if no mol series is selected
  • activate bottom if no activity type selected
  • consider_activity switch end
  • series_selection_type switch end
  • consider_activity switch start
  • series_selection_type switch start: 0. scaffold & framework
  • write compounds_by_series.csv
  • act-undefined color by n. of compounds
  • act-defined color by act_max
  • filter only molID (Set) and Series identifier
  • filter only col types writtable in csv files
  • Rename as "Mol IDs"
  • split top mol structure coordinates
  • Molecular Series ID Selection output
  • write file series_overview.csv
  • compounds_by_series
  • series_overview
  • group by series identifiers & unique concatenate Mol IDs
  • act-undefined compounds filter (range min = 0 to avoid selection problem)
  • activity min filter
  • activity max filter
  • act-defined compounds filter (range min = 0 to avoid selection problem)
  • activity median filter
  • join original table with resulting series identifier
  • select only selected mols (non-rendered struct)
  • select only selected mols
  • filter out null scaffold
  • extract rowID as "Series indentifier"
  • extract rowID as "Mol ID"
  • extract Series ID from rowID
  • series_selection_type
  • act-defined scatterplot
  • act-undefined scatterplot
  • sort cols PCs and mol_id(set) at the end and Series ID on top
  • sort columns
  • suffixes
  • extract mol_activity
  • sort by Series identifier
  • mol_activity_median regex_ready
  • act-undefined display series properties
  • act-defined display series properties
  • title (activity provided)
  • title (activity not provided)
  • download file header
  • act-defined display series
  • act-undefined display series
  • ungroup mol ID (Set)
  • filter to var
  • filter out counter
  • Add Formatted Indentifier input
  • Add Formatted Indentifier output
  • count rows
  • count_from
  • count_step
  • calc max lentgth
  • series_prefix
  • id_col_name
  • add series ID
  • length counter
  • molecular series id method (distance) switch end
  • molecular series id method (cluster model) switch end
  • molecular series id method switch end
  • molecular series id method switch start
  • select cols grouping_cols_selection
  • filter out scaffold inchikey
  • filter out framework inchikey
  • remove "(First*)" suffixes from col names
  • remove "*" from min, max and set cols
  • rename count mol_id as "Compounds"
  • series structure representative
  • Molecular Series ID Calculation input
  • Molecular Series ID Calculation output
  • add series_type
  • group by scaffold inchikey
  • ignore_missing_values
  • cluster configuration switch end
  • skip_clustering_evaluation switch end
  • cluster configuration switch start
  • skip_clustering_evaluation switch start
  • color by iteration
  • filter out selected cluster col
  • cols_selection_for_distance_calculation
  • optimal number of clusters
  • Iteration
  • Hierarchical Cluster input
  • Hierarchical Cluster output
  • counter
  • calculate domain on n. of clusters
  • optimal clustering
  • assign clusters for clust optimisation
  • assign clusters
  • hierarchical clustering
  • desired_number_of_clusters
  • random_seed
  • join original cols and cluster number
  • merge initial vars
  • distance threshold optimization loop end
  • distance threshold optimization loop start
  • exclude rows with missing value in n. of cluster col (i.e. rows with some missing values in descriptors columns)
  • optimization process
  • calculate overall mean silhouette coefficient
  • linkage_type
  • clusters_configuration
  • selected_distance_type
  • selected_distance_col_type
  • sort by n. of cluters
  • remove selected distance suffix
  • assign overall mean silhouette coefficient=0
  • it propagates active inactive branches
  • current_n_of_clusters
  • group by cluster number
  • count current_n_of_clusters
  • skip_clustering_evaluation when current n.of clusters = 1
  • selected_distance_col_type_switch end: 0. bit vector 1. byte vector 2. numeric
  • selected_distance_col_type_switch start: 0. bit vector 1. byte vector 2. numeric
  • select only bit vector col types
  • select only byte vector col types
  • selected_byte_vector_col
  • selected_bit_vector_col
  • filter eventual bit/byte cols top
  • selected_numeric_cols
  • extract headers
  • select just the first (bit/byte vector) column
  • select the first row
  • set selected bit vector distance
  • set selected byte vector distance
  • selected distance col type switch end
  • lnorm_distance_selected switch end
  • selected_distance_col_type_switch: 0. bit vector 1. byte vector 2. numeric
  • lnorm_distance_selected switch start
  • set selected numeric distance
  • filter out cl_num
  • remove cluster number duplicates
  • dimensions
  • cl_num
  • formatted cluster number
  • n_of_pad_characters
  • select max_n_clusters
  • max_n_clusters
  • to vars
  • tversky_distance_selected switch end
  • tversky_distance_selected switch start
  • associate distance factory id
  • selected_distance_col_type_switch
  • tversky_distance_alpha
  • tversky_distance_beta
  • tversky_distance_selected
  • lnorm_distance_selected
  • lnorm-p
  • dummy clustering model port (to avoid problems with inactive clustering model ports in case of non-clustering options)
  • inject var: optimal_number_of_clusters
  • expand_bit-byte_vector
  • expand bit/byte vector switch end
  • expand bit/byte vector switch start
  • Molecular Fingerprints Generator input
  • Molecular Fingerprints Generator output
  • join original cols to fingerprints
  • dummy distance port (to avoid problems with inactive distance port in case of non-clustering options)
  • generate murcko scaffold
  • generate murcko scaffold & framework
  • parse with RDKit
  • generate murcko scaffold inchikey
  • generate murcko framework inchikey
  • murcko scaffold to smiles
  • filter only the top-10 mols for dummy clustering model
  • filter out mols without a scaffold defined (no rings)
  • use series ID as rowID
  • sort by compounds desc
  • grouping_cols_selection
  • extract vars
  • reference table with optimal_number_of_clusters
  • optimal_number_of _cluster = 0 if missing
  • validate table (create optimal_number_ _of_cluster col if doesn't exitst)
  • extract var optimal_number_of_clusters
  • large dataset switch end
  • large dataset switch start
  • mol_act
  • split on bottom a col named molID (if exists) This is reserved for the molID reported as rowID in the input table
  • Molecular Series ID Configuration input
  • Molecular Series ID Configuration output
  • add "[NONE"] column to select no activity col
  • inject large_dataset mols var
  • large_dataset_mols
  • activity_displayed_decimals
  • consider_activity
  • series_type
  • mol_series_id_method
  • mol_act_min
  • mol_act_max
  • mol_act_range
  • mol_act_sd
  • mol_act_median
  • large_dataset
  • select cols to export
  • filter out RDKit molecule
  • calculate domain
  • extract table dimensions
  • assign clusters (by default it applies the optimal number of cluster but that can be manually modified from the interactive view)
  • desired number of clusters
  • max_number_of_clusters
  • replace missing farest objects distance with 0 (otherwise that col cannot be usefully sorted in the interactive view)
  • clust number to string
  • refresh
  • rowID as Series
  • if desired_number_of_clusters = 1: use optimal_number_of_clusters else: use desired_number_of_clusters
  • sort cols PCs and mol_id(set) at the end
  • sort by compounds desc & mol_id set
  • current number of clusters
  • title (scaffold clustering)
  • title (molecular clustering)
  • re-join centroid FP
  • join PCAs
  • calculate PCA
  • centroid_id as rowID
  • extract _original_row_id
  • re-set _original_row_id
  • centroid molecule
  • farest obj A molecule
  • farest obj B molecule
  • reorder cols
  • split top mol_struct col
  • concatenate
  • centroid average distance = 0
  • count n. of mols per cluster
  • add cluster info
  • join centroid murcko scaffold
  • join farest obj A molecule
  • join farest obj B murcko scaffold
  • select non-singletons
  • select singletons
  • split bottom singletons
  • cluster number as rowID
  • sort by cluster number & molID
  • add Centroid
  • create column Objects
  • filter out extra-cols used for col swapping
  • remove objects col
  • Node 326
  • concatenate all the distances of current group
  • append cluster number col
  • calculate distances
  • extract distances
  • remove duplicates objects pairs
  • for each group loop start
  • group for molecules and calculate its distance mean
  • join data
  • for each group loop end
  • filter only distances of current cluster for object 1
  • filter only distances of current cluster for object 2
  • select the most dissimilar pair in cluster (top-1)
  • select the centroid (top-1) (closest cluster point to all the other cluster points)
  • sort by distance desc (& rowID to disambiguate)
  • sort by distance mean (& rowID to disambiguate)
  • new object 1
  • new object 2
  • replace object 1
  • replace object 2
  • select cols to collect
  • centroid murcko scaffold
  • farest obj A murcko scaffold
  • farest obj B murcko scaffold
  • join farest obj A murcko scaffold
  • number of clusters
  • extract number of clusters
  • out_of_range switch end if out of range mols exists: top otherwise: bottom
  • filter out inchikey
  • filter out inchi
  • rename mol_struct as original
  • mol_struct and "Range" cols on top (they need to be displayed first
  • Molecule Activity Aggregation input
  • Molecule Activity Aggregation output
  • concatenate mols with act range < thresholds & mol to re-include
  • default_max_allowed_activity_range
  • max_allowed_activity_range
  • out_of_range switch start if out of range mols exists: top otherwise: bottom
  • group by inchikey
  • inner join retain rowID
  • round to 2 decimals
  • generate inchi & inchikey
  • filter molecules
  • refresh for max_allowed activity_range variation
  • render mol_struct
  • split bottom mol with act range > max_allowed_activity_range
  • mol to re-include on top
  • original rowID
  • original_id_unique _concatenate as rowID
  • sort activity range desc
  • adjust original_id_unique _concatenate
  • excluded_mols_ first_cols_regex
  • activity_range
  • display excluded mols to optionally re-include them
  • mol_struct on top
  • mol_act_cols on top
  • inner join, retain order, maintain rowID
  • mol_activity_cols_regex
  • replace_col
  • replace_col_int switch end
  • replace_col_int switch start
  • extract col header
  • replace rendered col with mol_struct col name
  • rename rendered col with new_col_name
  • split bottom mol struct
  • concatenate rendered & non-rendered molecules
  • filter out duplicates
  • png_width
  • png_height
  • max_n_mol_to_render
  • left_outer_join keep out mol_struct from right table
  • max_n_mol_to_render_range_end
  • reorder cols as in input and eventually place new col (in case rendered col is provided as a new col in the last position)
  • render mol structure (this is always rendered as a new col called _rendered_mol_struct. User's selections are managed later.
  • split top max_n_mol_to_render mols
  • _original_row_id
  • re-establish original_row_id
  • renderer
  • image_type
  • new_col_name
  • transpose for reordering cols
  • replace_col_int
  • replace_col to data
  • identify_mol_series
  • missing_target_search_keywords
  • keep_only_the_largest_fragment
  • select mol_struct bottom
  • Salt Stripper input
  • Salt Stripper output
  • rejoin original cols
  • mol to rdkit
  • keep only largest fragment
  • to molecule
  • out_mol_format
  • sort by mol_act desc
  • mol_act_cols_regex
  • it just propagate the active/inactive branch
  • this simply propagates actives/inactives branches
  • workflow intro
  • uncommon_element_filter (auto re-execution triggered after changing it)
  • macrocycle_filter (auto re-execution triggered after changing it)
  • large_molecule_filter (auto re-execution triggered after changing it)
  • uncommon element filter switch end
  • macrocycle filter switch end
  • uncommon element switch end
  • uncommon element filter switch start
  • macrocycle filter switch start
  • uncommon element switch start
  • filter out MW col
  • Uncommon Molecule Filter input
  • Uncommon Molecule Filter output
  • concatenate excluded mols
  • add exclusion reason macrocycles
  • add exclusion reason
  • add exclusion reason uncommon element
  • mw_threshold
  • calculate MW
  • filter top mols with elements other than: H,C,N,O,P,S,F,Cl,Br,I
  • split top mols containing macrocycles (rings >= 8 atoms)
  • bottom: excluded mols
  • filters change refresh
  • mol_structure renderer
  • filter out mols with MW > mw_threshold
  • excluded molecules
  • mw_threshold filter
  • 50K rows loop start
  • cast types (necessary from SQLite DB)
  • 50K rows loop end
  • filter imp cols
  • rename
  • use unique concatenate chembl_id as row_id
  • adjust mol_id_unique _concatenate
  • mol_activity_median
  • mol_series_col_selection

Nodes

Extensions

Links