Mercurial > repos > rmarenco > hubarchivecreator
comparison Gtf.py @ 16:3233451a3bd6 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit fc73ec22a0db3ab09c4ac13dc58f0b54ae37845c
author | rmarenco |
---|---|
date | Sun, 25 Sep 2016 11:25:38 -0400 |
parents | 25809f699cb3 |
children | c02720d1afee |
comparison
equal
deleted
inserted
replaced
15:2a45cd656e8e | 16:3233451a3bd6 |
---|---|
18 self.track = None | 18 self.track = None |
19 | 19 |
20 self.input_gtf_false_path = input_gtf_false_path | 20 self.input_gtf_false_path = input_gtf_false_path |
21 self.name_gtf = data_gtf["name"] | 21 self.name_gtf = data_gtf["name"] |
22 self.priority = data_gtf["order_index"] | 22 self.priority = data_gtf["order_index"] |
23 self.track_color = data_gtf["track_color"] | |
23 | 24 |
24 #print "Creating TrackHub GTF from (falsePath: %s; name: %s)" % ( self.input_gtf_false_path, self.name_gtf) | 25 #print "Creating TrackHub GTF from (falsePath: %s; name: %s)" % ( self.input_gtf_false_path, self.name_gtf) |
25 | 26 |
26 # TODO: See if we need these temporary files as part of the generated files | 27 # TODO: See if we need these temporary files as part of the generated files |
27 genePredFile = tempfile.NamedTemporaryFile(bufsize=0, suffix=".genePred") | 28 genePredFile = tempfile.NamedTemporaryFile(bufsize=0, suffix=".genePred") |
57 # Create the Track Object | 58 # Create the Track Object |
58 self.createTrack(file_path=trackName, | 59 self.createTrack(file_path=trackName, |
59 track_name=trackName, | 60 track_name=trackName, |
60 long_label=self.name_gtf, track_type='bigGenePred', | 61 long_label=self.name_gtf, track_type='bigGenePred', |
61 visibility='dense', priority=self.priority, | 62 visibility='dense', priority=self.priority, |
62 track_file=myBigBedFilePath) | 63 track_file=myBigBedFilePath, |
64 track_color=self.track_color) | |
63 | 65 |
64 print("- Gtf %s created" % self.name_gtf) | 66 print("- Gtf %s created" % self.name_gtf) |