Skip to content

Commit

Permalink
Round
Browse files Browse the repository at this point in the history
  • Loading branch information
nrhorner committed Sep 12, 2024
1 parent 0d72635 commit 95caeda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/workflow_glue/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def plot_aav_structures(report, structures_file):
with tabs.add_dropdown_menu():

for sample, df_sample in df.groupby('sample_id'):

with tabs.add_dropdown_tab(sample):
df_sample = df_sample.sort_values('percentage', ascending=False)
# Plot of main genome type counts
Expand All @@ -179,6 +180,7 @@ def plot_aav_structures(report, structures_file):

# Table with counts and percentages
# (in lieu of being able to annotate bar plots in ezchrts)
df_sample = df_sample.round({'count': 2, 'percentage': 2})
DataTable.from_pandas(df_sample, use_index=False)


Expand Down
1 change: 1 addition & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ process makeReport {
String report_name = "wf-aav-qc-report.html"
String metadata = new JsonBuilder(metadata).toPrettyString()
"""
touch 1
echo '${metadata}' > metadata.json
workflow-glue report $report_name \
--wf_version $wf_version \
Expand Down

0 comments on commit 95caeda

Please sign in to comment.