plot_dpt

plot_dpt(position, heteroplasmy_matrix, cluster, time, gam_fit_result, index)

Arguments

position

Character name of the base to plot.

heteroplasmy_matrix

Third element returned by get_heteroplasmy.

cluster

Vector specifying a partition of the samples.

time

Vector of diffusion pseudo time,with length equal to n_row of heteroplasmy_matrix.

gam_fit_result

Data frame returned by dpt_test.

index

Fifth element returned by get_heteroplasmy.

Value

ggplot object of the heteroplasmy level of a specific base across samples and the GAM fitted curve. The title shows the adjusted p value (FDR) for the position obtained from get_heteroplasmy.

Author

Gabriele Lubatti gabriele.lubatti@helmholtz-muenchen.de