Skip to content

Commit

Permalink
update totals sample numbers in final report MS
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinesands committed Nov 20, 2024
1 parent 920fe61 commit 4914af6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nPYc/reports/_generateReportMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def _finalReport(dataset, destinationPath=None, pcaModel=None, reportType='final
sampleSummary['Acquired'].drop(sampleSummary['Acquired'].index[sampleSummary['Acquired']['Total'].values == 0],
axis=0, inplace=True)

# Update 'All', 'Missing/Excluded' to only reflect sample types present in data
sampleSummary['Acquired'].loc['All', 'Missing/Excluded'] = sum(sampleSummary['Acquired']['Missing/Excluded'][1:])

sampleSummary['isFinalReport'] = True
if 'StudySamples Exclusion Details' in sampleSummary:
sampleSummary['studySamplesExcluded'] = True
Expand Down

0 comments on commit 4914af6

Please sign in to comment.