R/buildReferenceData.R
getChromSizesFromFasta.Rd
Get gene models from a remote or local FASTA file
getChromSizesFromFasta(source, destDir = NULL, convertEnsemblUCSC = FALSE)
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 logical indicating whether Ensembl style chromosome annotation should be changed to UCSC style (add chr)
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/1t/jb58v7t17yz914q_spv5qt3w0000gn/T/RtmpHJib82/temp_libpath834f459db1b4/GenomicDistributions/extdata/C_elegans_cropped_example.fa.gz