Skip to content

Commit ccb3e2e

Browse files
committed
added reindex function
1 parent 327fb93 commit ccb3e2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SigProfilerAssignment/decomposition.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
SigProfilerMatrixGeneratorFunc as datadump,
2525
)
2626
from SigProfilerMatrixGenerator.scripts import CNVMatrixGenerator as scna
27+
from sigProfilerPlotting import sigProfilerPlotting as sigPlot
2728
import sigProfilerPlotting
2829
import os, sys
2930
from PyPDF2 import PdfMerger
@@ -302,6 +303,9 @@ def spa_analyze(
302303
mutation_type = str(genomes.shape[0])
303304
m = mutation_type
304305

306+
# Re-indexing the input matrix file by using process_input function from SigProfilePlotting
307+
genomes = sigPlot.process_input(genomes, m)
308+
305309
m_for_subgroups = ""
306310
if m == "96" or m == "288" or m == "1536":
307311
m_for_subgroups = "SBS"

0 commit comments

Comments
 (0)