Genetically encoded assembly recorder temporally resolves cellular history.
The 2 matches
- [1] § Methods › Image processing and data analysis ↔ Codes_R2/Single_particle_tracing_timelapse/crystal_tracer/algorithm/tracking.py, lines 148–253 · score 0.79 · linear sum assignment, linear programming, reverse, algorithm, match, connect
- [2] § Methods › Image processing and data analysis ↔ Codes_R2/3D_segmentation/CrystalTracer3D/band.py, lines 182–303 · score 0.50 · perpendicular, edges, noise, width, axis, band
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 440 lines · 18 KB · MIT · 1 match
- import pandas as pd
- from sklearn.neighbors import KDTree
- import numpy as np
- from tqdm import tqdm
- from sklearn.linear_model import LinearRegression
- from math import sqrt, atan2, pi
- from scipy.optimize import linear_sum_assignment
- from collections import Counter
- class Predictor:
- def __init__(self, min_sampling_count=2, min_sampling_elapse=2):
- self.min_sampling_count = min_sampling_count
- self.min_sampling_elapse = min_sampling_elapse
- self._mod = None
- def fit(self, x, y):
- # fit time-area model
- # no enough points, return just average
- if len(x) < self.min_sampling_count or x[-1] - x[0] < self.min_sampling_elapse:
- # when there is not enough or time frame is too short
- self._mod = np.mean(y, axis=0)
- else:
- self._mod = LinearRegression()
- # increasing weight for new entries
- self._mod.fit(np.array(x).reshape(-1, 1), y, [x[0] - i + 1 for i in x])
- return self
- def predict(self, x):
- if type(self._mod) is LinearRegression:
- return self._mod.predict([[x]])[0]
- else:
- return self._mod
- def angle_dist(center, other):
- vec = other - center
- dist = np.linalg.norm(vec, axis=-1)
- angle = np.array([atan2(v[0], v[1]) for v in vec])
- order = np.argsort(angle)
- return dist[order], angle[order]
- def neighborhood_match(center, other, centers, others):
- dist, rad = angle_dist(center, other)
- scores = []
- for c, o in zip(centers, others):
- d, r = angle_dist(c, o)
- diff_r = abs(np.subtract.outer(rad, r))
- diff_r = np.clip(diff_r, None, 2 * pi - diff_r)
- diff_d = abs(np.subtract.outer(dist, d))
- diff = diff_d * diff_r
- choice = linear_sum_assignment(diff)
- scores.append(diff[choice].mean())
- return scores
- def independent_match(tables: list[pd.DataFrame], area_normalizer=500., nn=5, time_gap_thr=5, min_sampling_count=5,
- min_sampling_elapse=10,
- max_area_overflow=.25, max_intensity_overflow=.25, callback=None):
- """
- Connect the crystals in each frame in and independent manner, starting from the last frame. It forms a track for
- each crystal in the last frame until it disappears in reverse time order. The output will be reversed back.
- :param tables: a list of dataframes of detected crystals
- :param area_normalizer: the distance threshold controller
- :param nn: number of nearest neighboring crystals considered for matching
- :param time_gap_thr: max time gap allowed in the track
- :param min_sampling_count: min No. of sampling points for area fitting
- :param min_sampling_elapse: min time elapse of sampling points for area fitting
- :param max_area_overflow: the max ratio of area difference
- :param max_intensity_overflow: the max ratio of intensity difference
- :param callback: a function to call in each iteration
- :return: identified tracks, a list of lists of tuples, (frame, index)
- """
- # init from the last frame
- # chains: the tracks. list of (frame, crystal_id)
- # pred_area: predicted area based on previous discovery
- nn += 1
- tracks = []
- pred_area = []
- pred_gray = []
- trees = [KDTree(t[['y', 'x']]) for t in tables]
- for ind, row in tables[-1].iterrows():
- tracks.append([(len(tables) - 1, ind)])
- # init as the start crystal size
- pred_area.append(Predictor(min_sampling_count, min_sampling_elapse).fit([0], [row['area']]))
- pred_gray.append(Predictor().fit([0], [row['intensity']]))
- callback()
- # start tracking from the one but last frame
- for i_frame in tqdm(range(len(tables) - 2 , -1, -1)):
- cur_pos = tables[i_frame][['y', 'x']].to_numpy()
- n = min(nn, len(cur_pos))
- cur_ind = trees[i_frame].query(cur_pos, n, dualtree=True, return_distance=False)
- # check for each crystal which track can be appended to
- for track, mod_area, mod_gray in zip(tracks, pred_area, pred_gray):
- # these tracks are terminated for big time gap
- if track[-1][0] - i_frame > time_gap_thr + 1:
- continue
- i_frame_last, i_crystal_last = track[-1]
- center = tables[i_frame_last].loc[i_crystal_last, ['y', 'x']].to_numpy()
- ref_area = mod_area.predict(i_frame)
- dist_thr = area_normalizer / sqrt(ref_area)
- i_crystals = trees[i_frame].query_radius([center], dist_thr)[0]
- # estimate the area for this frame
- scale = sqrt(area_normalizer / ref_area)
- i_crystals = i_crystals[np.abs(ref_area - tables[i_frame].loc[i_crystals, 'area'].to_numpy()) <
- max_area_overflow * scale * ref_area]
- ref_gray = mod_gray.predict(i_frame)
- i_crystals = i_crystals[np.abs(tables[i_frame].loc[i_crystals, 'intensity'].to_numpy() - ref_gray) <
- max_intensity_overflow * scale * ref_gray]
- if len(i_crystals) == 0:
- continue
- ind = trees[i_frame_last].query([center], n, return_distance=False)[0][1:]
- ans = neighborhood_match(center, tables[i_frame_last].loc[ind, ['y', 'x']].to_numpy(),
- tables[i_frame].loc[i_crystals, ['y', 'x']].to_numpy(),
- [tables[i_frame].loc[cur_ind[i][1:], ['y', 'x']].to_numpy() for i in i_crystals])
- # update track if time gap is met
- track.append((i_frame, i_crystals[np.argmin(ans)]))
- # update area prediction
- mod_area.fit([c[0] for c in track], [tables[c[0]].at[c[1], 'area'] for c in track])
- mod_gray.fit([c[0] for c in track], [tables[c[0]].at[c[1], 'intensity'] for c in track])
- if callback is not None:
- callback()
- for t in tracks:
- t.reverse()
- return tracks
- def ratio_diff(a, b):
- t = a / (b + 1e-5)
- return (t + 1 / t) / 2
- def linear_programming2(tables, area_normalizer=500., nn=10, time_gap_thr=10, min_sampling_count=5, min_sampling_elapse=10,
- max_area_overflow=.25, max_intensity_overflow=.25, w_dist=1., w_area=1., w_intensity=1., w_local=1.,
- callback=None):
- """
- Connect the crystals in each frame in and independent manner, starting from the last frame. It forms a track for
- each crystal in the last frame until it disappears in reverse time order. The output will be reversed back.
- :param tables: a list of dataframes of detected crystals
- :param area_normalizer: the distance threshold
- :param nn: number of nearest neighboring crystals considered for matching
- :param time_gap_thr: max time gap allowed in the track
- :param min_sampling_count: min No. of sampling points for area fitting
- :param min_sampling_elapse: min time elapse of sampling points for area fitting
- :param max_area_overflow: the max ratio of area difference
- :param max_intensity_overflow: the max ratio of intensity difference
- :return: identified tracks, a list of lists of tuples, (frame, index)
- """
- def cost(v1, v2):
- p1 = v1[:2]
- p2 = v2[:2]
- dist = np.linalg.norm(p1 - p2)
- area_diff = abs(v1[2] - v2[2])
- gray_diff = abs(v1[3] - v2[3])
- # v1 = v1[4:].reshape(-1, 2)
- # v2 = v2[4:].reshape(-1, 2)
- # local_score = neighborhood_match(p1, v1, [p2], [v2])[0]
- return w_dist * dist ** 2 + w_area * area_diff + w_intensity * gray_diff
- cost_func = np.vectorize(cost, signature='(n),(n)->()')
- # init from the last frame
- # chains: the tracks. list of (frame, crystal_id)
- # pred_area: predicted area based on previous discovery
- tracks = []
- pred_area = []
- pred_gray = []
- trees = [KDTree(t[['y', 'x']]) for t in tables]
- for ind, row in tables[-1].iterrows():
- tracks.append([(len(tables) - 1, ind)])
- # init as the start crystal size
- pred_area.append(Predictor(min_sampling_count, min_sampling_elapse).fit([0], [row['area']]))
- pred_gray.append(Predictor().fit([0], [row['intensity']]))
- # start tracking from the one but last frame
- for i_frame in tqdm(range(len(tables) - 2 , -1, -1)):
- if callback is not None:
- callback()
- cur_features = tables[i_frame][['y', 'x', 'area', 'intensity']].to_numpy()
- # n = min(nn, len(cur_features))
- # cur_ind = trees[i_frame].query(cur_features[:, :2], n, dualtree=True, return_distance=False)
- # cur_pos = np.array([cur_features[i, :2] for i in cur_ind]).reshape(cur_ind.shape[0], -1)
- # cur_features = np.concatenate([cur_features, cur_pos], axis=1)
- active = []
- pre_features = []
- for t, mod_area, mod_gray in zip(tracks, pred_area, pred_gray):
- i_frame_last, i_crystal_last = t[-1]
- if i_frame_last - i_frame > 1:
- continue
- active.append(t)
- feature = tables[i_frame_last].loc[i_crystal_last, ['y', 'x']].to_list()
- # prev_ind = trees[i_frame_last].query([feature], n, return_distance=False)[0]
- # prev_pos = tables[i_frame_last].loc[prev_ind, ['y', 'x']].to_numpy().reshape(-1)
- feature.append(mod_area.predict(i_frame))
- feature.append(mod_gray.predict(i_frame))
- # feature.extend(list(prev_pos))
- pre_features.append(feature)
- if len(active) == 0:
- continue
- pre_features = np.array(pre_features)
- # linear programming
- mat = cost_func(pre_features.reshape(-1, 1, pre_features.shape[1]),
- cur_features.reshape(1, -1, cur_features.shape[1]))
- choice = linear_sum_assignment(mat)
- choice = dict(zip(*choice))
- for i, (t, mod_area, mod_gray, f1) in enumerate(zip(active, pred_area, pred_gray, pre_features)):
- # update tracks and models
- coord = f1[:2]
- ref_area = f1[2]
- ref_gray = f1[3]
- dist_thr = area_normalizer / sqrt(ref_area)
- if i not in choice:
- continue
- c = choice[i]
- f2 = cur_features[c]
- cur_coord = f2[:2]
- cur_area = f2[2]
- cur_gray = f2[3]
- scale = sqrt(area_normalizer / ref_area)
- if np.linalg.norm(coord - cur_coord) > dist_thr or \
- abs(ref_area - cur_area) > max_area_overflow * scale * ref_area or \
- abs(cur_gray - ref_gray) > max_intensity_overflow * scale * ref_gray:
- continue
- t.append((i_frame, c))
- mod_area.fit([c[0] for c in t], [tables[c[0]].at[c[1], 'area'] for c in t])
- mod_gray.fit([c[0] for c in t], [tables[c[0]].at[c[1], 'intensity'] for c in t])
- for t in tracks:
- t.reverse()
- callback()
- return tracks
- def linear_programming(tables, area_normalizer=500., use_contig=True, callback=None):
- """
- Connect the crystals in each frame in and independent manner, starting from the last frame. It forms a track for
- each crystal in the last frame until it disappears in reverse time order. The output will be reversed back.
- :param tables: a list of dataframes of detected crystals
- :param area_normalizer: the distance threshold
- :param use_contig: if allow the tracing to be continued on broken tracks (will affect all the tracks)
- :return: identified tracks, a list of lists of tuples, (frame, index)
- """
- # preprocessing: rmdup
- for i, tab in enumerate(tables):
- flag = [True] * len(tab)
- coords = tab[['y', 'x']].to_numpy()
- radii = np.sqrt(tab['area'].to_numpy() / pi)
- points1 = coords[:, np.newaxis, :]
- points2 = coords[np.newaxis, :, :]
- dist = np.sqrt(np.sum((points1 - points2) ** 2, axis=-1))
- dist[dist == 0] = np.inf
- for a, b in np.argwhere(dist < radii):
- if radii[a] < radii[b]:
- flag[a] = False
- else:
- flag[b] = False
- tables[i] = tab[flag]
- # init from the last frame
- # chains: the tracks. list of (frame, crystal_id)
- # pred_area: predicted area based on previous discovery
- tracks = [[(len(tables) - 1, i)] for i in tables[-1].index]
- # start tracking from the 2nd last frame
- for i_frame in tqdm(range(len(tables) - 2 , -1, -1)):
- if callback is not None:
- callback()
- pre_features = tables[i_frame + 1][['y', 'x', 'area', 'intensity']].to_numpy()
- cur_features = tables[i_frame][['y', 'x', 'area', 'intensity']].to_numpy()
- # linear programming
- sq_diff = (pre_features[:, np.newaxis, :2] - cur_features[np.newaxis, :, :2]) ** 2
- distances = np.sqrt(np.sum(sq_diff, axis=-1))
- area_diff = ratio_diff(pre_features[:, np.newaxis, 2], cur_features[np.newaxis, :, 2])
- intensity_diff = ratio_diff(pre_features[:, np.newaxis, 3], cur_features[np.newaxis, :, 3])
- s = np.log((distances + 1) * area_diff * intensity_diff)
- choice = linear_sum_assignment(s)
- pre_ind = tables[i_frame + 1].index.to_numpy()
- cur_ind = tables[i_frame].index.to_numpy()
- choice = dict(zip(pre_ind[choice[0]], cur_ind[choice[1]]))
- used = set()
- for t in tracks:
- # update tracks and models
- i_frame_last, i_crystal_last = t[-1]
- if i_frame_last - i_frame > 1:
- continue
- if i_crystal_last not in choice:
- continue
- c = choice[i_crystal_last]
- pre_area = tables[i_frame_last].at[i_crystal_last, 'area']
- pre_coords = tables[i_frame_last].loc[i_crystal_last, ['y', 'x']]
- cur_coords = tables[i_frame].loc[c, ['y', 'x']]
- dist_thr = area_normalizer / sqrt(pre_area)
- if np.linalg.norm(pre_coords - cur_coords) > dist_thr:
- continue
- t.append((i_frame, c))
- used.add(c)
- if use_contig:
- for c in set(cur_ind) - used:
- tracks.append([(i_frame, c)])
- for t in tracks:
- t.reverse()
- callback()
- return tracks
- def linear_programming3(tables, area_normalizer=500., trace_frames=5, callback=None):
- """
- Connect the crystals in each frame in and independent manner, starting from the last frame. It forms a track for
- each crystal in the last frame until it disappears in reverse time order. The output will be reversed back.
- In this version, the LP is performed between not only adjacent frames but those within a time range to make the connectivity more
- robust.
- :param tables: a list of dataframes of detected crystals
- :param area_normalizer: the distance threshold
- :param trace_frames: the number of adjacent frames to consider
- :return: identified tracks, a list of lists of tuples, (frame, index)
- """
- # preprocessing: rmdup
- for i, tab in enumerate(tables):
- flag = [True] * len(tab)
- coords = tab[['y', 'x']].to_numpy()
- radii = np.sqrt(tab['area'].to_numpy() / pi)
- points1 = coords[:, np.newaxis, :]
- points2 = coords[np.newaxis, :, :]
- dist = np.sqrt(np.sum((points1 - points2) ** 2, axis=-1))
- dist[dist == 0] = np.inf
- for a, b in np.argwhere(dist < radii):
- if radii[a] < radii[b]:
- flag[a] = False
- else:
- flag[b] = False
- tables[i] = tab[flag]
- # init from the last frame
- # chains: the tracks. list of (frame, crystal_id)
- # pred_area: predicted area based on previous discovery
- # tracks:
- # [
- # [(time_frame, crystal_id), ...]
- # ]
- tracks = [[(len(tables) - 1, i)] for i in tables[-1].index]
- tables[-1]['parent'] = range(len(tables[-1])) # this is a map of all crystals to tracks
- # start tracking from the 2nd last frame
- for i_frame in tqdm(range(len(tables) - 2 , -1, -1)):
- if callback is not None:
- callback()
- cur_features = tables[i_frame][['y', 'x', 'area', 'intensity']].to_numpy()
- cur_ind = tables[i_frame].index.to_numpy()
- choices = {}
- for pre in range(i_frame + 1, min(i_frame + 1 + trace_frames, len(tables))):
- pre_features = tables[pre][['y', 'x', 'area', 'intensity']].to_numpy()
- pre_track_ind = tables[pre]['parent'].to_numpy()
- # linear programming
- sq_diff = (pre_features[:, np.newaxis, :2] - cur_features[np.newaxis, :, :2]) ** 2
- distances = np.sqrt(np.sum(sq_diff, axis=-1))
- area_diff = ratio_diff(pre_features[:, np.newaxis, 2], cur_features[np.newaxis, :, 2])
- intensity_diff = ratio_diff(pre_features[:, np.newaxis, 3], cur_features[np.newaxis, :, 3])
- s = np.log((distances + 1) * area_diff * intensity_diff)
- choice = linear_sum_assignment(s)
- # map each current crystals to existing tracks
- for a, b in zip(pre_track_ind[choice[0]], cur_ind[choice[1]]):
- if b not in choices:
- choices[b] = []
- choices[b].append(a)
- def most_frequent_word(word_list):
- word_counts = Counter(word_list)
- most_common_word = word_counts.most_common(1)
- return most_common_word[0][0]
- # choose the most frequent preceding track for the crystals
- choice = {}
- for k, v in choices.items():
- a = int(most_frequent_word(v))
- if a == -1:
- continue
- if a not in choice:
- choice[a] = []
- choice[a].append(k)
- tables[i_frame]['parent'] = -1
- for k, v in choice.items():
- i_frame_last, i_crystal_last = tracks[k][-1]
- pre_area = tables[i_frame_last].at[i_crystal_last, 'area']
- pre_coords = tables[i_frame_last].loc[i_crystal_last, ['y', 'x']]
- dists = []
- chs = []
- # if multiple choices exist, choose the nearest one
- for ch in v:
- cur_coords = tables[i_frame].loc[ch, ['y', 'x']]
- dist_thr = area_normalizer / sqrt(pre_area)
- dist = np.linalg.norm(pre_coords - cur_coords)
- if dist > dist_thr:
- continue
- dists.append(dist)
- chs.append(ch)
- if len(dists) > 0:
- ch = chs[np.argmin(dists)]
- tracks[k].append((i_frame, ch))
- tables[i_frame].at[ch, 'parent'] = k # update the track belonging of each crystal
- for t in tracks:
- t.reverse()
- callback()
- return tracks
tracking.py at commit 6b8d1a2, under MIT · at the source
Overview
- Department of Materials Science and Engineering, Whiting School of Engineering, Johns Hopkins University, Baltimore, MD, USA
- Institute for NanoBiotechnology, Whiting School of Engineering, Johns Hopkins University, Baltimore, MD, USA
- Kavli Neuroscience Discovery Institute, Johns Hopkins University, Baltimore, MD, USA
- These authors contributed equally: Yuqing Yan, Jiaxi Lu, Zhe Li
- Institute for Protein Design, University of Washington, Seattle, WA, USA
- Present address: Department of Biomedical Engineering, Southern University of Science and Technology, Shenzhen, China
- Division of Biology and Biological Engineering, California Institute of Technology, Pasadena, CA, USA
- Solomon H. Snyder Department of Neuroscience, School of Medicine, Johns Hopkins University, Baltimore, MD, USA
- Center for Cell Dynamics, School of Medicine, Johns Hopkins University, Baltimore, MD, USA
Abstract
Cells constantly change their molecular state in response to internal and external cues1. Mapping cellular activity in tissues with spatiotemporal precision is essential for understanding organ physiology, pathology and regenerative processes. Current cell-sensing modalities primarily rely on either end point analysis that takes static snapshots2 or real-time sensing that monitors a small subset of cells3,4. Here we introduce granularly expanding memory for intracellular narrative integration (GEMINI), an in cellulo recording platform that leverages a computationally designed protein assembly as an intracellular memory device to record the history of individual cells. GEMINI grows predictably within live cells, capturing cellular events as tree-ring-like fluorescent patterns for imaging-based retrospective readout. Absolute chronological information of activity histories is attainable with hour-level accuracy. GEMINI effectively maps differential NF-κB-mediated transcriptional changes, resolving fast dynamics of 15 min and providing quantifiable signal amplitudes. In a xenograft model, GEMINI records inflammation-induced signalling dynamics across tissue, revealing spatial heterogeneity linked to vascular density. When expressed in the mouse brain, GEMINI minimally impacts neuronal functions and can resolve both transcriptional changes and activity patterns of neurons. Together, GEMINI provides a robust and generalizable means for spatiotemporal mapping of cell dynamics underlying physiological and pathological processes in both culture and intact tissues.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
DCLinLab/GEMINI
6b8d1a2e5c2d5f767665eaeb44d0a18510ce786d, 31 March 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
67 files
- Codes_R2/
3D_segmentation/ , Python, 1 lineCrystalTracer3D/ __init__.py - Codes_R2/
3D_segmentation/ , Python, 303 lines, 1 matchCrystalTracer3D/ band.py - Codes_R2/
3D_segmentation/ , Python, 3 linesCrystalTracer3D/ gwdt/ __init__.py - Codes_R2/
3D_segmentation/ , Python, 46 linesCrystalTracer3D/ gwdt/ gwdt.py - Codes_R2/
3D_segmentation/ , C++, 4,437 linesCrystalTracer3D/ gwdt/ gwdt_impl.cpp - Codes_R2/
3D_segmentation/ , Python, 22 linesCrystalTracer3D/ intensity.py - Codes_R2/
3D_segmentation/ , Python, 136 linesCrystalTracer3D/ io.py - Codes_R2/
3D_segmentation/ , Python, 274 linesCrystalTracer3D/ plot.py - Codes_R2/
3D_segmentation/ , Python, 217 linesCrystalTracer3D/ segment.py - Codes_R2/
3D_segmentation/ , Python, 141 linesCrystalTracer3D/ util.py - Codes_R2/
3D_segmentation/ , Python, 15 linessetup.py - Codes_R2/
3D_segmentation/ , Python, 68 linesvessel_global/ Z9-mag/ crystal.py - Codes_R2/
3D_segmentation/ , Python, 29 linesvessel_global/ Z9-mag/ dist.py - Codes_R2/
3D_segmentation/ , Python, 41 linesvessel_global/ Z9-mag/ heatmap.py - Codes_R2/
3D_segmentation/ , Python, 35 linesvessel_global/ Z9-mag/ vessel.py - Codes_R2/
3D_segmentation/ , Python, 61 linesvessel_global/ Z9/ assebmle_crystal.py - Codes_R2/
3D_segmentation/ , Python, 54 linesvessel_global/ Z9/ crystal.py - Codes_R2/
3D_segmentation/ , Python, 60 linesvessel_global/ Z9/ heatmap.py - Codes_R2/
3D_segmentation/ , Python, 52 linesvessel_global/ Z9/ vessel.py - Codes_R2/
3D_segmentation/ , Python, 293 linesvessel_global/ batch/ cli.py - Codes_R2/
3D_segmentation/ , Jupyter, 403 linesvessel_global/ batch/ experiment.ipynb - Codes_R2/
3D_segmentation/ , Python, 26 linesvessel_global/ batch/ extra_plots/ boxed_vessel.py - Codes_R2/
3D_segmentation/ , Python, 41 linesvessel_global/ batch/ extra_plots/ get_vessel_raw.py - Codes_R2/
3D_segmentation/ , Python, 107 linesvessel_global/ batch/ extra_plots/ pixel_heatmap.py - Codes_R2/
3D_segmentation/ , Python, 22 linesvessel_global/ batch/ run.py - Codes_R2/
3D_segmentation/ , Jupyter, 82 linesvessel_local/ inspection.ipynb - Codes_R2/
3D_segmentation/ , Python, 29 linesvessel_local/ profile.py - Codes_R2/
3D_segmentation/ , Python, 47 linesvessel_local/ segment.py - Codes_R2/
3D_segmentation/ , Python, 61 lineswith_neurons/ concat_crops.py - Codes_R2/
3D_segmentation/ , Python, 48 lineswith_neurons/ crystal.py - Codes_R2/
3D_segmentation/ , Jupyter, 143 lineswith_neurons/ exp.ipynb - Codes_R2/
3D_segmentation/ , Python, 88 lineswith_neurons/ export_crops.py - Codes_R2/
3D_segmentation/ , Python, 48 lineswith_neurons/ link.py - Codes_R2/
3D_segmentation/ , Python, 69 lineswith_neurons/ neuron.py - Codes_R2/
3D_segmentation/ , Jupyter, 185 lineswith_neurons/ viz.ipynb - Codes_R2/
3D_segmentation/ , Python, 142 lineswith_neurons/ viz.py - Codes_R2/
CellPaintingAnalysis.ipy , Jupyter, 634 linesnb - Codes_R2/
MorphologyAnalysis.ipynb , Jupyter, 1,110 lines - Codes_R2/
SijngleCrystalProfileExt , Jupyter, 447 linesraction.ipynb - Codes_R2/
Single_particle_tracing_ , Python, 1 linetimelapse/ crystal_tracer/ __init__.py - Codes_R2/
Single_particle_tracing_ , Python, 1 linetimelapse/ crystal_tracer/ algorithm/ __init__.py - Codes_R2/
Single_particle_tracing_ , Python, 3 linestimelapse/ crystal_tracer/ algorithm/ gwdt/ __init__.py - Codes_R2/
Single_particle_tracing_ , Python, 46 linestimelapse/ crystal_tracer/ algorithm/ gwdt/ gwdt.py - Codes_R2/
Single_particle_tracing_ , Python, 440 lines, 1 matchtimelapse/ crystal_tracer/ algorithm/ tracking.py - Codes_R2/
Single_particle_tracing_ , Python, 1 linetimelapse/ crystal_tracer/ gui/ __init__.py - Codes_R2/
Single_particle_tracing_ , Python, 148 linestimelapse/ crystal_tracer/ gui/ components.py - Codes_R2/
Single_particle_tracing_ , Python, 891 linestimelapse/ crystal_tracer/ gui/ main.py - Codes_R2/
Single_particle_tracing_ , Python, 143 linestimelapse/ crystal_tracer/ gui/ ui_loader.py - Codes_R2/
Single_particle_tracing_ , Python, 262 linestimelapse/ crystal_tracer/ gui/ workers.py - Codes_R2/
Single_particle_tracing_ , Python, 40 linestimelapse/ crystal_tracer/ utils.py - Codes_R2/
Single_particle_tracing_ , Python, 1 linetimelapse/ crystal_tracer/ visual/ __init__.py - Codes_R2/
Single_particle_tracing_ , Python, 116 linestimelapse/ crystal_tracer/ visual/ video.py - Codes_R2/
Single_particle_tracing_ , Python, 86 linestimelapse/ experiment/ chip_detection.py - Codes_R2/
Single_particle_tracing_ , Python, 128 linestimelapse/ experiment/ gfp_only/ ensemble.py - Codes_R2/
Single_particle_tracing_ , Python, 42 linestimelapse/ experiment/ sample1_zip/ area_plot.py - Codes_R2/
Single_particle_tracing_ , Python, 84 linestimelapse/ experiment/ sample1_zip/ filming.py - Codes_R2/
Single_particle_tracing_ , Python, 57 linestimelapse/ experiment/ sample1_zip/ filter_stacks.py - Codes_R2/
Single_particle_tracing_ , Python, 11 linestimelapse/ experiment/ sample1_zip/ track_detections.py - Codes_R2/
Single_particle_tracing_ , Python, 42 linestimelapse/ experiment/ sample2_czi/ area_plot.py - Codes_R2/
Single_particle_tracing_ , Python, 60 linestimelapse/ experiment/ sample2_czi/ draw_detections.py - Codes_R2/
Single_particle_tracing_ , Python, 75 linestimelapse/ experiment/ sample2_czi/ filming.py - Codes_R2/
Single_particle_tracing_ , Python, 31 linestimelapse/ experiment/ sample2_czi/ filter_stacks.py - Codes_R2/
Single_particle_tracing_ , Python, 14 linestimelapse/ experiment/ sample2_czi/ track_detections.py - Codes_R2/
Single_particle_tracing_ , Python, 32 linestimelapse/ experiment/ whole_video.py - Codes_R2/
Single_particle_tracing_ , Python, 27 linestimelapse/ setup.py - Codes_R2/
Single_particle_tracing_ , Python, 61 linestimelapse/ tools/ split_czi_series.py - LICENSE, License, 21 lines
Code availability
Custom data analysis code developed and used for this project is available at GitHub (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 66 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data Availability Statement
Source datasets for the in vivo experiments are provide with the paper. Complete datasets for this article, including those for main figures, extended data figures and supplementary figures, are available at GitHub (https://
Custom data analysis code developed and used for this project is available at GitHub (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 16 authors, 15 MeSH terms, 2 funders, 49 references.
Cite
This paper
Yan, Y., Lu, J., Li, Z., Zhao, Z., Shay, T. F., Wang, S., Lei, Y., Wang, Y., Chen, W., Parker, P., Yang, H., Qi, A., Sun, Y., Bergles, D. E., Baker, D., & Lin, D. (2026). Genetically encoded assembly recorder temporally resolves cellular history. Nature, 652(8111), 1049-1059. https://
BibTeX
@article{yan2026genetica
author = {Yan, Yuqing and Lu, Jiaxi and Li, Zhe and Zhao, Zuohan and Shay, Timothy F and Wang, Shunzhi and Lei, Yaping and Wang, Yimei and Chen, Wei and Parker, Patrick and Yang, Hongru and Qi, Aileen and Sun, Yongzhi and Bergles, Dwight E and Baker, David and Lin, Dingchang},
title = {{Genetically encoded assembly recorder temporally resolves cellular history}},
journal = {Nature},
year = {2026},
month = mar,
volume = {652},
number = {8111},
pages = {1049--1059},
publisher = {Nature Portfolio},
issn = {0028-0836},
doi = {10.1038/
url = {https://
pmid = {41775935},
pmcid = {PMC13102709}
}
RIS
TY - JOUR
AU - Yan, Yuqing
AU - Lu, Jiaxi
AU - Li, Zhe
AU - Zhao, Zuohan
AU - Shay, Timothy F
AU - Wang, Shunzhi
AU - Lei, Yaping
AU - Wang, Yimei
AU - Chen, Wei
AU - Parker, Patrick
AU - Yang, Hongru
AU - Qi, Aileen
AU - Sun, Yongzhi
AU - Bergles, Dwight E
AU - Baker, David
AU - Lin, Dingchang
TI - Genetically encoded assembly recorder temporally resolves cellular history
T2 - Nature
J2 - Nature
PY - 2026
DA - 2026/
VL - 652
IS - 8111
SP - 1049
EP - 1059
SN - 0028-0836
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Genetically encoded assembly recorder temporally resolves cellular history",
"container-title": "Nature",
"author": [
{
"family": "Yan",
"given": "Yuqing"
},
{
"family": "Lu",
"given": "Jiaxi"
},
{
"family": "Li",
"given": "Zhe"
},
{
"family": "Zhao",
"given": "Zuohan"
},
{
"family": "Shay",
"given": "Timothy F"
},
{
"family": "Wang",
"given": "Shunzhi"
},
{
"family": "Lei",
"given": "Yaping"
},
{
"family": "Wang",
"given": "Yimei"
},
{
"family": "Chen",
"given": "Wei"
},
{
"family": "Parker",
"given": "Patrick"
},
{
"family": "Yang",
"given": "Hongru"
},
{
"family": "Qi",
"given": "Aileen"
},
{
"family": "Sun",
"given": "Yongzhi"
},
{
"family": "Bergles",
"given": "Dwight E"
},
{
"family": "Baker",
"given": "David"
},
{
"family": "Lin",
"given": "Dingchang"
}
],
"container-title-short":
"volume": "652",
"issue": "8111",
"page": "1049-1059",
"DOI": "10.1038/
"PMID": "41775935",
"PMCID": "PMC13102709",
"ISSN": "0028-0836",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
3
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: Cellpose, napari, tifffile, 9 other tools
- [2] doi:10.1038/s42003-026-10063-9 [code]
- Conserved Kir channel mechanisms governing intrinsic excitability in human and rodent parvalbumin neurons.Journal: Communications biologyIn common: Cellpose, napari, tifffile, 7 other tools, mouse, cellular / molecular
- [3] doi: [code]
- Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement controlJournal: eLifeIn common: napari, tifffile, OpenCV, 8 other tools, mouse
- [4] doi:10.1038/s41467-026-74823-1 [code]
- Cerebellar activity is triggered by reach endpoint during learning of a complex locomotor task.Journal: Nature communicationsIn common: scikit-posthocs, tifffile, OpenCV, 7 other tools, mouse, cellular / molecular
- [5] doi:10.7554/elife.107635 [code]
- Stable excitatory-inhibitory synapse balance despite dynamic turnover.Journal: eLifeIn common: tifffile, scikit-image, Pillow, 5 other tools, mouse, cellular / molecular, 2 references
- [6] doi:10.1093/neuonc/noag128 [code]
- Spatially-resolved single-cell imaging of melanoma brain metastases identifies localized immune patterns predictive of immune checkpoint blockade response.Journal: Neuro-oncologyIn common: Cellpose, napari, tifffile, 5 other tools
- [7] doi:10.1016/j.celrep.2026.117420 [code]
- Neural population dynamics of direct electrical stimulation of neocortex.Journal: Cell reportsIn common: napari, OpenCV, scikit-image, 7 other tools, mouse
- [8] doi:10.1038/s41467-026-73045-9 [code]
- Aberration-aware 3D localization microscopy via self-supervised neural-physics learning.Journal: Nature communicationsIn common: napari, tifffile, OpenCV, 6 other tools, cellular / molecular
- [9] doi:10.64898/2026.03.12.711239 [code]
- Back-illumination Phase Imaging Enables Nanoscale Drift Stabilization in Non-transparent Biological TissuesJournal: bioRxiv (preprint)In common: napari, tifffile, OpenCV, 6 other tools
- [10] doi:10.1038/s41467-026-75352-7 [code]
- Mechanosensory encoding of surface mechanics optimizes locomotion.Journal: Nature communicationsIn common: napari, tifffile, OpenCV, 6 other tools, cellular / molecular
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 66 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:dd48dab4c3be2f81…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
