grandom_genome: Generate random genome intervals

View source: R/intervals.R

grandom_genomeR Documentation

Generate random genome intervals

Description

Generate a random genome intervals with a specified number of regions of a specified size.

Usage

grandom_genome(size, n, dist_from_edge = 3000000, chromosomes = NULL)

Arguments

size

The size of the intervals to generate

n

The number of intervals to generate

dist_from_edge

The minimum distance from the edge of the chromosome for a region to start or end(default: 3e6)

chromosomes

The chromosomes to sample from (default: all chromosomes)

Value

A data.frame with columns chrom, start, and end

Examples

## Not run: 
library(misha)
gdb.init_examples()
intervals <- grandom_genome(100, 1000, dist_from_edge = 100)
head(intervals)

## End(Not run)


tanaylab/misha.ext documentation built on Oct. 1, 2024, 10:55 a.m.