Skip to content

cgMLST.org webpage scraper. Download and list available schemes from cgMLST.org, and find their versions and last modification date and time.

License

Notifications You must be signed in to change notification settings

bajicv/cgMLSTorg_scheme_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

cgMLST.org webpage scraper

Description

This R script allows

  • listing all of the available cgMLST schemes on cgMLST.org
  • finding the version and/or date and time of the last change on scheme of interest
  • downloading specified schemes from cgMLST.org

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

The script can be used directly from command line.

To see help message

Rscript --vanilla cgMLSTorg_scheme_scraper.R --help

To list all available schemes on cgMLST.org

Rscript --vanilla cgMLSTorg_scheme_scraper.R

To finding the date and time of the last change on scheme of interest

Rscript --vanilla cgMLSTorg_scheme_scraper.R -f last_change -i Abaumannii

To download specific scheme

Rscript --vanilla cgMLSTorg_scheme_scraper.R -f download -i Abaumannii

About

cgMLST.org webpage scraper. Download and list available schemes from cgMLST.org, and find their versions and last modification date and time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages