Mercurial > repos > greg > ensure_synced
comparison ensure_synced.py @ 4:81232205b179 draft
Uploaded
author | greg |
---|---|
date | Thu, 01 Oct 2020 13:37:48 +0000 |
parents | 2656d87abfee |
children | 68ca17b451f2 |
comparison
equal
deleted
inserted
replaced
3:2656d87abfee | 4:81232205b179 |
---|---|
39 cur = self.conn.cursor() | 39 cur = self.conn.cursor() |
40 cur.execute(cmd) | 40 cur.execute(cmd) |
41 rows = cur.fetchall() | 41 rows = cur.fetchall() |
42 for row in rows: | 42 for row in rows: |
43 self.affy_ids_from_db.append(row[0]) | 43 self.affy_ids_from_db.append(row[0]) |
44 self.affy_ids_from_db.sort() | |
44 | 45 |
45 def get_affy_ids_from_file(self, f): | 46 def get_affy_ids_from_file(self, f): |
46 with open(f) as fh: | 47 with open(f) as fh: |
47 for line in fh: | 48 for line in fh: |
48 line = line.strip() | 49 line = line.strip() |