annotateX {XCIR} | R Documentation |
Map positions of SNPs to genes extracted from biomaRt
annotateX(xciObj, read_count_cutoff = 20, het_cutoff = 3, release = "hg19", verbose = FALSE)
xciObj |
A |
read_count_cutoff |
A |
het_cutoff |
A |
release |
A |
verbose |
A |
A data.table
. The input table annotated with gene symbols
and filtered for read counts.
# Example workflow for documentation vcff <- system.file("extdata/AD_example.vcf", package = "XCIR") # Reading functions vcf <- readRNASNPs(vcff) vcf <- readVCF4(vcff) # Annotation functions # Using seqminer (requires additional annotation files) anno <- addAnno(vcf) # Using biomaRt anno <- annotateX(vcf) # Do not remove SNPs with 0 count on minor allele anno0 <- annotateX(vcf, het_cutoff = 0) # Summarise read counts per gene # Assuming data is phased, reads can be summed across genes. genic <- getGenicDP(anno, highest_expr = FALSE) # Unphased data, select SNP with highest overall expression. genic <- getGenicDP(anno, highest_expr = TRUE)