plot_allele_frequency

plot_allele_frequency(
  position,
  heteroplasmy_matrix,
  allele_matrix,
  cluster,
  names_allele_qc,
  names_position_qc,
  size_text,
  index
)

Arguments

position

Character name of the base to plot.

heteroplasmy_matrix

Third element returned by get_heteroplasmy.

allele_matrix

Fourth element returned by get_heteroplasmy.

cluster

Vector specifying a partition of the samples.

names_allele_qc

Character vector with length equal to n_col of allele_matrix. Each element specifies the name of the base and the allele.

names_position_qc

Character vector with length equal to n_col of allele_matrix. Each element specifies the name of the base.

size_text

Character specifying the size of the text for gridExtra function grid.arrange)

index

Fifth element returned by get_heteroplasmy.

Value

grid.arrange plot of allele frequencies of a specific base across samples divided according to cluster.

Author

Gabriele Lubatti gabriele.lubatti@helmholtz-muenchen.de