read_genomesize: Read Genome-Size Files

Description Usage Arguments Details Value Validation Examples

View source: R/read_genomesize.R

Description

Read Genome-Size Files

Usage

1

Arguments

file

Pathname to a ‘*.genomesize’ file.

...

Additional arguments passed to readr::read_tsv().

Details

This file originates from https://github.com/VRam142/combinatorialHiC.

Value

A data.frame with four columns:

chr

Chromosome label

length

Number of nucleotides in chromosome

Validation

The read_genomsize() function does some basic validation on the values read.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
path <- system.file("extdata", package = "GSE84920.parser")
file <- file.path(path, "combo_hg19_mm10.genomesize")
data <- read_genomesize(file)
print(data)
# # A tibble: 43 x 2
#    chr            length
#    <chr>           <int>
#  1 human_chr1  249250621
#  2 human_chr2  243199373
#  3 human_chr3  198022430
#  4 human_chr4  191154276
#  5 human_chr5  180915260
#  6 human_chr6  171115067
#  7 human_chr7  159138663
#  8 human_chr8  146364022
#  9 human_chr9  141213431
# 10 human_chr10 135534747
# # … with 33 more rows

HenrikBengtsson/ramani documentation built on March 27, 2021, 11:47 p.m.