PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/expression/exptf_code.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 31 lines | 21 code | 7 blank | 3 comment | 4 complexity | 6e33216b94809ad380e3ef5472c04b97 MD5 | raw file
 1#build list of available data
 2import string, os, sys, glob, shutil, re
 3import galaxy.util
 4from galaxy import datatypes, config, jobs 
 5
 6#repository = "/usr/local/galaxy/data/rg/library"
 7
 8def getSampleNames(sampleName):
 9    if not sampleName:
10        return []
11    fileName = sampleName.file_name
12    f = file(fileName, 'r')
13    sampleData = f.readlines()
14    f.close()
15    header = sampleData[0].strip()
16    i = 0
17    samples = []
18
19    headerItems = header.split()
20
21    for (sample) in headerItems:
22        sample = string.strip(sample, '"')
23        i += 1
24        samples.append((sample,str(i),False))
25
26    return samples
27
28def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr):
29    """Sets the name of the html file to the title"""
30
31    pass