Skip to contents

Check chromosome limits

Usage

.check_chrom_limits(chrom_limits, chrom_length, chroms)

Arguments

chrom_limits

Integer vector of length 2, or named list where the elements are integer vectors of length 2. If vector, gives the lower and upper limit of the chromosomes (in bp) to use in the plot. If a named list, names should correspond to chromosome names. Gives for each chromosome the lower and upper limits (in bp) to use in the plot. Doesn't have to be specified for all chromosomes. Default value is NULL, i.e. no limits are applied to the chromosomes (they will be plotted in their entirety).

chrom_length

Tibble of chromosome length.

chroms

Character vector, name of chromosomes to include in the plot.

Value

Tibble of chromosome limits to use in the plot.