Interpretable deep generative ensemble learning for single-cell omics with Hydra.
The 12 matches · 5 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Running existing methods › UMINT ↔ Proposed/umint.py, lines 9–60 · score 0.88 · mid_neuron, layer_neuron, lambda_act, lambda_weight, CombinedEncoder, UMINT
- [2] § Methods › Running existing methods › scSorterDL ↔ code/scSorterDL_final/train.py, lines 263–320 · score 0.76 · LocalSwarmLDA, cell_sampling, gene_sampling, pred, shrinkage, ldareg
- [3] § Methods › Running existing methods › scSorterDL ↔ code/scSorterDL_final/plt_all_submit_query.sh, the whole file · a weak match · score 0.73 · scSorterDL, cell_sampling, gene_sampling, ldareg, uniform, epochs
- [4] § Methods › Running existing methods › scPred ↔ Preprocessing/MALT10k_Preprocessing.R, the whole file · a weak match · score 0.72 · FindVariableFeatures, NormalizeData, ScaleData, Seurat, preprocessed, raw
- [5] § Methods › Running existing methods › scPred ↔ Benchmarking/Seuratv4/MALT10k_Seurat.R, the whole file · a weak match · score 0.71 · FindVariableFeatures, NormalizeData, ScaleData, Seurat, preprocessed, raw
- [6] § Methods › Running existing methods › Statistical tests ↔ R/featureSelection.R, lines 57–101 · score 0.71 · eBayes, lmFit, limma, sum, matrices, model
- [7] § Methods › Running existing methods › MOFA+ ↔ Benchmarking/MOFA2/MALT10k_MOFA2.R, the whole file · a weak match · score 0.69 · convergence_mode, model options, train options, MOFA, embeddings, seed
- [8] § Methods › Running existing methods › MOFA+ ↔ Benchmarking/MOFA2/bmcite30k_MOFA2.R, the whole file · a weak match · score 0.69 · convergence_mode, model options, train options, MOFA, embeddings, seed
- [9] § Methods › Running existing methods › scClassify ↔ vignettes/scClassify.Rmd, lines 132–163 · score 0.64 · selectFeatures, scClassify, cosine, WKNN, HOPACH, algorithm
- [10] § Methods › Running existing methods › UMINT ↔ Proposed/autoencoder.py, lines 61–110 · score 0.64 · lambda_act, lambda_weight, encodings, bs, layer, loss
- [11] § Methods › Feature ranking module › Refinement and feature ranking ↔ hydra/Hydra.py, lines 334–375 · score 0.64 · refined models, original model, trained model, decoder, epochs, autoencoder
- [12] § Results › Joint learning and annotation in diverse single-cell multiome datasets ↔ hydra/Hydra.py, lines 613–664 · score 0.59 · scADT, scATAC, scRNA, CITE, attributed, seq
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 · 734 lines · 37 KB · MIT · 2 matches
- #!/usr/bin/python
- ##############################################
- # Manoj M Wagle (USydney, MIT CSAIL)
- ##############################################
- import os, sys, random, subprocess
- os.environ["RETICULATE_PYTHON"] = sys.executable
- import argparse
- import logging
- import glob
- from captum.attr import *
- from tqdm import tqdm
- import pandas as pd
- import numpy as np
- import h5py
- import pkg_resources
- # Logging to Standard Error
- Log_Format = "%(levelname)s - %(asctime)s - %(message)s \n"
- logging.basicConfig(stream = sys.stderr, format = Log_Format, level = logging.INFO)
- ##############################################
- # Check if the user requested help for the annotation script
- if '--setting' in sys.argv and 'annotation' in sys.argv and ('--help' in sys.argv or '-h' in sys.argv):
- annotation_script_path = pkg_resources.resource_filename(__name__, 'Annotation.py')
- subprocess.run(["python", annotation_script_path, "--help"])
- sys.exit(0)
- class CustomHelpFormatter(argparse.RawTextHelpFormatter):
- def format_help(self):
- help_text = super().format_help()
- welcome_message = (
- "\nThank you for using Hydra 😄, an interpretable deep generative tool for single-cell omics. Please refer to the full documentation available at https://sydneybiox.github.io/Hydra/ for detailed usage instructions. If you encounter any issues running the tool - Please open an issue on Github, and we will get back to you as soon as possible!!\n\n"
- )
- Note_message = "\n📍 NOTE 📍: You need to run feature selection (`fs`) on the train datatset before annotating the cell types in the query dataset. If you have already run feature selection on the train & want to annotate (`annotation`) a different related query dataset, please process the data (`processdata`) first and then provide the path to the directory containing this processed data.\n\n"
- return welcome_message + Note_message + help_text
- # Create argument parser
- parser = argparse.ArgumentParser("Hydra", formatter_class=CustomHelpFormatter)
- parser.add_argument('--seed', type = int, default = 42, help ='seed')
- # Input
- parser.add_argument('--train', help='Path to the training dataset (Seurat, SCE or Anndata object)')
- parser.add_argument('--test', help='Path to the test dataset (Seurat or SCE object)')
- parser.add_argument('--celltypecol', default='cell_type', help='Cell type label column in your input dataset (Seurat, SCE or Anndata object). Default: `cell_type`')
- parser.add_argument('--modality', default='rna', choices=['rna', 'adt', 'atac'], help='Input data modality. Default: `rna`')
- parser.add_argument('--base_dir', metavar = 'DIR', default=os.getcwd(), help = 'Path to the directory containing processed data directory. Default: Current working directory')
- parser.add_argument('--gene', help='Name of the gene whose expression is to be highlighted in the plot')
- parser.add_argument('--ctofinterest', help='Name of the cell type for which a ridgeline plot of gene expression should be generated')
- parser.add_argument('--predictions', help='Generate UMAP plot for Hydra predicted cell types', default=False)
- parser.add_argument('--ctpredictions', help='Path to the csv file containing cell types predicted by Hydra', default=False)
- # parser.add_argument('--peak', help='If you are providing peak data for scATAC instead of Gene-activity, filtering will be turned off during data processing. This means that all peaks will be included', default=False)
- parser.add_argument('--processdata_batch_size', type = int, default = 1000, help = 'batch size for processing reference and query datasets')
- # Training
- parser.add_argument('--batch_size', type = int, default = 512, help = 'batch size for processing data during training')
- parser.add_argument('--attr_batch_size', type = int, default = 500, help = 'batch size for feature atrribution. Please adjust this based on your GPU memory')
- parser.add_argument('--epochs', type = int, default = 40, help = 'num of training epochs')
- parser.add_argument('--lr', type = float, default = 0.02, help = 'learning rate')
- # GPU specification
- parser.add_argument('--gpu', type = str, default = '0', help = 'Please specify the GPU to use')
- # Model
- parser.add_argument('--z_dim', type = int, default = 100, help = 'Number of neurons in latent space')
- parser.add_argument('--hidden_rna', type = int, default = 185, help = 'Number of neurons for RNA layer')
- parser.add_argument('--hidden_adt', type = int, default = 30, help = 'Number of neurons for ADT layer')
- parser.add_argument('--hidden_atac', type = int, default = 185, help = 'Number of neurons for ATAC layer')
- parser.add_argument('--num_models', type = int, default = 25, help= 'Number of models for Ensemble Learning')
- # Task
- parser.add_argument('--setting', type=str, required=True,
- choices=['processdata', 'fs', 'plot', 'annotation'],
- help=(
- "`processdata` for processing input train and test Seurat, SCE or Anndata objects;\n"
- "`fs` for feature selection to obtain cell-identity genes;\n"
- "`plot` for generating UMAP plot of the dataset (Additionally, highlights gene expression when called with the `--gene` argument; Generates a ridgeline plot of expression of the specified gene in cell type of interest vs all other cell types when called with `--ctofinterest` argument; Generates a UMAP plot of Hydra predicted labels when called with `--predictions` argument);\n"
- "`annotation` for automated annotation of the query dataset\n\n"
- )
- )
- # Capture all remaining arguments for the annotation setting
- parser.add_argument('annotation_args', nargs=argparse.REMAINDER, help='Additional arguments for annotation script')
- # Parse the command-line arguments
- args = parser.parse_args()
- if args.gpu:
- os.environ["CUDA_VISIBLE_DEVICES"] = args.gpu
- ##############################################
- # Processing input data
- def run_r_script(train_file, test_file, cell_type_label, data_type, processdata_batch_size):
- r_command = [
- "Rscript",
- pkg_resources.resource_filename(__name__, 'R/Process_Dataset.R'),
- train_file,
- test_file,
- cell_type_label,
- data_type,
- # str(peak),
- str(processdata_batch_size)
- ]
- try:
- subprocess.run(r_command, check=True)
- except subprocess.CalledProcessError:
- print("Error: The R script failed to execute.")
- sys.exit(1)
- ##############################################
- def create_UMAP_plots(rds_file, modality, celltypecol, gene_name=None, ctofinterest=None):
- r_command = [
- "Rscript",
- pkg_resources.resource_filename(__name__, 'R/UMAP_plot.R'),
- rds_file,
- modality,
- celltypecol,
- gene_name if gene_name else "None",
- ctofinterest if ctofinterest else "None"
- ]
- try:
- subprocess.check_call(r_command)
- except subprocess.CalledProcessError as e:
- print(f"Error: The R script failed to execute. {e}")
- sys.exit(1)
- except FileNotFoundError as e:
- print(f"Error: File not found. {e}")
- sys.exit(1)
- ##############################################
- def create_UMAP_Hydra_predictions(rds_file, modality, cell_type_predicted):
- r_command = [
- "Rscript",
- pkg_resources.resource_filename(__name__, 'R/plot_predictions.R'),
- rds_file,
- modality,
- cell_type_predicted
- ]
- try:
- subprocess.check_call(r_command)
- except subprocess.CalledProcessError as e:
- print(f"Error: The R script failed to execute. {e}")
- sys.exit(1)
- except FileNotFoundError as e:
- print(f"Error: File not found. {e}")
- sys.exit(1)
- ##############################################
- # Query dataset annotation
- def run_annotation_script(annotation_args):
- annotation_command = ["python", pkg_resources.resource_filename(__name__, 'Annotation.py')] + annotation_args
- subprocess.run(annotation_command, check=True)
- ##############################################
- # Import torch-related libraries after setting the CUDA_VISIBLE_DEVICES
- import torch
- from torch.utils.data import DataLoader
- import torch.nn as nn
- from .model import (Autoencoder_CITEseq_Step1, Autoencoder_SHAREseq_Step1, Autoencoder_TEAseq_Step1,
- Autoencoder_CITEseq_Step2, Autoencoder_SHAREseq_Step2, Autoencoder_TEAseq_Step2,
- Autoencoder_RNAseq_Step1, Autoencoder_RNAseq_Step2, Autoencoder_ADTseq_Step1,
- Autoencoder_ADTseq_Step2, Autoencoder_ATACseq_Step1, Autoencoder_ATACseq_Step2)
- from .train import train_model
- from .util import (MyDataset, read_h5_data, Index2Label, read_fs_label,
- load_and_preprocess_data, perform_data_augmentation, setup_seed)
- # Check the device type based on GPU availability, MPS availability, or defaulting to CPU
- device_str = "CUDA" if torch.cuda.is_available() \
- else "MPS" if torch.backends.mps.is_built() \
- else "CPU"
- device = torch.device(device_str.lower())
- FloatTensor = torch.FloatTensor
- LongTensor = torch.LongTensor
- setup_seed(args.seed) ### set seed for reproducbility
- ##############################################
- print("\nThank you for using Hydra 😄, an interpretable deep generative tool for single-cell omics. Please refer to the full documentation available at https://sydneybiox.github.io/Hydra/ for detailed usage instructions. If you encounter any issues running the tool - Please open an issue on Github, and we will get back to you as soon as possible!!\n\n")
- specified_gpus = args.gpu.split(',') if args.gpu else []
- num_gpus_specified = len(specified_gpus)
- # If CUDA_VISIBLE_DEVICES is not set, use PyTorch to get the total GPU count.
- if not specified_gpus:
- num_gpus = torch.cuda.device_count()
- else:
- num_gpus = num_gpus_specified
- # Get the indices of GPUs that are currently visible to PyTorch
- active_gpu_indices = os.environ.get("CUDA_VISIBLE_DEVICES", "").split(',')
- if num_gpus >= 1 and (device_str == "CPU"):
- print("It seems the CPU version of PyTorch is installed. For GPU utilization, please install the GPU version of PyTorch. Currently, running on CPU!!!")
- print("===============================\n")
- print("Device to be used:", device_str, "\n")
- print("===============================\n")
- ##############################################
- def main():
- logging.info("Starting to run")
- if args.setting.lower() == 'processdata':
- if not args.train or not args.modality:
- parser.error("--train and --modality are required when --setting is 'processdata'")
- else:
- # Call the R script to process the data
- logging.info("Processing datasets...")
- test_file = args.test if args.test else "None"
- run_r_script(args.train, test_file, args.celltypecol, args.modality, args.processdata_batch_size)
- elif args.setting.lower() == 'plot':
- if args.predictions:
- if not args.test or not args.modality or not args.ctpredictions:
- parser.error("--test, --modality and --ctpredictions are required when --setting is 'plot' and --predictions is True")
- else:
- # Call the R script to create UMAP plots with predicted cell types
- logging.info("Generating plot for Hydra predicted cell types...")
- create_UMAP_Hydra_predictions(args.test, args.modality, args.ctpredictions)
- else:
- if not args.train or not args.modality:
- parser.error("--train and --modality are required when --setting is 'UMAPplot'")
- else:
- # Call the R script to create UMAP plots
- logging.info("Generating plot...")
- create_UMAP_plots(args.train, args.modality, args.celltypecol, args.gene, args.ctofinterest)
- elif args.setting.lower() == 'fs':
- dataset_folder_path = os.path.join(args.base_dir, "Input_Processed")
- if not os.path.exists(dataset_folder_path):
- logging.info(f"Error: The dataset folder '{dataset_folder_path}' does not exist. Please provide path to the directory containing `Input_Processed` directory!!!")
- sys.exit(1)
- dataset_folders = sorted(glob.glob(f"{args.base_dir}/Input_Processed"))
- cwd = os.getcwd()
- for dataset_folder in dataset_folders:
- logging.info("Training model...")
- split_folders = sorted(glob.glob(f"{dataset_folder}/split_*"))
- for split_folder in split_folders:
- model_save_path = os.path.join(cwd, 'trained_model')
- os.makedirs(model_save_path, exist_ok = True)
- if os.path.isfile(f"{split_folder}/rna_train.h5"):
- args.rna = f"{split_folder}/rna_train.h5"
- else:
- args.rna = "NULL"
- if os.path.isfile(f"{split_folder}/adt_train.h5"):
- args.adt = f"{split_folder}/adt_train.h5"
- else:
- args.adt = "NULL"
- if os.path.isfile(f"{split_folder}/atac_train.h5"):
- args.atac = f"{split_folder}/atac_train.h5"
- else:
- args.atac = "NULL"
- args.cty = f"{split_folder}/ct_train.csv"
- if args.rna != "NULL" and args.adt != "NULL" and args.atac != "NULL":
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_rna, nfeatures_adt, nfeatures_atac, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scRNA+scADT+scATAC")
- if args.rna != "NULL" and args.adt != "NULL" and args.atac == "NULL":
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_rna, nfeatures_adt, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scRNA+scADT")
- if args.rna != "NULL" and args.adt == "NULL" and args.atac != "NULL":
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_rna, nfeatures_atac, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scRNA+scATAC")
- if args.adt == "NULL" and args.atac == "NULL": # scRNA-seq
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_rna, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scRNA-seq")
- if args.atac == "NULL" and args.rna == "NULL": # scADT-Seq
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_adt, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scADT-seq")
- if args.adt == "NULL" and args.rna == "NULL": # scATAC-Seq
- # Load and preprocess the data
- (train_data, train_dl, train_label, mode, classify_dim, nfeatures_atac, feature_num, label_to_name_mapping) = load_and_preprocess_data(args, setting = "train")
- logging.info("The Dataset is: scATAC-seq")
- ########## Step 1 ###########
- ### Build model
- if mode == "scRNA+scADT+scATAC":
- model = Autoencoder_TEAseq_Step1(nfeatures_rna, nfeatures_adt, nfeatures_atac, args.hidden_rna, args.hidden_adt, args.hidden_atac, args.z_dim, classify_dim, args.num_models)
- elif mode == "scRNA+scADT":
- model = Autoencoder_CITEseq_Step1(nfeatures_rna, nfeatures_adt, args.hidden_rna, args.hidden_adt, args.z_dim, classify_dim, args.num_models)
- elif mode == "scRNA+scATAC":
- model = Autoencoder_SHAREseq_Step1(nfeatures_rna, nfeatures_atac, args.hidden_rna, args.hidden_atac, args.z_dim, classify_dim, args.num_models)
- elif mode == "scRNA-seq":
- model = Autoencoder_RNAseq_Step1(nfeatures_rna, args.hidden_rna, args.z_dim, classify_dim, args.num_models)
- elif mode == "scADT-seq":
- model = Autoencoder_ADTseq_Step1(nfeatures_adt, args.hidden_adt, args.z_dim, classify_dim, args.num_models)
- elif mode == "scATAC-seq":
- model = Autoencoder_ATACseq_Step1(nfeatures_atac, args.hidden_atac, args.z_dim, classify_dim, args.num_models)
- model = model.to(device)
- # Train the original model on the original raw data including all classifiers
- model, loss, train_num = train_model(model, train_dl, lr=args.lr, epochs=args.epochs,
- classify_dim=classify_dim, save_path=model_save_path,
- save_filename='Original_Model.pth.tar', feature_num=feature_num)
- checkpoint_tar = os.path.join(model_save_path, 'Original_Model.pth.tar')
- if os.path.exists(checkpoint_tar):
- # Load the model's weights
- checkpoint = torch.load(checkpoint_tar, weights_only=False)
- model = model.module if isinstance(model, nn.DataParallel) else model
- model.load_state_dict(checkpoint['state_dict'], strict=True)
- ########## Step 2 - Finetuning ###########
- min_epochs, max_epochs = 30, 50
- for modelI in range(args.num_models):
- logging.info("\n\nRefining Model: %s", modelI+1)
- if mode == "scRNA+scADT+scATAC":
- Step2_model = Autoencoder_TEAseq_Step2(nfeatures_rna, nfeatures_adt, nfeatures_atac, args.hidden_rna, args.hidden_adt, args.hidden_atac, args.z_dim, classify_dim)
- elif mode == "scRNA+scADT":
- Step2_model = Autoencoder_CITEseq_Step2(nfeatures_rna, nfeatures_adt, args.hidden_rna, args.hidden_adt, args.z_dim, classify_dim)
- elif mode == "scRNA+scATAC":
- Step2_model = Autoencoder_SHAREseq_Step2(nfeatures_rna, nfeatures_atac, args.hidden_rna, args.hidden_atac, args.z_dim, classify_dim)
- elif mode == "scRNA-seq":
- Step2_model = Autoencoder_RNAseq_Step2(nfeatures_rna, args.hidden_rna, args.z_dim, classify_dim)
- elif mode == "scADT-seq":
- Step2_model = Autoencoder_ADTseq_Step2(nfeatures_adt, args.hidden_adt, args.z_dim, classify_dim)
- elif mode == "scATAC-seq":
- Step2_model = Autoencoder_ATACseq_Step2(nfeatures_atac, args.hidden_atac, args.z_dim, classify_dim)
- # Load the encoder weights trained from Step 1
- encoder_weights = model.encoder.state_dict()
- Step2_model.encoder.load_state_dict(encoder_weights)
- # Load the decoder weights trained from Step 1
- decoder_weights = model.decoder.state_dict()
- Step2_model.decoder.load_state_dict(decoder_weights)
- # Load the classifier weights trained from Step 1
- classifier_weights = model.classifiers[modelI].state_dict()
- Step2_model.classify.load_state_dict(classifier_weights)
- # Move the model to GPU and automatically utilize multiple GPUs if available
- Step2_model = Step2_model.to(device)
- # Generate Augmented dataset
- new_data, new_label, new_label_names = perform_data_augmentation(label_to_name_mapping, train_num, classify_dim, train_label, train_data, model, args)
- # Process the new data after augmentation
- train_transformed_dataset = MyDataset(new_data, new_label)
- new_train_dl = DataLoader(train_transformed_dataset, batch_size=args.batch_size, shuffle=True, num_workers=0, drop_last = False)
- # set a random number of epochs for this model
- epochs = random.randint(min_epochs, max_epochs)
- Step2_model, loss, _ = train_model(Step2_model, new_train_dl, lr=args.lr, epochs=epochs,
- classify_dim=classify_dim, save_path=model_save_path,
- save_filename='FineTuned_Model.pth.tar', feature_num=feature_num)
- # Create directory for balanced data if it does not exist
- balanced_data_dir = os.path.join(cwd, f'Balanced_Data-{args.num_models}')
- os.makedirs(balanced_data_dir, exist_ok = True)
- new_data, new_label, new_label_names = perform_data_augmentation(label_to_name_mapping, train_num, classify_dim, train_label, train_data, Step2_model, args)
- # Modify new_data_path and new_label_path to use balanced_data_dir
- new_data_path = os.path.join(balanced_data_dir, f'train_data_bal_{modelI+1}.pt')
- torch.save(new_data, new_data_path)
- new_label_path = os.path.join(balanced_data_dir, f'train_label_bal_{modelI+1}.pt')
- torch.save(new_label, new_label_path)
- # Create directory for final models if it does not exist
- final_models_dir = os.path.join(model_save_path, f'Final_Models-{args.num_models}')
- os.makedirs(final_models_dir, exist_ok = True)
- final_model = Step2_model.module if isinstance(Step2_model, nn.DataParallel) else Step2_model
- # Save the final model
- final_model_path = os.path.join(final_models_dir, f'model_{modelI+1}.pth.tar')
- torch.save({'state_dict': final_model.state_dict()}, final_model_path)
- ############ Run feature selection ############
- logging.info("\n\nRunning feature selection...")
- # Convert feature names to string format
- rna_name_new = []
- adt_name_new = []
- atac_name_new = []
- if os.path.isfile(f"{split_folder}/rna_train.h5"):
- rna_data_path = f"{split_folder}/rna_train.h5"
- rna_data_path_noscale = f"{split_folder}/rna_train_noscale.h5"
- else:
- rna_data_path = "NULL"
- if os.path.isfile(f"{split_folder}/adt_train.h5"):
- adt_data_path = f"{split_folder}/adt_train.h5"
- adt_data_path_noscale = f"{split_folder}/adt_train_noscale.h5"
- else:
- adt_data_path = "NULL"
- if os.path.isfile(f"{split_folder}/atac_train.h5"):
- atac_data_path = f"{split_folder}/atac_train.h5"
- atac_data_path_noscale = f"{split_folder}/atac_train_noscale.h5"
- else:
- atac_data_path = "NULL"
- label_path = f"{split_folder}/ct_train.csv"
- (label, _) = read_fs_label(label_path)
- index_to_label = Index2Label(label_path, classify_dim)
- classify_dim = (max(label)+1).cpu().numpy()
- if adt_data_path != "NULL" and atac_data_path != "NULL" and rna_data_path != "NULL":
- mode = "scRNA+scADT+scATAC"
- rna_name = h5py.File(rna_data_path, "r")['matrix/features'][:]
- adt_name = h5py.File(adt_data_path, "r")['matrix/features'][:]
- atac_name = h5py.File(atac_data_path, "r")['matrix/features'][:]
- rna_data = read_h5_data(rna_data_path)
- adt_data = read_h5_data(adt_data_path)
- atac_data = read_h5_data(atac_data_path)
- rna_data_noscale = read_h5_data(rna_data_path_noscale)
- adt_data_noscale = read_h5_data(adt_data_path_noscale)
- atac_data_noscale = read_h5_data(atac_data_path_noscale)
- nfeatures_rna = rna_data.shape[1]
- nfeatures_adt = adt_data.shape[1]
- nfeatures_atac = atac_data.shape[1]
- feature_num = nfeatures_rna + nfeatures_adt + nfeatures_atac
- data = torch.cat((rna_data, adt_data, atac_data), 1)
- data_noscale = torch.cat((rna_data_noscale, adt_data_noscale, atac_data_noscale), 1)
- if args.rna != "NULL" and adt_data_path != "NULL" and atac_data_path == "NULL":
- mode = "scRNA+scADT"
- rna_name = h5py.File(rna_data_path, "r")['matrix/features'][:]
- adt_name = h5py.File(adt_data_path, "r")['matrix/features'][:]
- rna_data = read_h5_data(rna_data_path)
- adt_data = read_h5_data(adt_data_path)
- rna_data_noscale = read_h5_data(rna_data_path_noscale)
- adt_data_noscale = read_h5_data(adt_data_path_noscale)
- nfeatures_rna = rna_data.shape[1]
- nfeatures_adt = adt_data.shape[1]
- feature_num = nfeatures_rna + nfeatures_adt
- data = torch.cat((rna_data, adt_data), 1)
- data_noscale = torch.cat((rna_data_noscale, adt_data_noscale), 1)
- if args.rna != "NULL" and adt_data_path == "NULL" and atac_data_path != "NULL":
- mode = "scRNA+scATAC"
- rna_name = h5py.File(rna_data_path, "r")['matrix/features'][:]
- atac_name = h5py.File(atac_data_path, "r")['matrix/features'][:]
- rna_data = read_h5_data(rna_data_path)
- atac_data = read_h5_data(atac_data_path)
- rna_data_noscale = read_h5_data(rna_data_path_noscale)
- atac_data_noscale = read_h5_data(atac_data_path_noscale)
- nfeatures_rna = rna_data.shape[1]
- nfeatures_atac = atac_data.shape[1]
- feature_num = nfeatures_rna + nfeatures_atac
- data = torch.cat((rna_data, atac_data), 1)
- data_noscale = torch.cat((rna_data_noscale, atac_data_noscale), 1)
- if adt_data_path == "NULL" and atac_data_path == "NULL":
- mode = "scRNA-seq"
- rna_name = h5py.File(rna_data_path, "r")['matrix/features'][:]
- rna_data = read_h5_data(rna_data_path)
- rna_data_noscale = read_h5_data(rna_data_path_noscale)
- nfeatures_rna = rna_data.shape[1]
- feature_num = nfeatures_rna
- data = rna_data
- data_noscale = rna_data_noscale
- if rna_data_path == "NULL" and atac_data_path == "NULL":
- mode = "scADT-seq"
- adt_name = h5py.File(adt_data_path, "r")['matrix/features'][:]
- adt_data = read_h5_data(adt_data_path)
- adt_data_noscale = read_h5_data(adt_data_path_noscale)
- nfeatures_adt = adt_data.shape[1]
- feature_num = nfeatures_adt
- data = adt_data
- data_noscale = adt_data_noscale
- if rna_data_path == "NULL" and adtdatapath == "NULL":
- mode = "scATAC-seq"
- atac_name = h5py.File(atac_data_path, "r")['matrix/features'][:]
- atac_data = read_h5_data(atac_data_path)
- atac_data_noscale = read_h5_data(atac_data_path_noscale)
- nfeatures_atac = atac_data.shape[1]
- feature_num = nfeatures_atac
- data = atac_data
- data_noscale = atac_data_noscale
- if mode == "scRNA+scADT+scATAC":
- for i in range(nfeatures_rna):
- a = str(rna_name[i], encoding="utf-8") + "_RNA_"
- rna_name_new.append(a)
- for i in range(nfeatures_adt):
- a = str(adt_name[i], encoding="utf-8") + "_ADT_"
- adt_name_new.append(a)
- for i in range(nfeatures_atac):
- a = str(atac_name[i], encoding="utf-8") + "_ATAC_"
- atac_name_new.append(a)
- features = rna_name_new + adt_name_new + atac_name_new
- if mode == "scRNA+scADT":
- for i in range(nfeatures_rna):
- a = str(rna_name[i], encoding="utf-8") + "_RNA_"
- rna_name_new.append(a)
- for i in range(nfeatures_adt):
- a = str(adt_name[i], encoding="utf-8") + "_ADT_"
- adt_name_new.append(a)
- features = rna_name_new + adt_name_new
- if mode == "scRNA+scATAC":
- for i in range(nfeatures_rna):
- a = str(rna_name[i], encoding="utf-8") + "_RNA_"
- rna_name_new.append(a)
- for i in range(nfeatures_atac):
- a = str(atac_name[i], encoding="utf-8") + "_ATAC_"
- atac_name_new.append(a)
- features = rna_name_new + atac_name_new
- if mode == "scRNA-seq":
- for i in range(nfeatures_rna):
- a = str(rna_name[i], encoding="utf-8") + "_RNA_"
- rna_name_new.append(a)
- features = rna_name_new
- if mode == "scADT-seq":
- for i in range(nfeatures_adt):
- a = str(adt_name[i], encoding="utf-8") + "_ADT_"
- adt_name_new.append(a)
- features = adt_name_new
- if mode == "scATAC-seq":
- for i in range(nfeatures_atac):
- a = str(atac_name[i], encoding="utf-8") + "_ATAC_"
- atac_name_new.append(a)
- features = atac_name_new
- # Load all model files
- model_files = glob.glob(os.path.join(model_save_path, f'Final_Models-{args.num_models}/*.pth.tar'))
- # Run feature selection for each cell type
- for i in tqdm(range(classify_dim)):
- cell_type_name = index_to_label[i]
- try:
- cell_type_name = cell_type_name.replace("/", "_")
- except:
- pass
- # Select the data for the current cell type and for all other cell types
- current_type_data = data_noscale[torch.where(label == i)].reshape(-1, feature_num)
- other_type_data = data_noscale[torch.where(label != i)].reshape(-1, feature_num)
- # Calculate the mean expression for each feature across the two groups
- mean_current_type = torch.mean(current_type_data, dim=0)
- mean_other_types = torch.mean(other_type_data, dim=0)
- # Compute fold changes for each feature
- epsilon = 1e-6
- fold_changes = (mean_current_type + epsilon) / (mean_other_types + epsilon)
- # Apply log transformation to fold changes
- log_fold_changes = torch.log2(fold_changes)
- # Get indices of cells with the current cell type
- train_index_fs = torch.where(label == i)
- train_index_fs = [t.cpu().numpy() for t in train_index_fs]
- train_index_fs = np.array(train_index_fs)
- # Get data for the current cell type
- train_data_each_celltype_fs = data[train_index_fs, :].reshape(-1, feature_num)
- attributions_all_models = []
- # Compute the attribution for each cell of the current cell type
- for model_file in model_files:
- if mode == "scRNA+scADT+scATAC":
- model_test = Autoencoder_TEAseq_Step2(nfeatures_rna, nfeatures_adt, nfeatures_atac, args.hidden_rna, args.hidden_adt, args.hidden_atac, args.z_dim, classify_dim)
- elif mode == "scRNA+scADT":
- model_test = Autoencoder_CITEseq_Step2(nfeatures_rna, nfeatures_adt, args.hidden_rna, args.hidden_adt, args.z_dim, classify_dim)
- elif mode == "scRNA+scATAC":
- model_test = Autoencoder_SHAREseq_Step2(nfeatures_rna, nfeatures_atac, args.hidden_rna, args.hidden_atac, args.z_dim, classify_dim)
- elif mode == "scRNA-seq":
- model_test = Autoencoder_RNAseq_Step2(nfeatures_rna, args.hidden_rna, args.z_dim, classify_dim)
- elif mode == "scADT-seq":
- model_test = Autoencoder_ADTseq_Step2(nfeatures_adt, args.hidden_adt, args.z_dim, classify_dim)
- elif mode == "scATAC-seq":
- model_test = Autoencoder_ATACseq_Step2(nfeatures_atac, args.hidden_atac, args.z_dim, classify_dim)
- # Load the model's weights
- checkpoint = torch.load(model_file, weights_only=False)
- model_test.load_state_dict(checkpoint['state_dict'], strict=True)
- model_test = model_test.to(device)
- classify_model = nn.Sequential(*list(model_test.children()))[0:2]
- deconv = IntegratedGradients(classify_model)
- Attr_batch_size = args.attr_batch_size
- # Initialize the attributions tensor
- attribution = torch.zeros(1, feature_num).to(device)
- # Calculate the attributions in batches
- for j in range(0, train_data_each_celltype_fs.size(0), Attr_batch_size):
- batch = train_data_each_celltype_fs[j:j + Attr_batch_size, :]
- batch = batch.to(device)
- attribution += torch.sum(torch.abs(deconv.attribute(batch, target=i)), dim=0, keepdim=True)
- # take mean attribution for the current model
- attribution_mean = torch.mean(attribution, dim=0)
- attributions_all_models.append(attribution_mean)
- del model_test # delete the current model to free up memory
- torch.cuda.empty_cache() # empty GPU cache to avoid out-of-memory errors
- # calculate the average attribution across all models
- average_attribution = sum(attributions_all_models) / len(model_files)
- fs_score = average_attribution.reshape(-1).detach().cpu().numpy()
- # Adjust by the sign of the log fold changes
- fs_score = fs_score * np.sign(log_fold_changes.numpy())
- # Directly sort by the scores themselves
- indices_sorted = np.argsort(-fs_score) # This sorts the scores in descending order
- # Use the sorted indices to order your features and scores
- fs_results = [features[index] + str(index) for index in indices_sorted]
- fs_scores = [fs_score[index] for index in indices_sorted]
- # Convert fs_results to a pandas DataFrame
- fs_results_df = pd.DataFrame({'Feature Name': fs_results, 'Score': fs_scores})
- # Saving feature selection results
- cwd = os.getcwd() # Get the current working directory
- Hydra_folder = os.path.join(cwd, f"Results/Feature_Selection/Hydra-{args.num_models}")
- if not os.path.exists(Hydra_folder):
- os.makedirs(Hydra_folder)
- # Save the feature selection results to a CSV file
- fs_results_df.to_csv(os.path.join(Hydra_folder, f'fs.{cell_type_name}_Hydra.csv'), index=False)
- elif args.setting.lower() == "annotation":
- run_annotation_script(args.annotation_args)
- logging.info("Completed successfully!")
- return
- ##############################################
- if __name__ == "__main__":
- # Call the main function
- main()
Hydra.py at commit c1b2934, under MIT · at the source
Overview
- School of Mathematics and Statistics, Faculty of Science, The University of Sydney,Camperdown, NSW Australia
- Computational Systems Biology Unit, Children’s Medical Research Institute, Faculty of Medicine and Health, The University of Sydney,Westmead, NSW Australia
- Sydney Precision Data Science Center, The University of Sydney,Camperdown, NSW Australia
- Computer Science and Artificial Intelligence Laboratory, Massachusetts Institute of Technology,Cambridge, MA USA
- Computational Biology Group, The Broad Institute of MIT and Harvard,Cambridge, MA USA
- Charles Perkins Center, The University of Sydney,Camperdown, NSW Australia
- Center for Cancer Research, Westmead Institute for Medical Research,Westmead, NSW Australia
Abstract
Single-cell omics enable the dissection of cellular heterogeneity, yet the high dimensionality, inherent noise, and sparsity present significant challenges. These challenges are amplified for rare cell populations, which are often difficult to annotate reliably but can be central to development and disease. As single-cell assays increasingly capture multiple molecular layers, the integrative analysis of such multimodal data further increases complexity. Here, we propose Hydra, a deep generative framework based on an ensemble of variational autoencoders for effective learning of unimodal and multimodal single-cell omics data. Hydra implements interpretable modules for capturing cell-type-specific molecular signatures. The ensemble of such interpretable modules enables reproducible feature selection and robust cell-type annotation, with particular effectiveness for rare populations. We benchmarked Hydra on a repertoire of 21 datasets, including unimodal and multimodal single-cell omics data. Our results demonstrate that Hydra offers comparable to superior performance to several state-of-the-art methods. Finally, we highlight the utility of Hydra in robustly annotating brain cellular subtypes and preserving disease-relevant signatures using our previously published dataset that profiles Alzheimer’s disease.
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 12 matches between paragraphs and lines of code.
SydneyBioX/scClassify
74fe32784b401492da0fd203736f39bcd6f2a2c5, 20 October 2021Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
16 files
- R/
KNNfunctions.R , R, 556 lines - R/
data.R , R, 33 lines - R/
ensemble.R , R, 165 lines - R/
featureSelection.R , R, 248 lines, 1 match - R/
global.R , R, 2 lines - R/
learningCurve.R , R, 306 lines - R/
predict_scClassify.R , R, 853 lines - R/
runHOPACH.R , R, 1,143 lines - R/
sampleSizeCal.R , R, 206 lines - R/
scClassify.R , R, 448 lines - R/
scClassifyTrainClass.R , R, 398 lines - R/
train_scClassify.R , R, 469 lines - R/
utils_scClassify.R , R, 7 lines - vignettes/
pretrainedModel.Rmd , R, 148 lines - vignettes/
scClassify.Rmd , R, 213 lines, 1 match - README.md, Text, 83 lines
kellen8hao/scSorterDL
b0c29b000df3d9243f236498e3e15a6df7613995, 7 July 2025Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
16 files
- code/
scSorterDL_final/ , Python, 1 line__init__.py - code/
scSorterDL_final/ , Python, 169 linesda.py - code/
scSorterDL_final/ , Shell, 85 linesplt_all_resubmit_query.s h - code/
scSorterDL_final/ , Shell, 32 lines, 1 matchplt_all_submit_query.sh - code/
scSorterDL_final/ , Shell, 18 linesplt_query.sh - code/
scSorterDL_final/ , Shell, 80 linesplt_run_query.sh - code/
scSorterDL_final/ , Shell, 7 linesrun.sh - code/
scSorterDL_final/ , Python, 71 linessamplers.py - code/
scSorterDL_final/ , Python, 593 linesscSorterDL.py - code/
scSorterDL_final/ , Python, 648 lines, 1 matchtrain.py - code/
scSorterDL_final/ , Python, 84 linesutils.py - code/
scSorterDL_final/ , Shell, 94 linesval_all_resubmit_query.s h - code/
scSorterDL_final/ , Shell, 35 linesval_all_submit_query.sh - code/
scSorterDL_final/ , Shell, 18 linesval_query.sh - code/
scSorterDL_final/ , Shell, 78 linesval_run_query.sh - README.md, Text, 26 lines
deeplearner87/UMINT
3a588f834dc74879394466147e40378f2d5ad95c, 30 May 2023Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
47 files
- Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linesMALT10k_Seurat_MOFA2_Tot alVI_hiearchical.ipynb - Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linesMALT10k_Seurat_MOFA2_Tot alVI_kmeans.ipynb - Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linesbmcite30k_Seurat_MOFA2_T otalVI_hiearchical.ipynb - Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linesbmcite30k_Seurat_MOFA2_T otalVI_kmeans.ipynb - Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linescbmc8k_Seurat_MOFA2_Tota lVI_hiearchical.ipynb - Benchmarking/
ComparativeAnalysis/ , Jupyter, 84 linescbmc8k_Seurat_MOFA2_Tota lVI_kmeans.ipynb - Benchmarking/
MOFA2/ , R, 81 linesLIHC_Bulk_MOFA2.R - Benchmarking/
MOFA2/ , R, 76 lines, 1 matchMALT10k_MOFA2.R - Benchmarking/
MOFA2/ , R, 78 lines, 1 matchbmcite30k_MOFA2.R - Benchmarking/
MOFA2/ , R, 78 linescbmc8k_MOFA2.R - Benchmarking/
Seuratv4/ , R, 44 lines, 1 matchMALT10k_Seurat.R - Benchmarking/
Seuratv4/ , R, 38 linesbmcite30k_Seurat.R - Benchmarking/
Seuratv4/ , R, 33 linescbmc8k_Seurat.R - Benchmarking/
TotalVI/ , Jupyter, 103 linesMALT10k_TotalVI.ipynb - Benchmarking/
TotalVI/ , Jupyter, 109 linesbmcite30k_TotalVI.ipynb - Benchmarking/
TotalVI/ , Jupyter, 106 linescbmc8k_TotalVI.ipynb - Preprocessing/
CBMC_8k_Preprocessing.R , R, 39 lines - Preprocessing/
MALT10k_Preprocessing.R , R, 45 lines, 1 match - Preprocessing/
bmcite30k_Preprocessing. , R, 40 linesR - Preprocessing/
kotliarov50k_Batch_Integ , Jupyter, 129 linesration_SCTransform.ipynb - Preprocessing/
kotliarov50k_Preprocessi , Jupyter, 102 linesng.ipynb - Preprocessing/
pbmc10k_ATAC_Preprocessi , Jupyter, 319 linesng.ipynb - Preprocessing/
pbmc10k_RNA_Preprocessin , Jupyter, 239 linesg.ipynb - Proposed/
LIHC_bulkMultiOmics_UMIN , Jupyter, 237 linesT_AE.ipynb - Proposed/
MALT10k_AE.ipynb , Jupyter, 143 lines - Proposed/
MALT10k_DAE.ipynb , Jupyter, 143 lines - Proposed/
MALT10k_SAE.ipynb , Jupyter, 143 lines - Proposed/
MALT10k_UMINT.ipynb , Jupyter, 139 lines - Proposed/
MALT10k_UMINT_AE_Time_Co , Jupyter, 144 linesmp.ipynb - Proposed/
autoencoder.py , Python, 215 lines, 1 match - Proposed/
bmcite30k_AE.ipynb , Jupyter, 143 lines - Proposed/
bmcite30k_DAE.ipynb , Jupyter, 143 lines - Proposed/
bmcite30k_SAE.ipynb , Jupyter, 143 lines - Proposed/
bmcite30k_UMINT.ipynb , Jupyter, 139 lines - Proposed/
bmcite30k_UMINT_AE_Time_ , Jupyter, 141 linesComp.ipynb - Proposed/
cbmc8k_AE.ipynb , Jupyter, 143 lines - Proposed/
cbmc8k_DAE.ipynb , Jupyter, 143 lines - Proposed/
cbmc8k_SAE.ipynb , Jupyter, 143 lines - Proposed/
cbmc8k_UMINT.ipynb , Jupyter, 139 lines - Proposed/
cbmc8k_UMINT_AE_Time_Com , Jupyter, 144 linesp.ipynb - Proposed/
kotliarov50k_UMINT.ipynb , Jupyter, 167 lines - Proposed/
mlp.py , Python, 33 lines - Proposed/
pbmc10k_UMINT.ipynb , Jupyter, 171 lines - Proposed/
pbmc10k_UMINT_UMAP.ipynb , Jupyter, 134 lines - Proposed/
umint.py , Python, 60 lines, 1 match - LICENSE, License, 21 lines
- README.md, Text, 91 lines
SydneyBioX/Hydra
c1b293442b30734c8f4a347311a3be106d2373a0, 23 July 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
12 files
- hydra/
Annotation.py , Python, 278 lines - hydra/
Hydra.py , Python, 734 lines, 2 matches - hydra/
R/ , R, 361 linesProcess_Dataset.R - hydra/
R/ , R, 205 linesUMAP_plot.R - hydra/
R/ , R, 103 linesplot_predictions.R - hydra/
__init__.py , Python, 1 line - hydra/
model.py , Python, 493 lines - hydra/
train.py , Python, 107 lines - hydra/
util.py , Python, 1,340 lines - setup.py, Python, 55 lines
- LICENSE, License, 22 lines
- README.md, Text, 43 lines
The paper's code and data availability statement is in the Data section.
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:
- 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 85 scripts, each with its path and the digest of its content;
- 12 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
Data links
- ebi.ac.uk/
biostudies/ , EMBL-EBI; found in the notessourcedata
Data availability
The computer code produced in this study is available in the following databases: GitHub (https://
The source data of this paper are collected in the following database record: biostudies:S-SCDT-10_103
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, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 2 keywords, 7 MeSH terms, 1 funder, 56 references.
Cite
This paper
Wagle, M. M., Liu, C., Liu, Z., Wang, Y., Kellis, M., Patrick, E., & Yang, P. (2026). Interpretable deep generative ensemble learning for single-cell omics with Hydra. Molecular systems biology, 22(7), 1161-1179. https://
BibTeX
@article{wagle2026interp
author = {Wagle, Manoj M and Liu, Chunlei and Liu, Zunpeng and Wang, Yongheng and Kellis, Manolis and Patrick, Ellis and Yang, Pengyi},
title = {{Interpretable deep generative ensemble learning for single-cell omics with Hydra}},
journal = {Molecular systems biology},
year = {2026},
month = apr,
volume = {22},
number = {7},
pages = {1161--1179},
publisher = {Nature Publishing Group},
issn = {1744-4292},
doi = {10.1038/
url = {https://
pmid = {41965454},
pmcid = {PMC13328726}
}
RIS
TY - JOUR
AU - Wagle, Manoj M
AU - Liu, Chunlei
AU - Liu, Zunpeng
AU - Wang, Yongheng
AU - Kellis, Manolis
AU - Patrick, Ellis
AU - Yang, Pengyi
TI - Interpretable deep generative ensemble learning for single-cell omics with Hydra
T2 - Molecular systems biology
J2 - Mol Syst Biol
PY - 2026
DA - 2026/
VL - 22
IS - 7
SP - 1161
EP - 1179
SN - 1744-4292
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Interpretable deep generative ensemble learning for single-cell omics with Hydra",
"container-title": "Molecular systems biology",
"author": [
{
"family": "Wagle",
"given": "Manoj M"
},
{
"family": "Liu",
"given": "Chunlei"
},
{
"family": "Liu",
"given": "Zunpeng"
},
{
"family": "Wang",
"given": "Yongheng"
},
{
"family": "Kellis",
"given": "Manolis"
},
{
"family": "Patrick",
"given": "Ellis"
},
{
"family": "Yang",
"given": "Pengyi"
}
],
"container-title-short":
"volume": "22",
"issue": "7",
"page": "1161-1179",
"DOI": "10.1038/
"PMID": "41965454",
"PMCID": "PMC13328726",
"ISSN": "1744-4292",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
11
]
]
}
}
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.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: pysam, SingleCellExperiment, limma, 20 other tools, cellular / molecular, 1 reference
- [2] doi:10.1093/nar/gkag706 [code]
- scDifformer: diffusion-based post-training for virtual cell modeling across large-scale single-cell data.Journal: Nucleic acids researchIn common: Keras, UMAP, anndata, 13 other tools, 7 references
- [3] doi:10.1038/s44318-026-00818-9 [code]
- FAM134B-mediated ER-phagy degrades APP and suppresses Alzheimer's disease pathology.Journal: The EMBO journalIn common: SingleCellExperiment, reticulate, limma, 18 other tools, cellular / molecular, 1 reference
- [4] doi:10.1038/s41592-026-03194-8 [code]
- Beyond benchmarking: an expert-guided consensus approach to spatially aware clustering.Journal: Nature methodsIn common: SingleCellExperiment, limma, anndata, 15 other tools, 4 references
- [5] doi:10.1093/bioinformatics/btag652 [code]
- mmVelo: a deep generative model for estimating cell state-dependent dynamics across multiple modalities.Journal: Bioinformatics (Oxford, England)In common: pysam, UMAP, anndata, 8 other tools, 9 references
- [6] doi:10.1016/j.cpblue.2026.100007 [code]
- An integrated single-cell and spatial proteotranscriptomics atlas of fibroblast-driven immunoregulation within the human adult oral cavity.Journal: Cell press blueIn common: SingleCellExperiment, reticulate, limma, 16 other tools, 1 reference
- [7] doi:10.1038/s41467-026-71803-3 [code]
- Charting the transition from in vitro gliogenesis to the in vivo maturation of human glial progenitor cells transplanted into the hypomyelinated mouse brain.Journal: Nature communicationsIn common: reticulate, anndata, Numba, 15 other tools, cellular / molecular, 3 references
- [8] doi:10.1016/j.xcrm.2026.102651 [code]
- Integrative CSF profiling identifies disease-specific immune responses in leptomeningeal disease.Journal: Cell reports. MedicineIn common: SingleCellExperiment, reticulate, UMAP, 16 other tools, cellular / molecular
- [9] doi:10.1038/s41467-026-76675-1 [code]
- Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.Journal: Nature communicationsIn common: pysam, reticulate, limma, 16 other tools
- [10] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: reticulate, limma, Keras, 16 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: 4 repositories of the authors' code, each at its verified commit and with its license, 85 scripts, and 12 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:635ad0ef93f84cfe…
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.
