The final table is produced by putting together the information already contained in
model, classification and centrality: one row per selected
motif, with its annotation, its positional behaviour and its contribution to the predictor.
report<-cbind(data.frame(motif=rownames(model$coefficients),classification=NA,is_central=FALSE,PE=NA,CE=NA,motif_auroc=NA),coeff=model$coefficients)
report$classification<-TF_ENCODE_KDM_REF$info$target[match(classification$target[match(rownames(model$coefficients),classification$query)],TF_ENCODE_KDM_REF$info$name)]
report<-report[order(report$coeff.central,decreasing=TRUE),]
mm<-match(report$motif,centrality$result$motif)
ss<-which(!is.na(mm))
report$is_central[ss]<-TRUE
report$PE[ss]<-centrality$result$PE[mm[ss]]
report$CE[ss]<-centrality$result$CE[mm[ss]]
report$motif_auroc<-centrality$profiles$aurocs[match(report$motif,colnames(motifs))]
rownames(report)<-1:nrow(report)
Where each column comes from:
| Column | Meaning |
|---|---|
motif | motif identifier, as named in the kdmotifs matrix |
classification | best-matching known factor, from KDMMatch |
is_central | whether the motif came back from KDMMap as both centrally distributed and enriched in the bound sequences |
PE | Positional Enrichment: bound-sequence hits inside the region relative to a uniform positional distribution (NA when the motif is not central) |
CE | Class Enrichment: bound sequences with a hit in the region relative to the unbound ones (NA when the motif is not central) |
motif_auroc | the AUROC of the motif's maximum score per sequence, discriminating bound from unbound sequences; reported as -(1 - AUROC) when the motif scores higher in the unbound sequences, so the sign gives the direction |
coeff.central | Lasso coefficient in the central window; 0 means dropped by the penalty |
coeff.distal | Lasso coefficient in the distal windows |
In the worked example the top row is the expected one: M-105, classified as
NRF1, is centrally enriched, carries by far the largest central coefficient and
reaches an AUROC of 0.98 on its own. Several further NRF1 motifs
(M-59, M-15, M-1) recover the same signal, while co-occurring
factors and chromatin components appear with smaller — and sometimes negative —
contributions.
report
The table below is interactive: sort on any column with its header button, and
filter the rows with the search box — try NRF1 to collect the
motifs that recover the expected factor, or TRUE for the centrally enriched ones.
Showing all 58 motifs
M-105 | NRF1 | TRUE | 2.652382 | 90.250000 | 0.983796 | 55.2483229 | 11.0177173 |
|---|---|---|---|---|---|---|---|
M-59 | NRF1 | TRUE | 2.615022 | 25.600000 | 0.841544 | 18.4492067 | 0.0000000 |
M-79 | POLR2A | FALSE | NA | NA | 0.635132 | 11.2304844 | 0.0000000 |
M-121 | POU5F1 | TRUE | 2.043038 | 10.000000 | 0.806176 | 11.0028776 | 1.7828245 |
M-45 | SP5 | FALSE | NA | NA | 0.642444 | 8.5430765 | 0.5869574 |
M-65 | MAX | FALSE | NA | NA | 0.608916 | 7.3867794 | 8.1340096 |
M-15 | NRF1 | TRUE | 1.592845 | 4.073171 | 0.742032 | 5.3623925 | 3.8518421 |
M-1 | NRF1 | TRUE | 1.742592 | 4.558824 | 0.747740 | 4.9847624 | 0.0000000 |
M-111 | E2F4 | FALSE | NA | NA | 0.737768 | 3.0891332 | 0.0000000 |
M-69 | ZBTB33 | FALSE | NA | NA | 0.690120 | 2.5935345 | 0.0000000 |
M-87 | RELA | FALSE | NA | NA | 0.546036 | 2.1755649 | 0.0000000 |
M-96 | ZBTB33 | FALSE | NA | NA | -0.524284 | 1.6899318 | 0.0000000 |
M-19 | PAX5 | FALSE | NA | NA | 0.611748 | 1.5381432 | 0.0000000 |
M-3 | MAZ | FALSE | NA | NA | 0.715360 | 1.4497146 | 0.0000000 |
M-127 | DR1 | FALSE | NA | NA | 0.615520 | 1.3030470 | 0.0000000 |
M-58 | POLR2A | FALSE | NA | NA | 0.585528 | 0.6540230 | 0.0000000 |
M-176 | MAZ | FALSE | NA | NA | 0.654688 | 0.3926047 | 0.6762921 |
M-12 | RFX1 | FALSE | NA | NA | 0.735448 | 0.0000000 | 8.1986596 |
M-21 | POLR2AphosphoS5 | FALSE | NA | NA | 0.630032 | 0.0000000 | 9.2472885 |
M-32 | UBTF | FALSE | NA | NA | -0.535030 | 0.0000000 | -3.4131301 |
M-39 | RFX5 | FALSE | NA | NA | 0.611868 | 0.0000000 | 17.4784785 |
M-47 | TIGD3 | FALSE | NA | NA | -0.595194 | 0.0000000 | -4.0212622 |
M-51 | SP5 | FALSE | NA | NA | 0.585464 | 0.0000000 | 1.5463699 |
M-60 | POLR2A | FALSE | NA | NA | -0.559606 | 0.0000000 | -2.2160292 |
M-64 | MYBL2 | FALSE | NA | NA | 0.598644 | 0.0000000 | 1.5930784 |
M-71 | MAX | FALSE | NA | NA | 0.721808 | 0.0000000 | 7.1629337 |
M-72 | NR2C1 | FALSE | NA | NA | 0.659092 | 0.0000000 | 12.5724585 |
M-74 | E4F1 | FALSE | NA | NA | 0.611704 | 0.0000000 | 8.4145309 |
M-89 | KAT8 | FALSE | NA | NA | 0.597364 | 0.0000000 | 9.4283686 |
M-95 | CEBPB | TRUE | 1.270818 | 2.821918 | 0.723272 | 0.0000000 | 1.6673001 |
M-107 | ZBTB6 | FALSE | NA | NA | -0.576518 | 0.0000000 | -2.8420410 |
M-116 | SUZ12 | FALSE | NA | NA | 0.580548 | 0.0000000 | 14.7997525 |
M-117 | UBTF | FALSE | NA | NA | 0.608380 | 0.0000000 | 9.7505437 |
M-134 | ZNF701 | FALSE | NA | NA | 0.571412 | 0.0000000 | 0.6963579 |
M-137 | HIC1 | FALSE | NA | NA | -0.693424 | 0.0000000 | -1.7630981 |
M-142 | ZXDB | FALSE | NA | NA | -0.643178 | 0.0000000 | -1.6395114 |
M-146 | ZSCAN30 | FALSE | NA | NA | -0.665034 | 0.0000000 | -7.9579753 |
M-154 | CREB3L1 | FALSE | NA | NA | -0.516908 | 0.0000000 | -1.5176712 |
M-161 | KLF10 | FALSE | NA | NA | -0.665854 | 0.0000000 | -4.4196378 |
M-171 | ZFX | FALSE | NA | NA | -0.625822 | 0.0000000 | -4.0894485 |
M-184 | MYC | FALSE | NA | NA | -0.607996 | 0.0000000 | -0.4387267 |
M-199 | MYC | FALSE | NA | NA | -0.606256 | 0.0000000 | -3.3977017 |
M-201 | ZNF773 | FALSE | NA | NA | -0.635948 | 0.0000000 | -0.3464411 |
M-208 | CTCF | FALSE | NA | NA | -0.678164 | 0.0000000 | -1.4129204 |
M-209 | EZH2phosphoT487 | FALSE | NA | NA | 0.525792 | 0.0000000 | 0.3654441 |
M-211 | AEBP2 | FALSE | NA | NA | 0.570936 | 0.0000000 | 4.0582180 |
M-212 | RCOR1 | FALSE | NA | NA | -0.518806 | -0.0986441 | -1.8648379 |
M-16 | ZBTB8A | FALSE | NA | NA | 0.631388 | -0.6610866 | 0.0000000 |
M-163 | CBX5 | FALSE | NA | NA | -0.606888 | -0.8275177 | 0.0000000 |
M-195 | BRCA1 | FALSE | NA | NA | 0.600856 | -0.8475483 | 0.0000000 |
M-197 | ZNF223 | FALSE | NA | NA | -0.669376 | -0.9711697 | -9.4134605 |
M-75 | NR3C1 | FALSE | NA | NA | -0.548448 | -1.7788716 | 0.0000000 |
M-56 | MYNN | FALSE | NA | NA | -0.618130 | -2.9461904 | 0.0000000 |
M-23 | ZKSCAN3 | FALSE | NA | NA | -0.555412 | -3.6472562 | -4.2026567 |
M-136 | ZBTB10 | FALSE | NA | NA | -0.701052 | -4.6188206 | 0.0000000 |
M-162 | PAX5 | FALSE | NA | NA | -0.596182 | -4.9247016 | 0.0000000 |
M-191 | EP300 | FALSE | NA | NA | -0.685508 | -10.2206241 | 0.0000000 |
M-120 | ZNF423 | FALSE | NA | NA | -0.518490 | -12.9597986 | 0.0000000 |