getChromSizesFromFasta {GenomicDistributions} | R Documentation

## Get gene models from a remote or local FASTA file

### Description

Get gene models from a remote or local FASTA file

### Usage

    getChromSizesFromFasta(source, destDir = NULL)

### Arguments

`source` | a string that is either a path to a local or remote FASTA
`destDir` | a string that indicates the path to the directory where the downloaded FASTA file should be stored

### Value

a named vector of sequence lengths

### Examples

    CElegansUrl = "http://ftp.ensembl.org/pub/release-103/fasta/caenorhabditis_elegans/dna/Caenorhabditis_elegans.WBcel235.dna.toplevel.fa.gz"
    CElegansChromSizes = getChromSizesFromFasta(CElegansUrl)

[Package GenomicDistributions version 1.2.0 Index]