R/_generate_package_data.R

Defines functions generate_package_data

generate_package_data = function() {
  glycogenome_ordering = read.delim('data/glycogenome_ordering.tsv',header=T)
  pathway_ordering = read.delim('data/pathway_ordering.tsv',header=T)
  glycogenome_ordering$Group.Name = factor(glycogenome_ordering$Group.Name, pathway_ordering$Group.Name)
  glycogenome_ordering = glycogenome_ordering[order(glycogenome_ordering$Group.Name),]
  pathway_colours = read.delim('data/pathway_colours.tsv',header=T,comment.char='',na.strings=c(''))
  usethis::use_data(glycogenome_ordering,overwrite=T)
  usethis::use_data(pathway_colours,overwrite=T)
}
CopenhagenCenterForGlycomics/RGlycopacity documentation built on Oct. 31, 2024, 3:53 a.m.