Skip to content

Enterobase scheme scraper. Download and list available schemes from Enterobase, and find their last modification date and time.

License

Notifications You must be signed in to change notification settings

bajicv/enterobase_scheme_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Enterobase webpage scraper

Description:

This R script allows

  • listing all of the available schemes on Enterobase
  • listing all of the available organisms on Enterobase
  • finding the date and time of the last change on scheme of interest
  • downloading schemes from Enterobase

Requirements

In case you would like to use this script you can easily install all the required packages by running the code below in your R session:

# Listing required packages
required_packages <- c("tidyverse", "rvest", "knitr", "optparse")

# Check if required packages are installed
missing_packages <- setdiff(required_packages, installed.packages()[,"Package"])

# Install missing packages
if (length(missing_packages) > 0) {
  message("Installing missing packages: ", paste(missing_packages, collapse = ", "))
  install.packages(missing_packages)
}

Usage:

To see help

Rscript --vanilla enterobase_scheme_scraper.R --help

To list available organisms on Enterobase

Rscript --vanilla enterobase_scheme_scraper.R -f list_organisms

To list available schemes for given organism

Rscript --vanilla enterobase_scheme_scraper.R -f list_organism_schemes -o Salmonella

To download scheme

Rscript --vanilla enterobase_scheme_scraper.R -f download_scheme -o Salmonella -s Achtman7GeneMLST

About

Enterobase scheme scraper. Download and list available schemes from Enterobase, and find their last modification date and time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages