View source: R/metadata_extraction.R
metadata_extraction | R Documentation |
This function retrieves metadata (ID, region, date) from the input FASTA file, with the source of, either NCBI (with default FASTA header) or GISAID (with default FASTA header). The function will return a dataframe that has three columns consisting ID, collected region and collected date. Records that do not have region or date information will be excluded from the output dataframe.
metadata_extraction(file_path, source)
file_path |
path of fasta file |
source |
the source of fasta file, either "NCBI" or "GISAID" |
A dataframe that has three columns consisting ID, collected region and collected date
filepath <- system.file('extdata','GISAID_EpiCoV.faa', package = 'vDiveR')
meta_gisaid <- metadata_extraction(filepath, 'GISAID')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.