split_by_chromosome: Split a dataset by chromosome.

View source: R/subsample.R

split_by_chromosomeR Documentation

Split a dataset by chromosome.

Description

Split a CNAqc object by chromosome, returning a named list with data splits by chromosomes. In this way it is easy to run QC steps per chromosome.

Usage

split_by_chromosome(x, chromosomes = paste0("chr", c(1:22, "X", "Y")))

Arguments

x

An object created by CNAqc.

chromosomes

A list of chromosomes to retain.

Value

A named list of CNAqc objects.

Examples


data("example_PCAWG", package = 'CNAqc')

# Split of tje PCAWG object, for instance
split_by_chromosome(example_PCAWG)

caravagnalab/CNAqc documentation built on Oct. 31, 2024, 3:54 a.m.