comparison gene_family_scaffold_loader.py @ 4:3c6514d810ae draft

Uploaded
author greg
date Fri, 25 May 2018 10:46:18 -0400
parents 48c13482e6c9
children cb986be6355e
comparison
equal deleted inserted replaced
3:48c13482e6c9 4:3c6514d810ae
368 """ 368 """
369 cur = self.update(sql, tuple(args)) 369 cur = self.update(sql, tuple(args))
370 self.flush() 370 self.flush()
371 gene_id_db = cur.fetchone()[0] 371 gene_id_db = cur.fetchone()[0]
372 gi += 1 372 gi += 1
373 if gi % 1000 == 0:
374 self.log("Inserted 1000 more rows into the plant_tribes_gene table.")
373 # Insert a row into the gene_scaffold_orthogroup_association table. 375 # Insert a row into the gene_scaffold_orthogroup_association table.
374 # Get the scaffold_rec for the current scaffold_id and clustering_method. 376 # Get the scaffold_rec for the current scaffold_id and clustering_method.
375 # The list is [<scaffold_id_db>, <scaffold_id>, <clustering_method>] 377 # The list is [<scaffold_id_db>, <scaffold_id>, <clustering_method>]
376 for scaffold_rec in self.scaffold_recs: 378 for scaffold_rec in self.scaffold_recs:
377 if scaffold_id in scaffold_rec and clustering_method in scaffold_rec: 379 if scaffold_id in scaffold_rec and clustering_method in scaffold_rec: