From f1b9da14a40d888de363980c5aacb2051195c1ee Mon Sep 17 00:00:00 2001 From: "Daniel J. B. Clarke" Date: Wed, 3 Jul 2024 16:26:31 -0400 Subject: [PATCH] [scRNA_seq]: Skip rug plots for missing cell type libraries --- appyters/scRNA_seq/appyter.json | 2 +- appyters/scRNA_seq/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appyters/scRNA_seq/appyter.json b/appyters/scRNA_seq/appyter.json index f1af43d15..6bbcdbbff 100644 --- a/appyters/scRNA_seq/appyter.json +++ b/appyters/scRNA_seq/appyter.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/MaayanLab/appyter-catalog/main/schema/appyter-validator.json", "name": "scRNA_seq", "title": "Single cell RNA-seq analysis pipeline", - "version": "0.2.6", + "version": "0.2.7", "description": "scRNA-seq analysis pipeline enables users to analyze and visualize scRNA-seq datasets with state-of-the-art algorithms and visualization methods.", "image": "screenshot.png", "authors": [ diff --git a/appyters/scRNA_seq/utils.py b/appyters/scRNA_seq/utils.py index fa5fee38a..4c90f16b4 100644 --- a/appyters/scRNA_seq/utils.py +++ b/appyters/scRNA_seq/utils.py @@ -1134,6 +1134,7 @@ def plot_protrack(libraries, tmp_adata, bool_plot_rug=True, bool_plot_dendrogram adata_heatmap.obs = adata_heatmap.obs.T.drop_duplicates().T new_library_filename = extract_library_name(library_filename) library_name = library_filename+"_0" + if library_name not in adata_heatmap.obs.columns: continue clean_library_filename = {library_name: new_library_filename} new_cols = list() for col in adata_heatmap.obs.columns: