Nothing
test_that("furanose helpers cover every concrete monosaccharide", {
map <- furanose_monosaccharide_map()
concrete <- glyrepr::available_monosaccharides("concrete")
expect_setequal(c(names(map), unname(map)), concrete)
expect_identical(as_furanose_monosaccharide(names(map)), unname(map))
expect_identical(as_ringless_monosaccharide(unname(map)), names(map))
})
test_that("unusual configuration helpers cover every supported pair", {
map <- unusual_configuration_monosaccharide_map()
concrete <- glyrepr::available_monosaccharides("concrete")
unusual <- concrete[stringr::str_detect(concrete, "^[DL]-")]
expected <- unusual[stringr::str_sub(unusual, 3) %in% concrete]
expected <- rlang::set_names(expected, stringr::str_sub(expected, 3))
expect_identical(map, expected)
expect_identical(
apply_monosaccharide_configuration(
names(map),
stringr::str_sub(unname(map), 1, 1)
),
unname(map)
)
})
test_that("IUPAC-condensed parses every unusual configuration", {
unusual <- unname(unusual_configuration_monosaccharide_map())
anomer_pos <- glyrepr::get_anomer_pos(unusual)
input <- paste0(unusual, "(?", anomer_pos, "-")
parsed <- parse_iupac_condensed(input)
expect_identical(as.character(parsed), input)
})
test_that("IUPAC-condensed rejects legacy unhyphenated configurations", {
expect_error(
parse_iupac_condensed(c("DFuc(?1-", "LGul(?1-", "DApif(?1-")),
"Can't parse"
)
})
test_that("IUPAC-condensed parses every furanose monosaccharide", {
furanose <- unname(furanose_monosaccharide_map())
anomer_pos <- glyrepr::get_anomer_pos(furanose)
input <- paste0(furanose, "(?", anomer_pos, "-")
parsed <- parse_iupac_condensed(input)
expect_identical(as.character(parsed), input)
})
test_that("furanose aliases replace only pyranose ring markers", {
glycam_map <- glycam_iupac_mono_map()
linucs_map <- linucs_mono_stem_map()
expect_identical(unname(glycam_map[["DApif"]]), "D-Apif")
expect_identical(unname(glycam_map[["LApif"]]), "Apif")
expect_identical(unname(linucs_map[["D-Apif"]]), "D-Apif")
expect_identical(unname(linucs_map[["L-Apif"]]), "Apif")
expect_false("DAfif" %in% names(glycam_map))
expect_false("D-Afif" %in% names(linucs_map))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.