Skip to content

Commit

Permalink
Merge pull request #147 from mirpedrol/empty-reads-summary
Browse files Browse the repository at this point in the history
write empty reads-summary.csv file
  • Loading branch information
mirpedrol committed Jun 3, 2024
2 parents 76e9e10 + 207d489 commit cba895b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/cigar_parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,9 @@ if (dim(alignment_info)[1] != 0){
htmlwidgets::saveWidget(plotly::as_widget(fig), paste0(results_path,"_edition.html"))

}else{
reads_classes <- c("Raw reads", "Merged reads", "Quality filtered reads", "Clustered reads", "Aligned reads")
reads_summary <- data.frame(classes = unlist(reads_classes), counts = unlist(reads_counts))
write.csv(reads_summary,file=paste0(results_path, "_reads-summary.csv"))
fig<-empty_plot("No alignments were produced.
Please check your files and references")
htmlwidgets::saveWidget(plotly::as_widget(fig), paste0(results_path,"_edition.html"))
Expand Down

0 comments on commit cba895b

Please sign in to comment.