Skip to content

Commit

Permalink
Merge pull request #149 from mirpedrol/fix-plotter
Browse files Browse the repository at this point in the history
fix prlotter, pattern doesn't exist
  • Loading branch information
mirpedrol committed Jun 5, 2024
2 parents cf0cff8 + d38935f commit 647b743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plotter.R
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ if (dim(data)[2]>3 && length(checkFaulty) == 0 && length(checkEmpty) == 0){ ###
templata_based <- data$t_reads[1] ### 0
total_char <- wt + templata_based + dim(data)[1]

delCols_indels <- data %>% group_by(Modification, Start, Length, ins_nt, patterns) %>% dplyr::summarize(freq = n())
delCols_indels <- data %>% group_by(Modification, Start, Length, ins_nt) %>% dplyr::summarize(freq = n())
unique_variants <- rbind(as.data.frame(delCols_indels), c("wt", 0, 0, NA, NA, wt), c("template-based", 0, 0, NA, NA, templata_based))
uniq_indels_sorted <- unique_variants[order(as.numeric(unique_variants$freq), decreasing = TRUE),]
write.csv(uniq_indels_sorted,file=paste0(sample_name, "_unique-variants.csv"))
Expand Down

0 comments on commit 647b743

Please sign in to comment.