Skip to content

Commit

Permalink
put back string conversion to plotTIC; deleted by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
duibuqi committed Nov 29, 2023
1 parent 0c055f0 commit 42a465c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/test_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def test_multivariateqcreport_analytical(self):

for testFile in testFiles:
expectedPath = os.path.join(tmpdirname, 'graphics', 'report_multivariateAnalytical', testFile)
print(expectedPath)
#print(expectedPath)
self.assertTrue(os.path.exists(expectedPath))


Expand Down
5 changes: 3 additions & 2 deletions nPYc/plotting/_plotTIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def plotTIC(dataset, addViolin=True, addBatchShading=False,
msData.applyMasks()

# List unique classes in msData.sampleMetadata[colourBy]
uniq = msData.sampleMetadata[colourBy].unique()
uniq_classes = msData.sampleMetadata[colourBy].unique()
uniq = [str(i) for i in uniq_classes]

if colourType == 'categorical':

Expand Down Expand Up @@ -150,7 +151,7 @@ def plotTIC(dataset, addViolin=True, addBatchShading=False,

# Colour by categorical class
if colourType == 'categorical':
uniq = msData.sampleMetadata[colourBy].unique()
#uniq = msData.sampleMetadata[colourBy].unique() defined above
palette = {}
sampleMasks = [] # sampleMasks = list()
for u in uniq:
Expand Down

0 comments on commit 42a465c

Please sign in to comment.