Skip to content

Commit c9cbcb3

Browse files
committed
[scRNA_seq]: Skip rug plots for missing cell type libraries
1 parent 64e2c63 commit c9cbcb3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

appyters/scRNA_seq/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,7 @@ def plot_protrack(libraries, tmp_adata, bool_plot_rug=True, bool_plot_dendrogram
11701170
adata_heatmap.obs = adata_heatmap.obs.T.drop_duplicates().T
11711171
new_library_filename = extract_library_name(library_filename)
11721172
library_name = library_filename+"_0"
1173+
if library_name not in adata_heatmap.obs.columns: continue
11731174
clean_library_filename = {library_name: new_library_filename}
11741175
new_cols = list()
11751176
for col in adata_heatmap.obs.columns:

0 commit comments

Comments
 (0)