Skip to content

Commit

Permalink
fix again bug #15
Browse files Browse the repository at this point in the history
  • Loading branch information
ggautreau committed Mar 6, 2018
1 parent 2929960 commit a26533b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ppanggolin/ppanggolin.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ def __neighborhood_computation(self, directed = False):#,light = False, untangle
if contig in self.circular_contig_size:#circularization
self.__add_link(gene_info_start[FAMILY],family_id_nei,organism, (self.circular_contig_size[contig] - end_family_nei) + gene_info_start[START])

ordered_dict_prepend(contig_annot,gene_start,gene_info_start)#insert at the top
if sys.version_info < (3,):
ordered_dict_prepend(contig_annot,gene_start,gene_info_start)#insert at the top
else:
contig_annot[gene_start]=gene_info_start
contig_annot.move_to_end(gene_start, last=False)#move to the beginning
# if light:
# del self.annotations[organism]

Expand Down Expand Up @@ -575,7 +579,7 @@ def validate_family(result):
pan_size = stats["accessory"]+stats["core_exact"]

while len(validated)<pan_size:
if sem.acquire():#
if sem.acquire() if nb_threads>1 else True:#
# print(organisms)
# print(chunck_size)
# print(proba_sample.values())
Expand Down

0 comments on commit a26533b

Please sign in to comment.