divide_genome_in_segments: A simple function to divide the genome in segments

View source: R/simulations.R

divide_genome_in_segmentsR Documentation

A simple function to divide the genome in segments

Description

The functions first finds the maximum number of segments of a given length for each chromosome in the human genome (hg38 assembly, onlys chrs 1:22, X and Y) then it sample the number of actual splits in a range (0,MAX). In the end it adds some stochasticity to the segment ends and starts.

Usage

divide_genome_in_segments(approx_length = 1e+08)

Arguments

approx_length

Approximate segment legnth. Integer

Value

A data frame with genomic segments (with 3 cols chr, from, to)


Militeee/rcongas documentation built on Nov. 1, 2024, 2:38 a.m.