plotRegion | R Documentation |
Plotting of somatic variants in a specified region
plotRegion(
outfilename,
sample_name,
chr,
rstart,
rend,
plotSNVandIndels = TRUE,
SNV_vcf_file = NULL,
SNV_tab_file = NULL,
snvs_table = NULL,
Indels_vcf_file = NULL,
Indels_tab_file = NULL,
indels_table = NULL,
CNV_tab_file = NULL,
CNV_table = NULL,
SV_bedpe_file = NULL,
sv_table = NULL,
plot_title = NULL,
spreadSVlabels = TRUE,
genome.v = "hg19",
debug = FALSE
)
outfilename |
file where the figure should be plotted. This also determines the file type of the output, use either pdf (recommended) or png |
sample_name |
name of sample |
chr |
chromosome of the region to plot |
rstart |
start position of the region to plot |
rend |
end position of the region to plot |
plotSNVandIndels |
if TRUE then plot SNV and Indels at the bottom of the plot |
SNV_vcf_file |
name of the vcf file containing the SNVs |
SNV_tab_file |
name of the tab separated file containing the SNVs. Column names should be: chr, position, REF and ALT. If SNV_vcf_file is also specified, these variants will be ignored and the variants in the vcf file will be used instead. |
Indels_vcf_file |
name of the vcf file containing the Indels |
Indels_tab_file |
name of the tab separated file containing the Indels. Column names should be: chr, position, REF and ALT. If Indels_vcf_file is also specified, these variants will be ignored and the variants in the vcf file will be used instead. |
CNV_tab_file |
name of the tab separated file containing the CNVs. Column names should be: 'seg_no', 'Chromosome', 'chromStart', 'chromEnd', 'total.copy.number.inNormal', 'minor.copy.number.inNormal', 'total.copy.number.inTumour', 'minor.copy.number.inTumour' |
SV_bedpe_file |
name of the tab separated bedpe file containing the SVs. The file should contain a rearrangement for each row (two breakpoint positions should be on one row as determined by a pair of mates of paired-end sequencing) and should already be filtered according to the user preference, as all rearrangements in the file will be used and no filter will be applied. The files should contain a header in the first line with the following columns: "chrom1", "start1", "end1", "chrom2", "start2", "end2" and "sample" (sample name). In addition, either two columns indicating the strands of the mates, "strand1" (+ or -) and "strand2" (+ or -), or one column indicating the structural variant class, "svclass": translocation, inversion, deletion, tandem-duplication. The column "svclass" should correspond to (Sanger BRASS convention): inversion (strands +/- or -/+ and mates on the same chromosome), deletion (strands +/+ and mates on the same chromosome), tandem-duplication (strands -/- and mates on the same chromosome), translocation (mates are on different chromosomes). In addition, columns 'non-template' and 'micro-homology' can be specified, including the non-templated insertion or micro-homology deletion sequence, which will be used to build an SV junctions catalogue. |
plot_title |
title of the plot. If NULL, then the sample_name will be used as title. Use "", the empty string, to have no title. |
spreadSVlabels |
when one of the two structural variant breakpoints is not in the region, it's location is written as text above the location of the breakpoint that is in the region. If spreadSVlabels is TRUE, all these text labels will be spread out evenly, which is useful if a lot of labels are close to each other and overlapping. |
genome.v |
genome version to use, either hg19 or hg38 |
debug |
if TRUE, show debug guidelines and grid when plotting (default is FALSE) |
all computed results, like catalogues and clustering regions, will be returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.