Get transcription start sites (TSSs) from a remote or local GTF file

getTssFromGTF(source, convertEnsemblUCSC = FALSE, destDir = NULL)

Arguments

source

a string that is either a path to a local or remote GTF

convertEnsemblUCSC

a logical indicating whether Ensembl style chromosome annotation should be changed to UCSC style

destDir

a string that indicates the path to the directory where the downloaded GTF file should be stored

Value

a list of GRanges objects

Examples

CElegansGtfCropped = system.file("extdata", 
                                 "C_elegans_cropped_example.gtf.gz", 
                                 package="GenomicDistributions")
CElegansTss = getTssFromGTF(CElegansGtfCropped, TRUE)
#> Got local file: /private/var/folders/jt/kcfp49s5061b941g5013p8340000gn/T/RtmpyCqrt4/temp_libpath582f54280d7e/GenomicDistributions/extdata/C_elegans_cropped_example.gtf.gz