read.genome: Read the genome of a given organism

View source: R/io.R

read.genomeR Documentation

Read the genome of a given organism

Description

This function reads an organism specific genome stored in a defined file format.

Usage

read.genome(file, format, ...)

Arguments

file

a character string specifying the path to the file storing the genome.

format

a character string specifying the file format used to store the genome, e.g. "fasta", "fastq".

...

additional arguments that are used by the readDNAStringSet function.

Details

The read.genome function takes a string specifying the path to the genome file of interest as first argument.

It is possible to read in different genome file standards such as fasta or fastq. Genomes stored in fasta files can be downloaded from http://ensemblgenomes.org/info/genomes.

Value

A data.table storing the gene id in the first column and the corresponding sequence as string in the second column.

Author(s)

Hajk-Georg Drost and Sarah Scharfenberg

Examples

## Not run: 
# reading a genome stored in a fasta file
Ath.genome <- read.genome(system.file('seqs/ortho_thal_cds.fasta', package = 'orthologr'),
                           format = "fasta")

## End(Not run)


HajkD/orthologr documentation built on Oct. 13, 2023, 12:11 a.m.