Mercurial > repos > rmarenco > hubarchivecreator
comparison BedSpliceJunctions.py @ 26:df42241d3731 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit c11beb58525fe6453a2180fe7783f6e8b0151901-dirty
author | yating-l |
---|---|
date | Mon, 03 Jul 2017 17:30:20 -0400 |
parents | 2677f1899aa8 |
children |
comparison
equal
deleted
inserted
replaced
25:99dad5f9444c | 26:df42241d3731 |
---|---|
18 self.name_bed_splice_junctions = data_bed_splice_junctions["name"] | 18 self.name_bed_splice_junctions = data_bed_splice_junctions["name"] |
19 self.priority = data_bed_splice_junctions["order_index"] | 19 self.priority = data_bed_splice_junctions["order_index"] |
20 self.track_color = data_bed_splice_junctions["track_color"] | 20 self.track_color = data_bed_splice_junctions["track_color"] |
21 # TODO: Think about how to avoid repetition of the group_name everywhere | 21 # TODO: Think about how to avoid repetition of the group_name everywhere |
22 self.group_name = data_bed_splice_junctions["group_name"] | 22 self.group_name = data_bed_splice_junctions["group_name"] |
23 self.database = data_bed_splice_junctions["database"] | |
23 if data_bed_splice_junctions["long_label"]: | 24 if data_bed_splice_junctions["long_label"]: |
24 self.long_label = data_bed_splice_junctions["long_label"] | 25 self.long_label = data_bed_splice_junctions["long_label"] |
25 else: | 26 else: |
26 self.long_label = self.name_bed_splice_junctions | 27 self.long_label = self.name_bed_splice_junctions |
27 sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed") | 28 sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed") |
39 with open(myBigBedFilePath, 'w') as bigBedFile: | 40 with open(myBigBedFilePath, 'w') as bigBedFile: |
40 subtools.bedToBigBed(sortedBedFile.name, | 41 subtools.bedToBigBed(sortedBedFile.name, |
41 self.chromSizesFile.name, | 42 self.chromSizesFile.name, |
42 bigBedFile.name, | 43 bigBedFile.name, |
43 typeOption='bed12+1', | 44 typeOption='bed12+1', |
44 autoSql=auto_sql_option) | 45 autoSql=auto_sql_option, |
46 extraIndex='name' | |
47 ) | |
45 | 48 |
46 # Create the Track Object | 49 # Create the Track Object |
47 self.createTrack(file_path=trackName, | 50 self.createTrack(file_path=trackName, |
48 track_name=trackName, | 51 track_name=trackName, |
49 long_label=self.long_label, track_type='bigBed 12 +', visibility='dense', | 52 long_label=self.long_label, track_type='bigBed 12 +', visibility='dense', |
50 priority=self.priority, | 53 priority=self.priority, |
51 track_file=myBigBedFilePath, | 54 track_file=myBigBedFilePath, |
52 track_color=self.track_color, | 55 track_color=self.track_color, |
53 group_name=self.group_name) | 56 group_name=self.group_name, |
57 database=self.database) | |
54 | 58 |
55 # dataURL = "tracks/%s" % trackName | 59 # dataURL = "tracks/%s" % trackName |
56 # | 60 # |
57 # trackDb = TrackDb( | 61 # trackDb = TrackDb( |
58 # trackName=trackName, | 62 # trackName=trackName, |