factor_chrom: Sanitize chromosome names

Description Usage Arguments Details Value

View source: R/chromosomes.R

Description

Convert a vector of chromosome names in some sensible format to "nice" names in karyotype order.

Usage

1
2
3
factor_chrom(x, clean_names = TRUE, genome = "pf3d7", ...)

is_chrom(x, ...)

Arguments

x

a vector containing chromosome identifiers

clean_names

logical; if TRUE, scrub names like 'Pf3D7_01_v3','Pf3D7_02_v3' to '1','2'

genome

identifier for a genome whose chromosome complement determines the levels of this factor

...

ignored

Details

A vector blessed as a chromosome by factor_chrom() can be confirmed with is_chrom().

Value

a factor whose levels are the chromosomes in the desired genome, in karyotype order


andrewparkermorgan/rplasmodium documentation built on May 25, 2019, 6:26 p.m.