mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
17 lines
390 B
Python
17 lines
390 B
Python
#return lists of columns available
|
|
def get_available_columns( input_filename ):
|
|
rval = []
|
|
elems = []
|
|
|
|
file_in = open(input_filename, 'r')
|
|
oneline = file_in.readline()
|
|
if oneline :
|
|
elems = oneline.split('\t')
|
|
file_in.close()
|
|
ncol = len(elems)
|
|
while ncol > 0:
|
|
rval.append( (str(ncol), str(ncol), True) )
|
|
ncol = ncol -1
|
|
|
|
return rval
|