read_purple_gene_file: Read PURPLE gene segments

View source: R/compare.R

read_purple_gene_fileR Documentation

Read PURPLE gene segments

Description

Reads the gene.cnv file output by PURPLE

Usage

read_purple_gene_file(x)

Arguments

x

Path to PURPLE gene.cnv (or cnv.gene.tsv) file.

Value

A tibble with the main columns of interest from the PURPLE gene.cnv file i.e. chrom, start, end, gene, min_cn and max_cn.

Examples


x <- system.file("extdata", "cnv/sample_A.purple.gene.cnv", package = "woofr")
y <- system.file("extdata", "cnv/sample_B.purple.cnv.gene.tsv", package = "woofr")
read_purple_gene_file(x)
read_purple_gene_file(y)


pdiakumis/woofr documentation built on Jan. 4, 2024, 11:22 a.m.