From 6320e8c7c89373c51b8f50f5e32bca8878a838b8 Mon Sep 17 00:00:00 2001 From: Gregor Sturm Date: Sat, 30 Jan 2021 16:03:19 +0100 Subject: [PATCH] Ensure consistent order of spectratype dataframe --- scirpy/_tools/_spectratype.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scirpy/_tools/_spectratype.py b/scirpy/_tools/_spectratype.py index 5d224cb59..dcc9b8ac8 100644 --- a/scirpy/_tools/_spectratype.py +++ b/scirpy/_tools/_spectratype.py @@ -64,4 +64,6 @@ def spectratype( value=0.0 ) + cdr3_lengths.sort_index(axis=1, inplace=True) + return cdr3_lengths