Guest User

Untitled

a guest
Nov 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import sys
  2.  
  3. rows = []
  4.  
  5. for line in open('gene_names.csv'):
  6. a,b,c = line.replace('\n','').split(',')
  7. rows.append([a,c])
  8.  
  9. for file in sys.argv[1:]:
  10. for i, line in enumerate(open(file)):
  11. rows[i] += line.replace('\n','').split(',')[2:]
  12.  
  13. for row in rows:
  14. print ','.join(row)
Add Comment
Please, Sign In to add comment