/tools/expression/exptf_code.py
https://bitbucket.org/cistrome/cistrome-harvard/ · Python · 31 lines · 21 code · 7 blank · 3 comment · 2 complexity · 6e33216b94809ad380e3ef5472c04b97 MD5 · raw file
- #build list of available data
- import string, os, sys, glob, shutil, re
- import galaxy.util
- from galaxy import datatypes, config, jobs
- #repository = "/usr/local/galaxy/data/rg/library"
- def getSampleNames(sampleName):
- if not sampleName:
- return []
- fileName = sampleName.file_name
- f = file(fileName, 'r')
- sampleData = f.readlines()
- f.close()
- header = sampleData[0].strip()
- i = 0
- samples = []
- headerItems = header.split()
- for (sample) in headerItems:
- sample = string.strip(sample, '"')
- i += 1
- samples.append((sample,str(i),False))
- return samples
- def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr):
- """Sets the name of the html file to the title"""
- pass