add_rsids_to_funseq: Add rs ID to INFO annotation

Description Usage Arguments Value Examples

View source: R/parse-vcf-annotation.R

Description

the vcf file with variant annotation sometimes does not include the rs IDs and returns another id when I extract the info this new id has the format: chrn:start_RF/ALT for some variants

Usage

1
add_rsids_to_funseq(vcf_genotypes, info_data, chrn)

Arguments

vcf_genotypes

CollapsedVCF, genotypes vcf

info_data

this can be the output of get_CSQ or get_FUNSEQ

chrn

int or chr, chromosome name

Value

A data frame

varid

Variant ID

range_id

Id for variant in range chrn:start_RF/ALT

...

Examples

1
2
info_funseq <- get_FUNSEQ(test_anno_vcf)
add_rsids_to_funseq(test_vcf, info_funseq, 22)

santiago1234/phdpopgene documentation built on Dec. 31, 2020, 5:06 a.m.