changeset 31:de98a1b0be8b draft

Uploaded
author greg
date Mon, 27 Nov 2017 11:29:12 -0500
parents 4c42188478a7
children 38036d966bf2
files ideas_genome_tracks.R
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ideas_genome_tracks.R	Mon Nov 27 11:15:22 2017 -0500
+++ b/ideas_genome_tracks.R	Mon Nov 27 11:29:12 2017 -0500
@@ -203,12 +203,12 @@
 write.table(contents, file=genomes_file_path, quote=F, row.names=F, col.names=F);
 
 # Create the tracks.
-tracks_dir <- paste(hub_dir, "/", "tracks", "/", sep="");
+tracks_dir <- paste(hub_dir, opt$build, "/", sep="");
 dir.create(tracks_dir, showWarnings=FALSE);
 track_db <- create_track_db(opt$input_dir_state, opt$chrom_len_file, tracks_dir, opt$hub_name, opt$short_label, opt$long_label, track_color);
 
 # Create the trackDb.txt output.
-track_db_file_path <- paste(hub_dir, "trackDb.txt", sep="");
+track_db_file_path <- paste(tracks_dir, "trackDb.txt", sep="");
 write.table(track_db, file=track_db_file_path, quote=F, row.names=F, col.names=F);
 
 # Create the primary HTML dataset.