print '%s %s %d %d %s' % (gid, symbol, tagCount, glen, str(binList))
outfile.write('%s\t%s\t%d\t%d' % (gid, symbol, tagCount, glen))
for binAmount in binList:
outfile.write('\t%d' % binAmount)
print '%s %s %d %d %s' % (gid, symbol, tagCount, glen, str(binList))
outfile.write('%s\t%s\t%d\t%d' % (gid, symbol, tagCount, glen))
for binAmount in binList:
outfile.write('\t%d' % binAmount)