change_spot: Add a deletion or an insertion in a given segment

View source: R/simulations.R

change_spotR Documentation

Add a deletion or an insertion in a given segment

Description

Add a deletion or an insertion in a given segment

Usage

change_spot(parent_ploidy, mutation_spots, changes)

Arguments

parent_ploidy

vector of integers, CNV value in the parent clone

mutation_spots

vector of integers, index of the segmnts to be changed in the parent

changes

list of integers, indicating for each ploidy status the allowed changes (e.g., list('1' = c(1,2)) since we cannot go to 0 copies)

Value

the vector with the new subclonal ploidy


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