format_output: Format the variants data.frame

View source: R/utils.R

format_outputR Documentation

Format the variants data.frame

Description

Used to have consistent output for the variants from OMIM, FANTOM5, GTEx and GWAS.

Usage

format_output(chr, pos, rsid, ensembl_gene_id, hgnc_symbol)

Arguments

chr

list of variant chromosome

pos

list of variant positions

rsid

list of variant rsid

ensembl_gene_id

gene id associated to the variants

hgnc_symbol

hgnc_symbol associated to the variants

Value

a data.frame of variants with the following columns

  • chr (chromosome)

  • pos (position of the variant)

  • rsid (variant ID)

  • ensembl_gene_id ("gene id" of the gene associated with the variants)

  • hgnc_symbol ("hgnc symbol" of the gene associated with the variants)


MCorentin/vargen documentation built on Feb. 6, 2024, 2:32 p.m.