sortvcf: Sort a data frame of variants by chromosome and position

Description Usage Arguments

Description

Sort a data frame by chromosome and position. (Note, this function could be faster using data.table. But this implementation avoids dependencies)

Usage

1
sortvcf(vcf, chrorder = NULL)

Arguments

vcf

data frame with variants; should contain columns (chr, position)

chrorder

vector of chromosome names; order of this vector will determine sort order


tkonopka/RGeneticThesaurus documentation built on May 31, 2019, 3:44 p.m.