Description Usage Value Examples
View source: R/trackhubTrack.R
Generates the trackDb file for every file in a defined path and copy the files into the local hub folder in the defined assembly database.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Creates a folder with the basics (hub.txt and genomes.txt) for the generation of a UCSC hub (based on gattaca server).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | path_tracks <- path
hub_name <- 'example_hub_multiple'
path_local_hub <- file.path(path, 'hubs')
dir.create(path_local_hub)
assembly_database <- 'hg38'
gattaca_folder_hub <- 'exampleHub'
pattern_tracks <- '.vcf.gz$'
tracks <- list.files(path_tracks,
pattern = pattern_tracks,
full.names = T)
quote_label = 'vcf_examples'
type <- 'vcfTabix'
visibility <- 'dense'
color <- '0, 0, 0'
for(track in tracks){
trackhubTrack(gattaca_folder_hub = gattaca_folder_hub,
path_local_hub = path_local_hub,
hub_name = hub_name,
gattaca_folder_hub = gattaca_folder_hub,
assembly_database = assembly_database,
track = track,
short_label = short_label,
long_label = long_label,
type = type,
visibility = visibility,
color = color,
quote_label = quote_label)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.