R/DsASC-analysis.R
ascFilterCommonVariants.RdWhen genotypes are called from the ATAC-seq reads, a homozygous reference site that is called heterozygous carries almost no alternative reads and looks like a strong allelic effect. Such errors are frequent at rare and unknown variants, so the analysis can be restricted to variants that are common in a reference population, for example the 1000 Genomes Project.
ascFilterCommonVariants(
snpIds,
mafDb,
minMaf = 0.01,
pop = NULL,
verbose = TRUE
)character vector of "chr:pos_REF_ALT" ids (rownames of the count matrices).
a MafDb object of the GenomicScores package, for
example MafDb.1Kgenomes.phase3.GRCh38.
SNPs with an allele frequency above this value are kept
(default 0.01). SNPs without an entry in mafDb are removed.
name of the population in mafDb. By default the frequency
over all populations ("AF" or "AF_ALL").
log how many sites were removed (default TRUE).
the subset of snpIds with an allele frequency above minMaf.