Skip to contents

CoVariants are stored as a python script, so this code downloads the file, runs it via reticulate, then parses the output.

Usage

covariants(
  filename = "covariants.csv",
  path = c("data/clean/", "data/", "./")[1],
  update = FALSE,
  url =
    "https://raw.githubusercontent.com/hodcroftlab/covariants/master/scripts/clusters.py"
)

Arguments

filename

Save to disk so that the python needn't be run every time. If file exists, it is loaded rather than re-downloaded.

path

Path to which to read or write file.

update

If TRUE, downloads the data no matter what.

url

Useful if the url ever changes.