Learn R Programming

biomartr (version 0.0.1)

is.genome.available: Check Genome Availability

Description

This function checks the availability of a given genome on the NBCI servers specified as scientific name.

Usage

is.genome.available(organism, details = FALSE, database = "refseq")

Arguments

organism
a character string specifying the scientific name of the organism of interest, e.g. 'Arabidopsis thaliana'.
details
a logical value specifying whether or not details on genome size, kingdom, etc. shall be printed to the console intead of a boolean value.
database
a character string specifying the database for which genome availability shall be checked, e.g. database = "refseq" or database = "all".

Value

  • a logical value specifing whether or not the genome of the input organism is available. In case details = TRUE only a character string specifying the genome details is being returned.

Details

Internally this function calls the listGenomes function to detect all available genomes and checks whether or not the specified organism is available for download.

References

ftp://ftp.ncbi.nlm.nih.gov/genomes/GENOME_REPORTS/overview.txt

Examples

Run this code
# checking whether the Arabidopsis thaliana genome is stored on NCBI
is.genome.available(organism = "Arabidopsis thaliana")

# and printing details
is.genome.available(organism = "Arabidopsis thaliana", details = TRUE)

Run the code above in your browser using DataLab