VariantFilteringParam-class | R Documentation |
The class VariantFilteringParam
is defined to ease configuring the call
to the functions that filter input genetic variants according to a desired
segregating inheritance model (xLinked()
, autosomalRecessiveHomozygous()
, etc).
VariantFilteringParam(vcfFilename, pedFilename=NA_character_,
bsgenome="BSgenome.Hsapiens.1000genomes.hs37d5",
orgdb="org.Hs.eg.db",
txdb="TxDb.Hsapiens.UCSC.hg19.knownGene",
snpdb="SNPlocs.Hsapiens.dbSNP144.GRCh37",
weightMatricesFilenames=NA,
weightMatricesLocations=rep(list(variantLocations()), length(weightMatricesFilenames)),
weightMatricesStrictLocations=rep(list(FALSE), length(weightMatricesFilenames)),
radicalAAchangeFilename=file.path(system.file("extdata",
package="VariantFiltering"),
"AA_chemical_properties_HanadaGojoboriLi2006.tsv"),
codonusageFilename=file.path(system.file("extdata",
package="VariantFiltering"),
"humanCodonUsage.txt"),
geneticCode=getGeneticCode("SGC0"),
allTranscripts=FALSE,
regionAnnotations=list(CodingVariants(), IntronVariants(),
FiveSpliceSiteVariants(), ThreeSpliceSiteVariants(),
PromoterVariants(), FiveUTRVariants(), ThreeUTRVariants()),
intergenic=FALSE,
otherAnnotations=c("MafDb.1Kgenomes.phase1.hs37d5",
"PolyPhen.Hsapiens.dbSNP131",
"SIFT.Hsapiens.dbSNP137",
"phastCons100way.UCSC.hg19",
"humanGenesPhylostrata"),
geneKeytype=NA_character_,
yieldSize=NA_integer_)
## S4 method for signature 'VariantFilteringParam'
show(object)
## S4 method for signature 'VariantFilteringParam'
x$name
## S4 method for signature 'VariantFilteringParam'
names(x)
vcfFilename |
Character string of the input VCF file name. |
pedFilename |
Character string of the pedigree file name in PED format. |
bsgenome |
Character string of a genome annotation package ( |
orgdb |
Character string of a gene-centric annotation package ( |
txdb |
Character string of a transcript-centric annotation package ( |
snpdb |
Character string of a SNP-centric annotation package ( |
weightMatricesFilenames |
Character string of filenames of position weight matrices for binding site recognition.
The default |
weightMatricesLocations |
Keywords of the annotated locations to variants under which a weight matrix will be used for scoring binding sites. This argument
is only used when |
weightMatricesStrictLocations |
Logical vector flagging whether a weight matrix should be scoring binding sites strictly within the boundaries of the given locations.
This argument is only used when |
radicalAAchangeFilename |
Name of a tab-separated text file containing chemical properties of amino acids. These properties are interpreted such that amino acid changes within a property are considered "conservative" and between properties are considered "radical". See the default file ( |
codonusageFilename |
Name of a text file containing the codon usage. |
geneticCode |
Name character vector of length 64 describing the genetic code. The default value is |
allTranscripts |
Logical. This option allows the user to choose between working with all the transcripts affected by the variant ( |
regionAnnotations |
List of |
intergenic |
Logical. When |
otherAnnotations |
Character vector of names of annotation packages or annotation objects. |
geneKeytype |
Character vector of the type of key gene identifier provided by the transcript-centric (TxDb) annotation package to interrogate the organism-centric (OrgDb) annotation package. The default value ( |
yieldSize |
Number of variants to yield each time the input VCF file is read. This argument is passed to the |
object |
A VariantFilteringParam object created through |
x |
A VariantFilteringParam object created through |
name |
Slot name of a VariantFilteringParam object. Use |
The class VariantFilteringParam
serves as a purpose of simplifying the call to the inheritance model function and its subsequent annotation and filtering steps. It also groups all the parameters that the user can customize (i.e newer versions of the annotation packages, when available).
The method VariantFilteringParam()
creates an VariantFilteringParam
object used as an input argument to other functions such as autosomalRecessiveHomozygous()
, etc.
The method names()
allows one to see the names of the slots from a VariantFilteringParam
object. Using the $
operator, one can retrieve the values of these slots in an analogous way to a list
.
An VariantFilteringParam
object is returned by the method VariantFilteringParam
.
D.M. Elurbe, P. Puigdevall and R. Castelo
vfpar <- VariantFilteringParam(system.file("extdata", "CEUtrio.vcf.bgz", package="VariantFiltering"),
system.file("extdata", "CEUtrio.ped", package="VariantFiltering"),
snpdb=character(0), otherAnnotations=character(0))
vfpar
names(vfpar)
vfpar$vcfFiles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.