It would be ideal if you could feed in any set of column names to generate the figures.
library(miplicorn)
genome <- tibble::tribble(
~V1, ~V2, ~V3,
"PvP01_01_v1", 1L, 1021664L,
"PvP01_02_v1", 1L, 956327L,
"PvP01_03_v1", 1L, 896704L,
"PvP01_04_v1", 1L, 1012024L,
"PvP01_05_v1", 1L, 1524814L,
"PvP01_06_v1", 1L, 1042791L,
"PvP01_07_v1", 1L, 1652210L,
"PvP01_08_v1", 1L, 1761288L,
"PvP01_09_v1", 1L, 2237066L,
"PvP01_10_v1", 1L, 1548844L,
"PvP01_11_v1", 1L, 2131221L,
"PvP01_12_v1", 1L, 3182763L,
"PvP01_13_v1", 1L, 2093556L,
"PvP01_14_v1", 1L, 3153402L,
"PvP01_API_v1", 1L, 29582L,
"PvP01_MIT_v1", 1L, 5989L
)
probes <- tibble::tribble(
~CHROM, ~START, ~END, ~PROBE_SET,
"PvP01_04_v1", 1011487L, 1011488L, "SNP",
"PvP01_09_v1", 1221489L, 1221490L, "SNP",
"PvP01_04_v1", 1011292L, 1011293L, "SNP",
"PvP01_09_v1", 1233254L, 1233255L, "SNP",
"PvP01_04_v1", 1011456L, 1011457L, "SNP",
"PvP01_12_v1", 2384609L, 2384610L, "SNP",
"PvP01_09_v1", 1234166L, 1234167L, "SNP",
"PvP01_12_v1", 2384596L, 2384597L, "SNP",
"PvP01_09_v1", 1876033L, 1876034L, "SNP",
"PvP01_14_v1", 455911L, 455912L, "SNP"
)
chromosome_map(genome, probes, "karyoploteR")
#> Error: Problem with `filter()` input `..1`.
#> ℹ Input `..1` is `.data$probe_set == "SNP"`.
#> x Column `probe_set` not found in `.data`
chromosome_map(
genome,
dplyr::rename(probes, probe_set = PROBE_SET),
"karyoploteR"
)