Skip to content

Commit

Permalink
minor tweaks to dbcan report section
Browse files Browse the repository at this point in the history
  • Loading branch information
cmkobel committed Apr 18, 2024
1 parent 2b0fdb0 commit ce66a24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions report_subpipeline/scripts/section_dbcan.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,18 @@ df_dbcan_plot_data_summarized = df_dbcan_plot_data %>%
filter(coverage >= .9) %>%
summarize(count = n())
N_dbcan = df_dbcan_plot_data$sample %>% unique() %>% length()
n_dbcan_samples = df_dbcan_plot_data$sample %>% unique() %>% length()
n_dbcan_substrates = df_dbcan_plot_data$pretty %>% unique() %>% length()
```




```{r dbcan-plot-show, echo=FALSE, message=F, warning=F, error = T, fig.height = max(1.8, (N_dbcan*0.2)+1.3), fig.width = 10}
```{r dbcan-plot-show, echo=FALSE, message=F, warning=F, error = T, fig.height = max(1.8, (n_dbcan_samples*0.2)+1.3), fig.width = max(1.8, (n_dbcan_substrates*0.2)+2.3)}
df_dbcan_plot_data_summarized %>%
ggplot(aes(pretty, reorder(sample, desc(index)), fill = count)) +
Expand Down

0 comments on commit ce66a24

Please sign in to comment.