Mercurial > repos > rmarenco > hubarchivecreator
comparison Bed.py @ 13:25809f699cb3 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
author | rmarenco |
---|---|
date | Thu, 11 Aug 2016 19:02:29 -0400 |
parents | d05236b15f81 |
children | 3233451a3bd6 |
comparison
equal
deleted
inserted
replaced
12:747475757cb0 | 13:25809f699cb3 |
---|---|
31 # TODO: Change the name of the bb, to tool + genome + possible adding if multiple + .bb | 31 # TODO: Change the name of the bb, to tool + genome + possible adding if multiple + .bb |
32 trackName = "".join( ( self.name_bed_generic, ".bb") ) | 32 trackName = "".join( ( self.name_bed_generic, ".bb") ) |
33 | 33 |
34 myBigBedFilePath = os.path.join(self.myTrackFolderPath, trackName) | 34 myBigBedFilePath = os.path.join(self.myTrackFolderPath, trackName) |
35 with open(myBigBedFilePath, 'w') as self.bigBedFile: | 35 with open(myBigBedFilePath, 'w') as self.bigBedFile: |
36 subtools.bedToBigBed(self.sortedBedFile.name, self.chromSizesFile.name, self.bigBedFile.name) | 36 subtools.bedToBigBed(self.sortedBedFile.name, |
37 self.chromSizesFile.name, | |
38 self.bigBedFile.name) | |
37 | 39 |
38 # Create the Track Object | 40 # Create the Track Object |
39 self.createTrack(file_path=trackName, | 41 self.createTrack(file_path=trackName, |
40 track_name=trackName, | 42 track_name=trackName, |
41 long_label=self.name_bed_generic, track_type='bigBed', visibility='dense', | 43 long_label=self.name_bed_generic, track_type='bigBed', visibility='dense', |