shinyPlot_SNPratio: Shiny: Plot SNP-ratio

Description Usage Arguments Details

View source: R/shinyPlot_SNPratio.R

Description

Please note that this function is not to be run manually. Creates plots specific to the R-shiny application, showing SNP-ratio values against the position of a specific chromosome.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
shinyPlot_SNPratio(
  vcf.df.SNPratio.filt,
  chrList,
  chrID,
  chr,
  min.SNPratio,
  degree = 2,
  span = 0.07,
  ranges
)

Arguments

vcf.df.SNPratio.filt

filtered data frame (containing both bulks)

chrList

list of chromosome IDs

chrID

chromosome ID of interest

chr

chromosome number to print on plot

min.SNPratio

min SNP ratio threshold

degree

LOESS smoothing degree (default=2)

span

LOESS smoothing span (default=0.07)

ranges

axes ranges (x,y)

Details

This function is a variant of the plot_SNPratio() function created to meet the needs of the R-shiny application. The difference with the original is that it includes a "ranges" argument that allows setting the limits of the x and y-axis, to show a zoomed area of the SNP-ratio plot when selected. If no area is selected, the x and y axis limits will be set to null, showing the entire plot.

This function does not include any arguments related to plot saving since this functionality is linked to a saving button found inside the BSAvis R-Shiny application.


EG-lisy/BSAvis documentation built on Dec. 17, 2021, 5:38 p.m.