A function to plot the insertion fragment size.
plotFragments(frag_path, sample, plot_type = "ridges")
Provide a directory of frags from the snakemake flow.
Input a vector containing the names of the samples.
Option to draw ridges / density plot. Default: "ridges".
plotFragments("~/snakemake/fragments_size",sample=c("s1","s2"),plot_type="ridges")
#> Error in data.table::fread(sprintf("%s/%s_q30_frag_size.txt", frag_path, x)): File '~/snakemake/fragments_size/s1_q30_frag_size.txt' does not exist or is non-readable. getwd()=='F:/cisDynet/cisDynet/docs/reference'