read_genome: Import Genome Assembly as Biostrings or data.table object

View source: R/read_genome.R

read_genomeR Documentation

Import Genome Assembly as Biostrings or data.table object

Description

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

Usage

read_genome(file, format = "fasta", obj.type = "Biostrings", ...)

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. format = "fasta" (default) or format = "gbk".

obj.type

a character string specifying the object stype in which the genomic sequence shall be represented. Either as obj.type = "Biostrings" (default) or as obj.type = "data.table".

...

additional arguments that are used by the read.fasta function.

Details

This function takes a string specifying the path to the genome file of interest as first argument (e.g. the path returned by getGenome).

Value

Either a Biostrings or data.table object.

Author(s)

Hajk-Georg Drost

See Also

Other genome: getGenomeSet(), getGenome()

Other readers: read_cds(), read_gff(), read_proteome(), read_rna()


biomartr documentation built on Oct. 25, 2023, 1:08 a.m.