Skip to content

Commit

Permalink
limit datatable nrows
Browse files Browse the repository at this point in the history
  • Loading branch information
vyepez88 committed Feb 4, 2023
1 parent 17e8ccc commit f89a54d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drop/template/Scripts/AberrantSplicing/Overview.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ res <- fread(snakemake@input$result_tables[[1]])

#' Display the results table of the first dataset
#+ echo=FALSE
DT::datatable(res, filter = 'top')
if(nrow(res) > 0){
DT::datatable(head(res, 100), caption = 'FRASER results (up to 100 rows shown)',
options=list(scrollX=TRUE), filter = 'top')

} else print("no significant results")

#' Get a splice site and sample of interest. Outliers are in red.
#+ echo=TRUE
Expand Down

0 comments on commit f89a54d

Please sign in to comment.