This function synthesizes a single-cell genome by introducing single nucleotide variants (SNVs) into a backbone genome. It retrieves cell-specific mutations, filters mutations that occurred after the founder cell, and introduces the mutations into the genome.

synth_sc_genome(
  cell_index,
  backbone_genome,
  sc_mut_list,
  mut_table_with_nt,
  founder_cell_index
)

Arguments

cell_index

Integer specifying the index of the cell for which to synthesize a genome

backbone_genome

List containing the reference genome sequences of the cell's clone

sc_mut_list

List where each element corresponds to a cell's mutations, with cell indices as names

mut_table_with_nt

Data frame containing mutation details with nucleotide changes

founder_cell_index

Integer specifying the founder cell index of the clone

Value

A list containing two elements:

  • sc_genome: The synthesized single cell genome with mutations incorporated

  • cell_mut_with_nt: Data frame containing the cell-specific mutations with nucleotide details