comparison util/subtools.py @ 17:315a40b0b694 draft

planemo upload for repository https://github.com/goeckslab/jbrowse-archive-creator.git commit 891eca7a697643c9b5365781bbab5b655972ffdc
author yating-l
date Mon, 25 Jun 2018 16:05:01 -0400
parents 8bcec8dbb8be
children 79b23a8afb15
comparison
equal deleted inserted replaced
16:8bcec8dbb8be 17:315a40b0b694
292 fileType = 'bed' 292 fileType = 'bed'
293 sortedFile = tempfile.NamedTemporaryFile(bufsize=0) 293 sortedFile = tempfile.NamedTemporaryFile(bufsize=0)
294 bedSort(inputFile, sortedFile) 294 bedSort(inputFile, sortedFile)
295 elif "gff" in dataType: 295 elif "gff" in dataType:
296 fileType = 'gff' 296 fileType = 'gff'
297 #filteredFile = tempfile.NamedTemporaryFile(bufsize=0) 297 filteredFile = tempfile.NamedTemporaryFile(bufsize=0)
298 #remove_gene_lines(inputFile, filteredFile.name) 298 remove_gene_lines(inputFile, filteredFile.name)
299 sortedFile = tempfile.NamedTemporaryFile(bufsize=0) 299 sortedFile = tempfile.NamedTemporaryFile(bufsize=0)
300 #gff3sort(filteredFile.name, sortedFile) 300 gff3sort(filteredFile.name, sortedFile)
301 gff3sort(inputFile, sortedFile)
302 # add .gff3.gz extension to Tabix GFF3 files, in order to enable creating name index with generate-names.pl 301 # add .gff3.gz extension to Tabix GFF3 files, in order to enable creating name index with generate-names.pl
303 trackName = trackName + '.gff3.gz' 302 trackName = trackName + '.gff3.gz'
304 compressedFile = bgzip(sortedFile.name) 303 compressedFile = bgzip(sortedFile.name)
305 tabixFile = createTabix(compressedFile, fileType) 304 tabixFile = createTabix(compressedFile, fileType)
306 trackPath = os.path.join(outputFolder, trackName) 305 trackPath = os.path.join(outputFolder, trackName)