1 of 19

Project 2: Inference of chromatin looping status from live cell imaging data

Hongyu Yu, Shreya Mishra, Tee Udomlumleart, Sion Kim, Paul Meneses

2 of 19

Motivation

3 of 19

Chromatin loops are formed by cohesins

Shi et al., 2020 and Cees Dekker

  1. Robust developmental processes and proper cellular homeostasis depends on enhancer and promoter interactions.
  2. Multi-subunit motor protein called cohesins can reel in DNA, bringing distal promoters and enhancers closer together and forming chromatin loops.
  3. Main questions:
    1. When are an enhancer and its cognate promoter in the same chromatin loop?
    2. What is the distance of their interaction? How long? And how often?

Cohesin structure

Loop extrusion animated cartoon

4 of 19

Study chromatin behavior through live-cell imaging

  1. Current live-cell imaging experiments can track the movement of DNA over time.
    1. We can leverage this technique to study EP kinetics.

5 of 19

Imaging chromatin traces in real time is challenging

Gabriele et al., 2022

  1. Experimental limitations allow simultaneous tracking of only upto 2-3 genomic loci over time.
  2. This limitation in imaging necessitates computational methods to infer cohesin looping status on the genome.
    1. Currently, there are two methods…
      1. BILD (Bayesian Inference of Looping Dynamics) by Gabriele, …, Anders Hansen
      2. HMM (Hidden Markov Model) by Mach, …, Luca Giorgetti

6 of 19

Comparison between BILD and HMM looping inference algorithms

Mach et al (HMM)

Gabriele et al (BILD)

Method

  • Two-state HMM with all parameters being unknown (transition probabilities, Gaussian means and variances)
  1. Determine biophysical constants (BayesMSD)
  2. Express likelihood based on Rouse model
  3. Bayesian inference

Advantages

  1. Easy to run, with examples
  2. Simple model
  • Inference is based on biophysical/polymer parameters that best explain the dynamics between two spots

Disadvantages

  1. HMM fails to run when trajectories have missing values
  2. Assumes the input distributions are Gaussian. Inputs used in the paper are not normally distributed.
  1. Complicated, no examples provided

We fail to implement BILD during this hackathon :( sadge

7 of 19

Current methods do not agree

Gabriele et al., 2022

Apply Mach et al’s HMM to Gabriele et al’s data

  1. Fit on the wild type (C36, with both looped and unlooped states) to get HMM parameters
  2. Apply the fitted model to other strains to make conclusions (loop fraction/frequency)

!=

C65

8 of 19

Our projects: Overview

  1. Focus on improving HMM algorithms by …
    1. Imputing missing values before entering them into HMM.
    2. Reformulate HMM to better model a gaussian process.
    3. Rederive HMM to allow incorporation of NaN values.

9 of 19

Imputation algorithms

  1. HMM_ffill
  2. kalman_StructTS (using structural model fitted by maximum likelihood)
  3. kalman_auto_arima (using state space representation of arima model)
  4. weighted_rolling_avg (Rolling window : 4)
  5. simple_rolling_avg (Rolling window : 4)
  6. interpolation_linear
  7. interpolation_stine

10 of 19

Imputation results

11 of 19

Smoothing algorithm

(tested on HMM_base_filled)

  1. scipy.signal.savgol_filter
  2. Others: butter, median, etc.

CTCF 0hr Trace 55

distance

t

12 of 19

Developing HMM+

Motivations

Mach et al., 2022

HMM (Mach et al., 2022) modelled the euclidean distance between trajectories as a mixture of Gaussians for the looped and unlooped states.

  • Distribution appears to be skewed to the right
  • Gaussian implicitly assumes the support is all real values

L

U

13 of 19

Developing HMM+

Semi-supervised Multivariate Gaussian HMM

Mach et al., 2022

Idea:

  1. Reformulate HMM to model each axis as an independent univariate Gaussian
  2. Fix covariance matrix based on control data to help the model distinguish states

C36 (WT) ,C65 (no CTCF), RAD21 depleted

L

U

14 of 19

Developing HMM++

Directly fit HMM from hmmlearn on incomplete data

hmmlearn: Hidden Markov Models in Python with scikit-learn like API

https://pypi.org/project/hmmlearn/

hmmlearn does not allow input with NaN’s

  1. Automatically raise errors if input contains NaN
  2. Fitting: backward-forward algorithms failed
    1. NaNs propagate to all values
    2. Cannot calculate likelihood/probability
  3. Decoding: viterbi algorithm failed
    • NaNs propagate to all values

Solution:

  1. Rederive the EM algorithm with missing values
  2. Change the source code of hmmlearn library

15 of 19

Results by applying modified HMM to Gabriele et al data

Predicted loop fraction

C65 Sample Trajectory

C36 Sample Trajectory

Mean loop lifetimes

Control (C65)

Wildtype (C36)

Mach

54.2%

74.1%

HMM+ (filled)

13.3%

24.6%

BILD

4.7%

7%

HMM++

10.5%

20%

16 of 19

Simulations enable benchmarking of current methods

Workflow

Grid search

MSD

MSD

MSD

MSD

Observed WT Trajectories

Mean MSD

Mean MSD

(Optional)

Missingness

Simulator

,

similarity(

)

Choose maximum similarity for optimal simulation parameters

17 of 19

Simulations show HMM++ is robust to missing data

  • Looped
  • Unlooped
  • Missing

18 of 19

Summary and Future directions

Here we present current limitations in cohesin loop inference algorithms and offer several ways to improve them.

  1. To benchmark model performance, it is crucial to have real ground truth
    1. Simulations are only approximations of real data
    2. Cohesin live imaging to see the true loop status
  2. If no ground truth, come up with new rationale to evaluate models qualitatively�e.g. if a model predicts more loops on control than wild type, then probably not working or use molecular dynamics (MD) simulations.
  3. Downstream analysis: interpret cell type/variability from looping dynamics

19 of 19

Acknowledgements

  1. 4DN Group: Predictive Modeling Working Group
  2. Organizers: Akanksha Sachan, Anupama Jha, Katie Gjoni, Rui Yang, Sean Moran, Shu Zhang
  3. Team 2: Project Managers: Hongyu Yu, Shreya Mishra

Participants: Tee Udomlumleart, Sion Kim, Paul Meneses

  1. Mach. et., al. (HMM), Simon Grosse-Holz (BILD)
  2. Daiqing Wu from Yun Li Lab at UNC-Chapel Hill