tss_tts.variants: extract relative position of polymorphisms in relation to...

View source: R/tss_tts.variants.R

tss_tts.variantsR Documentation

extract relative position of polymorphisms in relation to gene bodies

Description

extract relative position of polymorphisms in relation to gene bodies

Usage

tss_tts.variants(
  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 with c("chr","source","type","start","stop","V1","direction","V2","info") columns

vcf

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

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.