Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. RAB10 -0.016575
  2. MEF2C -0.019655
  3. SP2 1.24E-01
  4. SP2 -0.18870625
  5. SP2 0.0879425
  6.  
  7. RAB10 -0.016575
  8. MEF2C -0.019655
  9. SP2 1.24E-01
  10. -0.18870625
  11. 0.0879425
  12.  
  13. import math
  14. import numpy
  15. import csv
  16. import collections
  17. from decimal import *
  18. from collections import defaultdict
  19. with open('output.csv','rb') as file:
  20. contents = csv.reader(file)
  21. #storing content of Common genes Result edited file in matrix
  22. matrix = list()
  23. for row in contents:
  24. matrix.append(row)
  25.  
  26. for index, item in enumerate(matrix):
  27. #to access 2nd column value
  28. first_column = [ row[0] for row in matrix ]
  29. second_column = [ row[1] for row in matrix
  30. for q, a in zip (first_column, second_column):
  31. if q==q
  32. print (Format (q,a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement