tss_tts.maf: calculate minor allele frequencies of polymorphisms in...

View source: R/tss_tts.maf.R

tss_tts.mafR Documentation

calculate minor allele frequencies of polymorphisms in relation to gene bodies

Description

calculate minor allele frequencies of polymorphisms in relation to gene bodies

Usage

tss_tts.maf(
  gff,
  vcf,
  type = "both",
  chrs = "all",
  num = "all",
  feature = "gene"
)

Arguments

gff

directory and file name of reference gff OR data.table object of gff data

vcf

directory and file name vcf data OR data.table object of variant data (data.table with CHROM, POS, MAF)

type

"snp", "indel", or "both", default is "both"

chrs

selection specific chromosomes, default is "all"

num

set number of genes, default is "all

feature

name of the feature in the gff data that you want to look at, default is "gene"

Value

a vector of the relative position of polymorphsims in relation to feature


greymonroe/polymorphology documentation built on Aug. 6, 2023, 1:33 a.m.