View source: R/shiny_related_functions.R
ReadAndSplitVCFs | R Documentation |
Read and split VCF files
ReadAndSplitVCFs(
files,
variant.caller = "unknown",
num.of.cores = 1,
names.of.VCFs = NULL,
tumor.col.names = NA,
filter.status = DefaultFilterStatus(variant.caller),
get.vaf.function = NULL,
...,
max.vaf.diff = 0.02,
suppress.discarded.variants.warnings = TRUE,
always.merge.SBS = FALSE,
chr.names.to.process = NULL
)
files |
Character vector of file paths to the VCF files. |
variant.caller |
Name of the variant caller that produces the VCF, can
be either |
num.of.cores |
The number of cores to use. Not available on Windows
unless |
names.of.VCFs |
Optional. Character vector of names of the VCF files.
The order of names in |
tumor.col.names |
Optional. Only applicable to Mutect VCFs.
Vector of column names or column indices in Mutect VCFs which
contain the tumor sample information. The order of elements in
|
filter.status |
The character string in column |
get.vaf.function |
Optional. Only applicable when |
... |
Optional arguments to |
max.vaf.diff |
Not applicable if |
suppress.discarded.variants.warnings |
Logical. Whether to suppress warning messages showing information about the discarded variants. Default is TRUE. |
always.merge.SBS |
If |
chr.names.to.process |
A character vector specifying the chromosome names in VCF whose variants will be kept and processed, other chromosome variants will be discarded. If NULL(default), all variants will be kept except those on chromosomes with names that contain strings "GL", "KI", "random", "Hs", "M", "JH", "fix", "alt". |
A list containing the following objects:
SBS
: List of VCFs with only single base substitutions.
DBS
: List of VCFs with only doublet base substitutions.
ID
: List of VCFs with only small insertions and deletions.
discarded.variants
: Non-NULL only if there are variants
that were excluded from the analysis. See the added extra column
discarded.reason
for more details.
VCFsToCatalogs
file <- c(system.file("extdata/Mutect-vcf",
"Mutect.GRCh37.s1.vcf",
package = "ICAMS"))
list.of.vcfs <- ReadAndSplitVCFs(file, variant.caller = "mutect")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.