A function to plot the insertion fragment size.

plotFragments(frag_path, sample, plot_type = "ridges")

Arguments

frag_path

Provide a directory of frags from the snakemake flow.

sample

Input a vector containing the names of the samples.

plot_type

Option to draw ridges / density plot. Default: "ridges".

Examples

 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'