Learn R Programming

hidecan (version 1.1.0)

compute_chrom_length: Computes chromosomes' length

Description

Computes the length (in bp) of each chromosome as the maximum position of markers or genes on the chromosome.

Usage

compute_chrom_length(x)

# S3 method for GWAS_data compute_chrom_length(x)

# S3 method for DE_data compute_chrom_length(x)

# S3 method for CAN_data compute_chrom_length(x)

Value

A tibble with two columns: chromosome (chromosome name) and length (chromosome length in base pair).

Arguments

x

Either a GWAS_data, DE_data or CAN_data object.

Examples

Run this code
x <- get_example_data()

compute_chrom_length(GWAS_data(x[["GWAS"]]))
compute_chrom_length(DE_data(x[["DE"]]))
compute_chrom_length(CAN_data(x[["CAN"]]))

Run the code above in your browser using DataLab