R/buildReferenceData.R
getChromSizesFromFasta.Rd
Get gene models from a remote or local FASTA file
getChromSizesFromFasta(source, destDir = NULL)
a string that is either a path to a local or remote FASTA
a string that indicates the path to the directory where the downloaded FASTA file should be stored
a named vector of sequence lengths
CElegansFasteCropped = system.file("extdata",
"C_elegans_cropped_example.fa.gz",
package="GenomicDistributions")
CElegansChromSizes = getChromSizesFromFasta(CElegansFasteCropped)
#> Got local file: /private/var/folders/jt/kcfp49s5061b941g5013p8340000gn/T/Rtmpmaedq5/temp_libpath16ad0230438bd/GenomicDistributions/extdata/C_elegans_cropped_example.fa.gz