Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states.
The 10 matches · 4 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Graph-theoretical metrics ↔ scripts/old_scripts/temporal_graph_metrics.py, lines 39–91 · score 0.67 · graph theoretical metrics, directed graphs, aggregating, NEF, temporal, medians
- [2] § Methods › Graph-theoretical metrics ↔ scripts/undirected_temporal_graph_metrics.py, lines 44–96 · score 0.67 · graph theoretical metrics, directed graphs, aggregating, NEF, temporal, medians
- [3] § Methods › Video recording of social interactions › Video recording and processing ↔ Documentation/SoftwareDocumentation/html/_static/jquery.js, the whole file · a weak match · score 0.62 · clips, phases, fading, pixel, post, field
- [4] § Results › Stable RCs emerge in social networks of group-housed mice ↔ scripts/old_scripts/rc_membership.py, lines 32–118 · score 0.61 · mutual nearest neighbor, RC membership, weak, day, windows, graphs
- [5] § Results › OXTRΔAON mice display quantitatively normal social activity in groups ↔ scripts/old_scripts/temporal_graph_metrics.py, lines 39–91 · score 0.60 · mutual nearest neighbors, graph cut, preserves edges, wild, filtered, day
- [6] § Results › OXTRΔAON mice display quantitatively normal social activity in groups ↔ scripts/old_undirected_graph_metrics.py, lines 50–102 · score 0.60 · mutual nearest neighbors, graph cut, preserves edges, wild, filtered, day
- [7] § Methods › NoSeMaze system ↔ Documentation/SoftwareDocumentation/html/searchindex.js, the whole file · a weak match · score 0.55 · Autonomouse, readers, NoSeMaze, delivered, module, cameras
- [8] § Methods › Dyadic social interaction experiment › Analysis of interaction videos ↔ Documentation/SoftwareDocumentation/html/searchindex.js, the whole file · a weak match · score 0.55 · animal ID, exported, MATLAB, tool, post, video
- [9] § Methods › Animal strains, husbandry and preparation › Virus vectors and stereotactic surgery ↔ Documentation/SoftwareDocumentation/html/_static/jquery.js, the whole file · a weak match · score 0.51 · FT, encoding, pre, head, attached, post
- [10] § Results › Stable RCs emerge in social networks of group-housed mice ↔ scripts/graph_metrics.py, lines 840–966 · score 0.51 · mutual nearest neighbor, RC members, pruned, day, edges, graphs
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 · 513 lines · 26 KB · CC-BY-NC-ND-4.0 · 2 matches
- import matplotlib.pyplot as plt
- import numpy as np
- import igraph as ig
- import networkx as nx
- import os
- import sys
- import seaborn as sns
- from scipy import stats
- import pandas as pd
- from scipy.stats import sem
- # from sklearn.decomposition import PCA
- # from sklearn.preprocessing import StandardScaler, MinMaxScaler, MaxAbsScaler, normalize
- from tqdm import tqdm
- # from sklearn.manifold import TSNE
- # from sklearn import manifold
- sys.path.append('..\\src\\')
- from read_graph import read_graph, read_labels
- from utils import get_category_indices, spread_points_around_center, add_group_significance
- import mpl_toolkits.mplot3d # noqa: F401
- from scipy.stats import ttest_ind
- from scipy import stats
- from graph_metrics import add_significance
- datapath = "..\\data\\chasing\\single\\"
- datapath = "..\\data\\averaged\\"
- labels = ["G1"]#, "G2", "G3", "G4", "G5", "G6", "G7", "G8", "G10", "G11", "G12", "G13", "G14", "G15", "G16", "G17"]
- def default_on_error(graph_idx, variable, window):
- """
- If the data for a graph on a specific day is not available because of detection issue, nans should be returned.
- To preserve the structure of the data array, the number of returned nans should reflect the number of mutants, rc members and wt in the cohort.
- """
- mutants, rc, others, wt, RFIDs = get_category_indices(graph_idx, "approaches", window) # load data from exp day 1 as a template, because all group were properly detected.
- return [np.nan]*len(mutants), [np.nan]*len(rc), [np.nan]*len(others), \
- [np.nan]*len(wt), [np.nan]*len(RFIDs), \
- {"Mouse_RFID": [np.nan]*len(RFIDs), "mutant": [np.nan]*len(RFIDs), "RC": [np.nan]*len(RFIDs), "Group_ID": int(labels[graph_idx][1:])}
- def time_measures(measure, graph_idx, window = 1, variable = "approaches",
- mnn = None, mutual = True, weighted = False, threshold = 0.0,
- summation = "mean", normalization = None, in_group_norm = False, logscale = False):
- """
- Computes specified time graph-theoretical metric for a given group, and time window.
- This function processes a time series of adjacency matrices (graphs) representing animal interactions,
- computes a variety of metrics (e.g., burstiness, inter-contact interval), and returns values for
- different animal subgroups (mutants, wild-type, RC, etc.).
- Parameters:
- - measure (str): Name of the metric to compute. Supported values are:
- - "summed outICI", "summed inICI"
- - "summed outburstiness", "summed inburstiness"
- - "summed outburstiness rank", "summed inburstiness rank"
- - "summed outNEF", "summed inNEF"
- - "summed outNEF rank", "summed inNEF rank"
- - graph_idx (int): Index of the group to analyze (corresponds to an entry in the global 'labels' list).
- - window (int, optional): Size of the time window for graph aggregation. Supported values are 1, 3, or 7 (days). Default is 1.
- - variable (str, optional): Type of interaction to analyze. "approaches" (directed graph) or "interactions" (undirected graph).
- - mnn (int or None, optional): Minimum number of neighbors for graph cutting. If None, no neighbor filtering is applied.
- - mutual (bool, optional): If True, uses mutual nearest neighbors when building graphs. Ignored if `mnn` is None.
- - weighted (bool, optional): If True, preserves edge weights in graph; otherwise binarizes the graph.
- - threshold (float, optional): Percentage threshold for edge pruning in the adjacency matrix. Default is 0.0.
- - summation (str, optional): Aggregation function across time:
- "mean": Computes the mean value per node.
- "median": Computes the median value per node.
- - normalization (str or None, optional): Type of normalization to apply to some metrics. Options include:
- "Poisson", "poisson", "CV" and "median CV". If None, no normalization is applied.
- - in_group_norm (bool, optional): If True, normalizes final metric values by the group maximum.
- - logscale (bool, optional): If True, applies logarithmic scaling to the final metric values.
- Returns:
- tuple: (scores_mutants, scores_rc, scores_rest, scores_wt, scores_all, metadata)
- - scores_mutants (list): Metric values for mutant mice.
- - scores_rc (list): Metric values for rich-club (RC) mice.
- - scores_rest (list): Metric values for mice that are neither mutants nor RC.
- - scores_wt (list): Metric values for wild-type mice.
- - scores_all (list): Metric values for all mice in the group.
- - metadata (dict): Metadata dictionary for the group containing:
- - "Mouse_RFID" (list of str): RFID identifiers for all mice in the group.
- - "mutant" (list of bool): Boolean list indicating mutant status.
- - "RC" (list of bool): Boolean list indicating RC status.
- - "Group_ID" (int): Numerical group identifier.
- """
- metadata_path = "..\\data\\meta_data.csv"
- metadata_df = pd.read_csv(metadata_path)
- if window not in [1, 3, 7]:
- print("Incorrect time window")
- return
- ## figuring out position of mutants, wt and rc within the indexing of the csv file
- datapath = f"..\\data\\both_cohorts_{window}days\\"+labels[graph_idx]+"\\"+variable+f"_resD{window}_1.csv"
- try:
- data_ref = read_graph([datapath], percentage_threshold = threshold, mnn = mnn, mutual = mutual)[0]
- arr = np.loadtxt(datapath, delimiter=",", dtype=str)
- RFIDs = arr[0, 1:].astype(str)
- except Exception as e:
- print(e)
- return default_on_error(graph_idx, variable, window)
- if variable == "interactions":
- mode = 'undirected'
- data_ref = (data_ref + np.transpose(data_ref))/2 # ensure symmetry
- elif variable == "approaches":
- mode = 'directed'
- else:
- raise NameError("Incorrect input argument for 'variable'.")
- data_ref = np.where(data_ref > 0.01, data_ref, 0)
- curr_metadata_df = metadata_df.loc[metadata_df["Group_ID"] == int(labels[graph_idx][1:]), :]
- # figuring out index of true mutants in current group
- mutant_map = curr_metadata_df.set_index('Mouse_RFID')['mutant'].to_dict()
- is_mutant = [mutant_map.get(rfid, False) for rfid in RFIDs] # if RFID is missing, animal is assumed to be neurotypical
- is_RC = [] # no list comprehension allowed because of deprenciation warning due to RFID mismatch
- for rfid in RFIDs:
- if curr_metadata_df.loc[curr_metadata_df["Mouse_RFID"] == rfid, "RC"].values.size > 0:
- if curr_metadata_df.loc[curr_metadata_df["Mouse_RFID"] == rfid, "RC"].values[0]:
- is_RC.append(True)
- else:
- is_RC.append(False)
- else:
- is_RC.append(False)
- graph_length = data_ref.shape[0]
- mutants = np.where(is_mutant)[0] if len(np.where(is_mutant)) != 0 else [] # indices of mutants in this group
- rc = np.where(is_RC)[0] if len(np.where(is_RC)) != 0 else [] # indices of RC in this group
- others = np.arange(graph_length)[np.logical_and(~np.isin(np.arange(graph_length), rc), ~np.isin(np.arange(graph_length), mutants))]
- wt = np.arange(graph_length)[~np.isin(np.arange(graph_length), mutants)]
- graphs = []
- ## extracting graphs for each experimental day/session
- for day in np.arange(1, 16, window):
- datapath = f"..\\data\\both_cohorts_{window}days\\"+labels[graph_idx]+"\\"+variable+f"_resD{window}_"+str(day)+".csv"
- try:
- data = read_graph([datapath], percentage_threshold = threshold, mnn = mnn, mutual = mutual)[0]
- arr = np.loadtxt(datapath, delimiter=",", dtype=str)
- RFIDs = arr[0, 1:].astype(str)
- except Exception as e:
- print(e)
- data = data_ref*np.nan
- if variable == "interactions":
- mode = 'undirected'
- data = (data + np.transpose(data))/2 # ensure symmetry
- elif variable == "approaches":
- mode = 'directed'
- else:
- raise NameError("Incorrect input argument for 'variable'.")
- if weighted:
- data = np.where(data > 0.01, data, 0)
- else:
- data = np.where(data > 0.01, 1, 0)
- # g = ig.Graph.Weighted_Adjacency(data, mode=mode)
- graphs.append(data)
- if measure == "summed outICI" or measure == "summed inICI": # summed average inter conter interval
- all_data = np.array(graphs)
- num_mice = all_data.shape[1]
- time_std, time_mean = np.zeros((num_mice, num_mice)), np.zeros((num_mice, num_mice))
- for i in range(num_mice):
- for j in range(num_mice):
- try:
- time_std[i, j] = np.nanstd(np.where(all_data[:, i, j] > 0)[0][1:] - np.where(all_data[:, i, j] > 0)[0][:-1])
- except:
- time_std[i, j] = np.nan
- try:
- time_mean[i, j] = np.nanmean(np.where(all_data[:, i, j] > 0)[0][1:] - np.where(all_data[:, i, j] > 0)[0][:-1])
- except:
- time_mean[i, j] = np.nan
- all_scores = time_mean
- elif measure == "summed outburstiness" or measure == "summed inburstiness" or \
- measure == "summed outburstiness rank" or measure == "summed inburstiness rank":
- all_data = np.array(graphs)
- num_mice = all_data.shape[1]
- time_std, time_mean = np.zeros((num_mice, num_mice)), np.zeros((num_mice, num_mice))
- for i in range(num_mice):
- for j in range(num_mice):
- try:
- time_std[i, j] = np.nanstd(np.where(all_data[:, i, j] > 0)[0][1:] - np.where(all_data[:, i, j] > 0)[0][:-1])
- except:
- time_std[i, j] = np.nan
- try:
- time_mean[i, j] = np.nanmean(np.where(all_data[:, i, j] > 0)[0][1:] - np.where(all_data[:, i, j] > 0)[0][:-1])
- except:
- time_mean[i, j] = np.nan
- all_scores = (time_std - time_mean)/(time_std + time_mean)
- elif measure == "summed outNEF" or measure == "summed inNEF" or \
- measure == "summed outNEF rank" or measure == "summed inNEF rank":
- all_data = np.array(graphs)
- time_std, time_mean, time_median = np.nanstd(all_data, axis = 0), np.nanmean(all_data, axis = 0), np.nanmedian(all_data, axis = 0)
- if normalization == "Poisson" or normalization == "poisson": # variant of the CV aimed at studying poissonicity
- all_scores = (time_std - time_mean)/(time_std + time_mean)
- elif normalization == "CV":
- all_scores = time_std/time_mean
- elif normalization == "median CV":
- all_scores = time_std/time_median
- else:
- all_scores = time_std
- else:
- raise Exception("Unknown or misspelled input measurement.")
- return
- if "out" in measure:
- if summation == "mean":
- all_scores = np.nanmean(all_scores, axis = 1)
- if summation == "median":
- all_scores = np.nanmedian(all_scores, axis = 1)
- if logscale:
- all_scores = np.log(all_scores)
- if "rank" in measure:
- all_scores = all_scores.argsort().argsort()
- if in_group_norm:
- all_scores = all_scores/np.max(all_scores)
- metric_mutants = [all_scores[i] for i in mutants]
- metric_rc = [all_scores[i] for i in rc]
- metric_wt = [all_scores[i] for i in wt]
- metric_others = [all_scores[i] for i in others]
- metric_all = [all_scores[i] for i in range(len(RFIDs))]
- elif "in" in measure:
- if summation == "mean":
- all_scores = np.nanmean(all_scores, axis = 0)
- if summation == "median":
- all_scores = np.nanmedian(all_scores, axis = 0)
- if logscale:
- all_scores = np.log(all_scores)
- if "rank" in measure:
- all_scores = all_scores.argsort().argsort()
- if in_group_norm:
- all_scores = all_scores/np.max(all_scores)
- metric_mutants = [all_scores[i] if all_scores[i] != np.inf else np.nan for i in mutants]
- metric_rc = [all_scores[i] if all_scores[i] != np.inf else np.nan for i in rc]
- metric_wt = [all_scores[i] if all_scores[i] != np.inf else np.nan for i in wt]
- metric_others = [all_scores[i] if all_scores[i] != np.inf else np.nan for i in others]
- metric_all = [all_scores[i] if all_scores[i] != np.inf else np.nan for i in range(len(RFIDs))]
- return metric_mutants, metric_rc, metric_others, metric_wt, metric_all, {"Mouse_RFID": RFIDs, "mutant": is_mutant, "RC": is_RC, "Group_ID": int(labels[graph_idx][1:])}
- def get_time_metric_df(measure, window = 1, variable = "approaches", mnn = None, mutual = True, weighted = False):
- scores_mutants, scores_rc, scores_wt, scores_others, scores_all = [], [], [], [], []
- RFIDs, mutants, RCs = [], [], []
- for graph_idx in range(len(labels)):
- res = time_measures(measure, graph_idx, window, variable, mnn, mutual, weighted)
- scores_mutants.extend(res[0])
- scores_rc.extend(res[1])
- scores_others.extend(res[2])
- scores_wt.extend(res[3])
- scores_all.extend(res[4])
- RFIDs.extend(res[5]["Mouse_RFID"])
- mutants.extend(res[5]["mutant"])
- RCs.extend(res[5]["RC"])
- df = pd.DataFrame()
- df[measure] = scores_all
- df["mutant"] = mutants
- df["RC"] = RCs
- df["Mouse_RFID"] = RFIDs
- return df
- def bp_metric(measure, window = 1, variable = "approaches",
- mnn = None, mutual = True, weighted = False, threshold = 0.0,
- summation = "mean", normalization = None, in_group_norm = False, logscale = False, stat = "mean", ax = None):
- """
- Plots and compares the specified graph metric between RC and non mutant mice across all groups.
- Generates a boxplot (and optional swarm/violin plots) to visualize differences in a time-resolved
- graph-theoretical measure, with statistical testing between groups. For more details on input parameters,
- see the documentation of the time_measures function.
- """
- scores_mutants, scores_RC, scores_wt, scores_others, scores_all = [], [], [], [], []
- RFIDs, mutants, RCs = [], [], []
- for graph_idx in range(len(labels)):
- res = time_measures(measure, graph_idx, window, variable, mnn, mutual,
- weighted, threshold, summation, normalization, in_group_norm, logscale)
- scores_mutants.extend(res[0])
- scores_RC.extend(res[1])
- scores_others.extend(res[2])
- scores_wt.extend(res[3])
- scores_all.extend(res[4])
- RFIDs.extend(res[5]["Mouse_RFID"])
- mutants.extend(res[5]["mutant"])
- RCs.extend(res[5]["RC"])
- df = pd.DataFrame()
- df[measure] = scores_all
- df["mutant"] = mutants
- df["RC"] = RCs
- df["Mouse_RFID"] = RFIDs
- data = [df.loc[df["RC"] == True, ['Mouse_RFID', measure]], df.loc[np.logical_and(df["mutant"] == False, df["RC"] == False), ['Mouse_RFID', measure]],
- df.loc[np.logical_and(df["mutant"] == True, df["RC"] == False), ['Mouse_RFID', measure]] ]
- data[0][data[0] == np.inf] = np.nan
- data[1][data[1] == np.inf] = np.nan
- data[2][data[2] == np.inf] = np.nan
- data[0].dropna()
- data[1].dropna()
- data[2].dropna()
- if ax is None:
- fig, ax = plt.subplots(1, 1, figsize=(4, 6))
- size, alpha = 60, 0.4
- positions = [0.75, 1.25, 1.75]
- bp = ax.boxplot([data[0][measure].dropna(), data[1][measure].dropna(), data[2][measure].dropna()], positions = positions, labels=["sRC", "Non-members WT", "mutants"],
- showfliers = False, meanline=False, showmeans = False, medianprops={'visible': False})
- x_RC, scores_RC = spread_points_around_center(scores_RC, center=positions[0], bin_width = 0.1, interpoint=0.04)
- ax.scatter(x_RC, scores_RC, alpha=alpha, s=size, color="blue",edgecolor='none')
- x_others, scores_others = spread_points_around_center(scores_others, center=positions[1], bin_width = 0.1, interpoint=0.03)
- ax.scatter(x_others, scores_others, alpha=alpha, s=size, color="gray", label="Non-member",edgecolor='none')
- x_mutants, scores_mutants = spread_points_around_center(scores_mutants, center=positions[2], bin_width = 0.1, interpoint=0.03)
- ax.scatter(x_mutants, scores_mutants, alpha=alpha, s=size, color="red", label="Non-member",edgecolor='none')
- vp = plt.violinplot([data[0][measure], data[1][measure], data[2][measure]], positions, widths = [0.25, 0.38, 0.25], showextrema = False, showmedians=True)
- vp['bodies'][0].set_facecolor('blue')
- vp['bodies'][1].set_facecolor('gray')
- vp['bodies'][2].set_facecolor('red')
- if 'cmedians' in vp: # Safety check
- vp['cmedians'].set_linewidth(5) # Directly set width on LineCollection
- vp['cmedians'].set_color('k') # Set color
- vp['cmedians'].set_linestyle('-') # Ensure solid line
- add_significance(data, measure, ax, bp, stat)
- title = f"{measure}\n mnn = {mnn} thresh = {threshold}, summation = {summation}\n norm. = {normalization}, inGroupNorm = {in_group_norm}\n logscale = {logscale}, permutation test on the {stat}."
- ax.set_title(title)
- plt.tight_layout()
- plt.show()
- return bp
- def bp_metric_RC(measure, window = 1, variable = "approaches",
- mnn = None, mutual = True, weighted = False, threshold = 0.0,
- summation = "mean", normalization = None, in_group_norm = False, logscale = False, stat = "mean", swarmplot = True, ax = None):
- """
- Plots and compares the specified graph metric between RC and non mutant mice across all groups.
- Generates a boxplot (and optional swarm/violin plots) to visualize differences in a time-resolved
- graph-theoretical measure, with statistical testing between groups. For more details on input parameters,
- see the documentation of the time_measures function.
- """
- scores_mutants, scores_RC, scores_wt, scores_others, scores_all = [], [], [], [], []
- RFIDs, mutants, RCs = [], [], []
- for graph_idx in range(len(labels)):
- res = time_measures(measure, graph_idx, window, variable, mnn, mutual,
- weighted, threshold, summation, normalization, in_group_norm, logscale)
- scores_mutants.extend(res[0])
- scores_RC.extend(res[1])
- scores_others.extend(res[2])
- scores_wt.extend(res[3])
- scores_all.extend(res[4])
- RFIDs.extend(res[5]["Mouse_RFID"])
- mutants.extend(res[5]["mutant"])
- RCs.extend(res[5]["RC"])
- df = pd.DataFrame()
- df[measure] = scores_all
- df["mutant"] = mutants
- df["RC"] = RCs
- df["Mouse_RFID"] = RFIDs
- data = [ df.loc[np.logical_and(df["mutant"] == False, df["RC"] == False), ['Mouse_RFID', measure]],
- df.loc[df["RC"] == True, ['Mouse_RFID', measure]] ]
- data[0][data[0] == np.inf] = np.nan
- data[1][data[1] == np.inf] = np.nan
- data[0].dropna()
- data[1].dropna()
- if ax is None:
- fig, ax = plt.subplots(1, 1, figsize=(4, 6))
- size, alpha = 60, 0.4
- positions = [0.75, 1.25]
- bp = ax.boxplot([data[0][measure].dropna(), data[1][measure].dropna()], positions = positions, labels=["Non-members WT", "sRC"],
- showfliers = False, meanline=False, showmeans = False, medianprops={'visible': False})
- if swarmplot:
- x_others, scores_others = spread_points_around_center(scores_others, center=positions[0], bin_width = 0.1, interpoint=0.03)
- ax.scatter(x_others, scores_others, alpha=alpha, s=size, color="gray", label="Non-member",edgecolor='none')
- x_RC, scores_R = spread_points_around_center(scores_RC, center=positions[1], bin_width = 0.1, interpoint=0.04)
- ax.scatter(x_RC, scores_RC, alpha=alpha, s=size, color="blue",edgecolor='none')
- else:
- ax.scatter([positions[0] + np.random.normal()*0.05 for i in range(len(scores_others))],
- scores_others, alpha = alpha, s = size, color = "gray", label = "Non-member",edgecolor='none')
- ax.scatter([positions[1] + np.random.normal()*0.05 for i in range(len(scores_mutants))],
- scores_mutants, alpha = alpha, s = size, color = "blue",edgecolor='none', label = "sRC");
- vp = plt.violinplot([data[0][measure], data[1][measure]], positions, widths = [0.38, 0.25], showextrema = False, showmedians=True)
- vp['bodies'][0].set_facecolor('gray')
- vp['bodies'][1].set_facecolor('blue')
- if 'cmedians' in vp: # Safety check
- vp['cmedians'].set_linewidth(5) # Directly set width on LineCollection
- vp['cmedians'].set_color('k') # Set color
- vp['cmedians'].set_linestyle('-') # Ensure solid line
- add_significance(data, measure, ax, bp, stat)
- title = f"{measure}\n mnn = {mnn} thresh = {threshold}, summation = {summation}\n norm. = {normalization}, inGroupNorm = {in_group_norm}\n logscale = {logscale}, permutation test on the {stat}."
- ax.set_title(title)
- plt.tight_layout()
- plt.show()
- return bp
- def bp_metric_mutants(measure, window = 1, variable = "approaches",
- mnn = None, mutual = True, weighted = False, threshold = 0.0,
- summation = "mean", normalization = None, in_group_norm = False, logscale = False, stat = "mean", swarmplot = True, ax = None):
- """
- Plots and compares the specified graph metric between mutant and non-mutant mice across all groups.
- Generates a boxplot (and optional swarm/violin plots) to visualize differences in a time-resolved
- graph-theoretical measure, with statistical testing between groups. For more details on input parameters,
- see the documentation of the time_measures function.
- """
- scores_mutants, scores_rc, scores_wt, scores_others, scores_all = [], [], [], [], []
- RFIDs, mutants, RCs = [], [], []
- for graph_idx in range(len(labels)):
- res = time_measures(measure, graph_idx, window, variable, mnn, mutual,
- weighted, threshold, summation, normalization, in_group_norm, logscale)
- scores_mutants.extend(res[0])
- scores_rc.extend(res[1])
- scores_others.extend(res[2])
- scores_wt.extend(res[3])
- scores_all.extend(res[4])
- RFIDs.extend(res[5]["Mouse_RFID"])
- mutants.extend(res[5]["mutant"])
- RCs.extend(res[5]["RC"])
- df = pd.DataFrame()
- df[measure] = scores_all
- df["mutant"] = mutants
- df["RC"] = RCs
- df["Mouse_RFID"] = RFIDs
- data = [ df.loc[np.logical_and(df["mutant"], df["RC"] == False), ['Mouse_RFID', measure]],
- df.loc[np.logical_and(df["mutant"] == False, df["RC"] == False), ['Mouse_RFID', measure]] ]
- data[0][data[0] == np.inf] = np.nan
- data[1][data[1] == np.inf] = np.nan
- data[0].dropna()
- data[1].dropna()
- if ax is None:
- fig, ax = plt.subplots(1, 1, figsize=(4, 6))
- size, alpha = 60, 0.4
- positions = [0.75, 1.25]
- bp = ax.boxplot([data[1][measure].dropna(), data[0][measure].dropna()], positions = positions, labels=["Non-members WT", "OXTRΔAON"],
- showfliers = False, meanline=False, showmeans = False, medianprops={'visible': False})
- if swarmplot:
- x_mutants, scores_mutants = spread_points_around_center(scores_mutants, center=positions[1], bin_width = 0.1, interpoint=0.04)
- ax.scatter(x_mutants, scores_mutants, alpha=alpha, s=size, color="red",edgecolor='none')
- x_others, scores_others = spread_points_around_center(scores_others, center=positions[0], bin_width = 0.1, interpoint=0.03)
- ax.scatter(x_others, scores_others, alpha=alpha, s=size, color="gray", label="Non-member",edgecolor='none')
- else:
- ax.scatter([positions[1] + np.random.normal()*0.05 for i in range(len(scores_mutants))],
- scores_mutants, alpha = alpha, s = size, color = "red",edgecolor='none');
- ax.scatter([positions[0] + np.random.normal()*0.05 for i in range(len(scores_others))],
- scores_others, alpha = alpha, s = size, color = "gray", label = "Non-member",edgecolor='none')
- vp = plt.violinplot([data[1][measure], data[0][measure]], positions, widths = [0.38, 0.25], showextrema = False, showmedians=True)
- vp['bodies'][1].set_facecolor('lightcoral')
- vp['bodies'][0].set_facecolor('gray')
- if 'cmedians' in vp: # Safety check
- vp['cmedians'].set_linewidth(5) # Directly set width on LineCollection
- vp['cmedians'].set_color('k') # Set color
- vp['cmedians'].set_linestyle('-') # Ensure solid line
- add_significance(data, measure, ax, bp, stat)
- title = f"{measure}\n mnn = {mnn} thresh = {threshold}, summation = {summation}\n norm. = {normalization}, inGroupNorm = {in_group_norm}\n logscale = {logscale}, permutation test on the {stat}."
- ax.set_title(title)
- plt.tight_layout()
- plt.show()
- return bp
- if __name__ == "__main__":
- ## Main
- bp_metric_mutants("summed outNEF", mnn = None, mutual = True, weighted = True, threshold = 0,
- summation = "mean", normalization="CV", logscale = False, stat = "median", swarmplot = True)
- bp_metric_mutants("summed inNEF", mnn = None, mutual = True, weighted = True, threshold = 0,
- summation = "mean", normalization="CV", logscale = False, stat = "median")
- ## Supplement
- bp_metric_mutants("summed inburstiness", mnn = 7, mutual = True, weighted = False, threshold = 0,
- summation = "mean", normalization=None, in_group_norm = False, logscale = False, stat = "median", swarmplot = True)
- bp_metric_mutants("summed outburstiness", mnn = 7, mutual = True, weighted = False, threshold = 0,
- summation = "mean", normalization = None, in_group_norm = False, logscale = False, stat = "median", swarmplot = True)
- bp_metric("summed outNEF", mnn = None, mutual = True, weighted = True, threshold = 0,
- summation = "mean", normalization="CV", logscale = False, stat = "median")
- bp_metric("summed inNEF", mnn = None, mutual = True, weighted = True, threshold = 0,
- summation = "mean", normalization="CV", logscale = False, stat = "median")
- print("Warning: only G1 of the dataset is available on this repo. If you want to reproduce the paper, ask us for the full dataset, and uncomment labels on L27 of this script.")
temporal_graph_metrics.py at commit 8b67fdb, under CC-BY-NC-ND-4.0 · at the source
Overview
- Department of Psychiatry and Psychotherapy, University Medical Center Mainz, Johannes-Gutenberg University,Mainz, Germany
- Department of Psychiatry and Psychotherapy, Central Institute of Mental Health, Medical Faculty Mannheim, Heidelberg University,Mannheim, Germany
- Department Neuropeptide Research in Psychiatry, Central Institute of Mental Health, Medical Faculty Mannheim, Heidelberg University,Mannheim, Germany
Abstract
The ability to establish stable de novo relationships in complex environments is essential for social functioning but disrupted in disorders such as autism. Yet, the mechanisms supporting higher-order bonding in large groups remain unclear. Here, we introduce a naturalistic model of clique formation in mouse societies, using longitudinal tracking from large-scale video data. We show that small, stable cliques emerged from the specific group configurations. Consistently, also kinship did not significantly facilitate entry. These cohesive cliques resembled human mutually interacting rich-clubs, exhibiting high social rank and influence over non-members. We next examined whether oxytocin signaling in the olfactory cortex supports such higher-order bonding. Despite preserved social motivation, mice with conditional oxytocin receptor deletion in this sensory cortex failed to join rich-clubs, approached peers less consistently, and received unstable reciprocal connections. This network-level disorganization demonstrates how social dynamics can magnify individual deficits. Our findings identify oxytocin-dependent social sensory states as a necessary mechanism for forming stable relationships in complex social networks.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 10 matches between paragraphs and lines of code.
KelschLAB/NoSeMaze
404250889f232264c4c9111e2f37bb78583969ce, 27 April 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
90 files
- Documentation/
SoftwareDocumentation/ , JavaScript, 358 lineshtml/ _static/ doctools.js - Documentation/
SoftwareDocumentation/ , JavaScript, 14 lineshtml/ _static/ documentation_options.js - Documentation/
SoftwareDocumentation/ , JavaScript, 7,429 lineshtml/ _static/ jquery-3.5.1.js - Documentation/
SoftwareDocumentation/ , JavaScript, 2 lines, 2 matcheshtml/ _static/ jquery.js - Documentation/
SoftwareDocumentation/ , JavaScript, 297 lineshtml/ _static/ language_data.js - Documentation/
SoftwareDocumentation/ , JavaScript, 525 lineshtml/ _static/ searchtools.js - Documentation/
SoftwareDocumentation/ , JavaScript, 2,042 lineshtml/ _static/ underscore-1.13.1.js - Documentation/
SoftwareDocumentation/ , JavaScript, 6 lineshtml/ _static/ underscore.js - Documentation/
SoftwareDocumentation/ , JavaScript, 1 line, 2 matcheshtml/ searchindex.js - NoSeMazeControl/
Analysis/ , Python, 288 linesAnalysis.py - NoSeMazeControl/
Analysis/ , Python, 201 linesConversion.py - NoSeMazeControl/
Analysis/ , Python, 444 linesPerformance.py - NoSeMazeControl/
Analysis/ , Python, 1 line__init__.py - NoSeMazeControl/
Controllers/ , Python, 872 linesExperimentControl.py - NoSeMazeControl/
Controllers/ , Python, 1 line__init__.py - NoSeMazeControl/
Designs/ , Python, 192 linesHardwareWindowEdited.py - NoSeMazeControl/
Designs/ , Python, 1 line__init__.py - NoSeMazeControl/
Designs/ , Python, 54 linesaddWindow.py - NoSeMazeControl/
Designs/ , Python, 58 linesadjustmentWidget.py - NoSeMazeControl/
Designs/ , Python, 129 linesanalysisWindow.py - NoSeMazeControl/
Designs/ , Python, 93 linesanimalWindow.py - NoSeMazeControl/
Designs/ , Python, 135 linescontrolWindow.py - NoSeMazeControl/
Designs/ , Python, 73 linescontrolWindowGraphicsVie w.py - NoSeMazeControl/
Designs/ , Python, 202 lineshardwareWindow.py - NoSeMazeControl/
Designs/ , Python, 49 linesmailWindow.py - NoSeMazeControl/
Designs/ , Python, 206 linesmainWindow.py - NoSeMazeControl/
Designs/ , Python, 65 linesprefsWindow.py - NoSeMazeControl/
Designs/ , Python, 126 linesscheduleMainWindow.py - NoSeMazeControl/
Designs/ , Python, 152 linessensorsWindow.py - NoSeMazeControl/
Designs/ , Python, 121 linessettingWindow.py - NoSeMazeControl/
HelperFunctions/ , Python, 54 linesBeamCheck.py - NoSeMazeControl/
HelperFunctions/ , Python, 509 linesEmail.py - NoSeMazeControl/
HelperFunctions/ , Python, 48 linesFilter.py - NoSeMazeControl/
HelperFunctions/ , Python, 70 linesRFID.py - NoSeMazeControl/
HelperFunctions/ , Python, 154 linesReward.py - NoSeMazeControl/
HelperFunctions/ , Python, 1 line__init__.py - NoSeMazeControl/
Models/ , Python, 553 linesExperiment.py - NoSeMazeControl/
Models/ , Python, 131 linesGuiModels.py - NoSeMazeControl/
PyPulse/ , Python, 517 linesPulseGeneration.py - NoSeMazeControl/
PyPulse/ , Python, 93 linesPulseInterface.py - NoSeMazeControl/
PyPulse/ , Python, 1 line__init__.py - NoSeMazeControl/
Schedule/ , Python, 169 linesDesigns/ NoSeMazeConcatenatedSche duleDesign.py - NoSeMazeControl/
Schedule/ , Python, 209 linesDesigns/ NoSeMazeScheduleDesign.p y - NoSeMazeControl/
Schedule/ , Python, 1 lineDesigns/ __init__.py - NoSeMazeControl/
Schedule/ , Python, 96 linesDesigns/ concGNGDesign.py - NoSeMazeControl/
Schedule/ , Python, 123 linesDesigns/ contCorrDesign.py - NoSeMazeControl/
Schedule/ , Python, 131 linesDesigns/ corrDesign.py - NoSeMazeControl/
Schedule/ , Python, 147 linesDesigns/ corrDifficultySwitchCame raTriggerDesign.py - NoSeMazeControl/
Schedule/ , Python, 139 linesDesigns/ corrDifficultySwitchDesi gn.py - NoSeMazeControl/
Schedule/ , Python, 147 linesDesigns/ corrOnsetDisruptDesign.p y - NoSeMazeControl/
Schedule/ , Python, 147 linesDesigns/ corrRandomFrequency2Desi gn.py - NoSeMazeControl/
Schedule/ , Python, 139 linesDesigns/ corrRandomFrequencyDesig n.py - NoSeMazeControl/
Schedule/ , Python, 88 linesDesigns/ pretrainDesign.py - NoSeMazeControl/
Schedule/ , Python, 8 linesDesigns/ scheduleBeastDesign.py - NoSeMazeControl/
Schedule/ , Python, 97 linesDesigns/ shatterValveTestDesign.p y - NoSeMazeControl/
Schedule/ , Python, 115 linesDesigns/ simpleCorrDesign.py - NoSeMazeControl/
Schedule/ , Python, 88 linesDesigns/ simpleGNGDesign.py - NoSeMazeControl/
Schedule/ , Python, 79 linesDesigns/ valveMapDesign.py - NoSeMazeControl/
Schedule/ , Python, 25 linesExceptions.py - NoSeMazeControl/
Schedule/ , Python, 80 linesGeneration/ Gen.py - NoSeMazeControl/
Schedule/ , Python, 1 lineGeneration/ __init__.py - NoSeMazeControl/
Schedule/ , Python, 129 linesModels/ ScheduleView.py - NoSeMazeControl/
Schedule/ , Python, 292 linesModels/ ScheduleWidgets.py - NoSeMazeControl/
Schedule/ , Python, 58 linesModels/ Widgets.py - NoSeMazeControl/
Schedule/ , Python, 1 lineModels/ __init__.py - NoSeMazeControl/
Schedule/ , Python, 464 linesPyPulse/ PulseGeneration.py - NoSeMazeControl/
Schedule/ , Python, 92 linesPyPulse/ PulseInterface.py - NoSeMazeControl/
Schedule/ , Python, 1 linePyPulse/ __init__.py - NoSeMazeControl/
Schedule/ , Python, 3 linesUI/ ColorMap.py - NoSeMazeControl/
Schedule/ , Python, 1 lineUI/ __init__.py - NoSeMazeControl/
Schedule/ , Python, 1 line__init__.py - NoSeMazeControl/
Sensors/ , Python, 149 linesGravityMeasurements.py - NoSeMazeControl/
Sensors/ , Python, 211 linesMeasurements.py - NoSeMazeControl/
Sensors/ , Python, 179 linesMyWorker.py - NoSeMazeControl/
Sensors/ , Python, 237 linesPlotControl.py - NoSeMazeControl/
Sensors/ , Python, 225 linesSensorNode.py - NoSeMazeControl/
Sensors/ , Python, 59 linesSerialConfiguration.py - NoSeMazeControl/
Sensors/ , Python, 1 line__init__.py - NoSeMazeControl/
Sensors/ , Python, 31 linesconstants.py - NoSeMazeControl/
TrialLogic/ , Python, 173 linesTrialConditions.py - NoSeMazeControl/
TrialLogic/ , Python, 1 line__init__.py - NoSeMazeControl/
Windows/ , Python, 1,335 linesAppWindows.py - NoSeMazeControl/
Windows/ , Python, 1 line__init__.py - NoSeMazeControl/
daqface/ , Python, 1,167 linesDAQ.py - NoSeMazeControl/
daqface/ , Python, 55 linesUtils.py - NoSeMazeControl/
daqface/ , Python, 1 line__init__.py - NoSeMazeControl/
main.py , Python, 596 lines - sphinxDoc/
source/ , Python, 65 linesconf.py - LICENSE, License, 674 lines
- README.md, Text, 76 lines
KelschLAB/NoSeMaze-stableRichClubs
8b67fdb2489f61712a4d8d3daefc232a053494f0, 21 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
42 files
- scripts/
age_influence.py , Python, 301 lines - scripts/
approach_threshold_chara , Python, 377 linescterization.py - scripts/
approaches_boxplots.py , Python, 147 lines - scripts/
approaches_visualization , Python, 345 lines.py - scripts/
boxplots_control_cohorts , Python, 213 lines.py - scripts/
chasing_asymmtry.py , Python, 826 lines - scripts/
correlations.py , Python, 601 lines - scripts/
directed_temporal_graph_ , Python, 576 linesmetrics.py - scripts/
graph_measure_as_timeser , Python, 474 linesies.py - scripts/
graph_metrics.py , Python, 1,112 lines, 1 match - scripts/
histograms.py , Python, 1,499 lines - scripts/
interactions_boxplots.py , Python, 553 lines - scripts/
matlab scripts/ , MATLAB, 468 linesSSankey.m - scripts/
matlab scripts/ , MATLAB, 321 linesbiChordChart.m - scripts/
matlab scripts/ , MATLAB, 51 linesextract_daytime_of_detec tions.m - scripts/
matlab scripts/ , MATLAB, 199 linesgraph_social_interaction _dayresolution.m - scripts/
matlab scripts/ , MATLAB, 40 linesplot_daytime_detected.m - scripts/
matlab scripts/ , MATLAB, 111 linessankey_plots.m - scripts/
old_scripts/ , Python, 301 linesage_influence.py - scripts/
old_scripts/ , Python, 570 linesbootstrap_pop.py - scripts/
old_scripts/ , Python, 540 linesboxplots.py - scripts/
old_scripts/ , Python, 361 lineschasings_counting.py - scripts/
old_scripts/ , Python, 50 linesdavid_score_limitations. py - scripts/
old_scripts/ , Python, 108 linesday_to_day_fractions.py - scripts/
old_scripts/ , Python, 49 linesfigures_for_review.py - scripts/
old_scripts/ , Python, 43 linesmk_histology_df.py - scripts/
old_scripts/ , Python, 194 lines, 1 matchrc_membership.py - scripts/
old_scripts/ , Python, 41 linesrc_unstability_explanati on.py - scripts/
old_scripts/ , Python, 513 lines, 2 matchestemporal_graph_metrics.p y - scripts/
old_undirected_graph_met , Python, 548 lines, 1 matchrics.py - scripts/
rc_in_graph_plots.py , Python, 113 lines - scripts/
reshuffling_correlations , Python, 470 lines.py - scripts/
significance_plots.py , Python, 449 lines - scripts/
undirected_temporal_grap , Python, 513 lines, 1 matchh_metrics.py - scripts/
utils.py , Python, 348 lines - scripts/
weighted_rc_coeff.py , Python, 160 lines - src/
clustering_algorithm.py , Python, 468 lines - src/
multilayer_plot.py , Python, 274 lines - src/
multilayer_sc.py , Python, 319 lines - src/
read_graph.py , Python, 922 lines - LICENSE, License, 26 lines
- README.md, Text, 33 lines
Code availability
The code used for the data analysis57 is available online via 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 128 scripts, each with its path and the digest of its content;
- 10 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
The data generated in this study are under active use by the reporting laboratory; all data presented in this manuscript are available upon request from the Lead Contact. Source data are provided with this paper.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 3 keywords, 11 MeSH terms, 3 funders, 53 references, 2 RRIDs.
Cite
This paper
Nelias, C., Ghanayem, S., Wolf, D., Moor, M., Nikolantonaki, D., Turgut, E. D., Scheller, M. F., Grinevich, V., Reinwald, J. R., & Kelsch, W. (2026). Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states. Nature communications, 17(1), 8493. https://
BibTeX
@article{nelias2026stabl
author = {Nelias, Corentin and Ghanayem, Sarah and Wolf, David and Moor, Marcel and Nikolantonaki, Danai and Turgut, Eda Dilara and Scheller, Max F. and Grinevich, Valery and Reinwald, Jonathan R. and Kelsch, Wolfgang},
title = {{Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states}},
journal = {Nature communications},
year = {2026},
month = aug,
volume = {17},
number = {1},
pages = {8493},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42608410},
pmcid = {PMC13484484}
}
RIS
TY - JOUR
AU - Nelias, Corentin
AU - Ghanayem, Sarah
AU - Wolf, David
AU - Moor, Marcel
AU - Nikolantonaki, Danai
AU - Turgut, Eda Dilara
AU - Scheller, Max F.
AU - Grinevich, Valery
AU - Reinwald, Jonathan R.
AU - Kelsch, Wolfgang
TI - Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8493
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Stable clique membership in male mouse societies requires oxytocin-enabled social sensory states",
"container-title": "Nature communications",
"author": [
{
"family": "Nelias",
"given": "Corentin"
},
{
"family": "Ghanayem",
"given": "Sarah"
},
{
"family": "Wolf",
"given": "David"
},
{
"family": "Moor",
"given": "Marcel"
},
{
"family": "Nikolantonaki",
"given": "Danai"
},
{
"family": "Turgut",
"given": "Eda Dilara"
},
{
"family": "Scheller",
"given": "Max F."
},
{
"family": "Grinevich",
"given": "Valery"
},
{
"family": "Reinwald",
"given": "Jonathan R."
},
{
"family": "Kelsch",
"given": "Wolfgang"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8493",
"DOI": "10.1038/
"PMID": "42608410",
"PMCID": "PMC13484484",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
17
]
]
}
}
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.1016/j.isci.2026.116825 [code]
- Social hierarchy shapes behavioral and transcriptional responses to chronic stress and ketamine in male mice.Journal: iScienceIn common: NetworkX, statsmodels, PyTorch, 6 other tools, mouse, 2 references
- [2] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: igraph, NetworkX, statsmodels, 7 other tools, mouse, cellular / molecular
- [3] doi:10.1016/j.isci.2026.116055 [code]
- Mapping the transcriptional diversity of calcium signaling in the mouse and human brain.Journal: iScienceIn common: igraph, NetworkX, statsmodels, 7 other tools, mouse
- [4] doi:10.1186/s12864-026-12965-8 [code]
- Systematic evaluation of single-cell foundation model interpretability: attention-derived edge scores add no incremental value over gene-level features for perturbation-target prediction.Journal: BMC genomicsIn common: igraph, NetworkX, statsmodels, 7 other tools, cellular / molecular
- [5] doi:10.1016/j.isci.2026.115604 [code]
- FOXP1 is differentially active during development of murine vasopressin and oxytocin magnocellular neurons.Journal: iScienceIn common: PyTorch, pandas, SciPy, 1 other tool, mouse, 1 reference, author Valery Grinevich
- [6] doi:10.1038/s41586-026-10629-x [code]
- Whole-genome duplication shaped cell-type evolution in the vertebrate brain.Journal: NatureIn common: igraph, NetworkX, statsmodels, 6 other tools, mouse, cellular / molecular
- [7] doi:10.1038/s41593-026-02232-0 [code]
- Entorhinal cortex represents task-relevant remote locations independently of CA1.Journal: Nature neuroscienceIn common: NetworkX, statsmodels, PyTorch, 6 other tools, mouse, 1 reference
- [8] doi:10.1038/s41467-026-74357-6 [code]
- Hippocampo-neocortical interaction as compressive retrieval-augmented generation.Journal: Nature communicationsIn common: NetworkX, statsmodels, PyTorch, 6 other tools, 1 reference
- [9] doi:10.1038/s41467-026-76676-0 [code]
- Determinants of functional burden pleiotropy and gene dosage responses across human traits.Journal: Nature communicationsIn common: igraph, NetworkX, statsmodels, 6 other tools, cellular / molecular
- [10] doi:10.1073/pnas.2531706123 [code]
- Metabolism-weighted brain connectome reveals synaptic integration and vulnerability to neurodegeneration.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: igraph, NetworkX, statsmodels, 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: 2 repositories of the authors' code, each at its verified commit and with its license, 128 scripts, and 10 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:32f67a3c6d0c7a75…
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.
