When 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
)

Arguments

snpIds

character vector of "chr:pos_REF_ALT" ids (rownames of the count matrices).

mafDb

a MafDb object of the GenomicScores package, for example MafDb.1Kgenomes.phase3.GRCh38.

minMaf

SNPs with an allele frequency above this value are kept (default 0.01). SNPs without an entry in mafDb are removed.

pop

name of the population in mafDb. By default the frequency over all populations ("AF" or "AF_ALL").

verbose

log how many sites were removed (default TRUE).

Value

the subset of snpIds with an allele frequency above minMaf.

Author

Irem B. GUNDUZ