diff gene_family_scaffold_loader.py @ 8:3841f7252b1d draft

Uploaded
author greg
date Tue, 21 Aug 2018 12:54:31 -0400
parents 9a4b0ae3d408
children 11a36e425c94
line wrap: on
line diff
--- a/gene_family_scaffold_loader.py	Fri Jun 08 13:07:42 2018 -0400
+++ b/gene_family_scaffold_loader.py	Tue Aug 21 12:54:31 2018 -0400
@@ -242,9 +242,8 @@
                 species_name = items[0]
                 i = 0
                 for clustering_method in self.clustering_methods:
+                    # The format of species_genes_dict_key is <clustering_method>^^<species_name>.
                     species_genes_dict_key = "%s^^%s" % (clustering_method, species_name)
-                    # The format of species_genes_dict_key is <clustering_method>^^<species_name>.
-                    species_genes_dict_key_items = species_genes_dict_key.split("^^")
                     # Get the scaffold_rec for the current scaffold_id and clustering_method.
                     # The list is [<scaffold_id_db>, <scaffold_id>, <clustering_method>]
                     for scaffold_rec in self.scaffold_recs:
@@ -389,6 +388,7 @@
         self.log("Inserted a total of %d rows into the plant_tribes_gene table." % gi)
         self.log("Inserted a total of %d rows into the gene_scaffold_orthogroup_taxon_association table." % gsoai)
 
+
 if __name__ == '__main__':
     scaffold_loader = ScaffoldLoader()
     scaffold_loader.run()