Skip to content

Commit

Permalink
FIX : Using proper class for proper gene type when reading the pangen…
Browse files Browse the repository at this point in the history
…ome hdf5 file
  • Loading branch information
Adelme Bazin committed Nov 28, 2019
1 parent 322e7db commit c9b2e85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.10
1.0.11
8 changes: 6 additions & 2 deletions ppanggolin/formats/readBinaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import tables

#local libraries
from ppanggolin.genome import Organism, Gene
from ppanggolin.genome import Organism, Gene, RNA


def getNumberOfOrganisms(pangenome):
Expand Down Expand Up @@ -92,7 +92,11 @@ def readOrganism(pangenome, orgName, contigDict, link = False):
if link:#if the gene families are already computed/loaded the gene exists.
gene = pangenome.getGene(row["ID"].decode())
else:#else creating the gene.
gene = Gene(row["ID"].decode())
gene_type = row["type"].decode()
if gene_type == "CDS":
gene = Gene(row["ID"].decode())
elif "RNA" in gene_type:
gene = RNA(row["ID"].decode())
try:
local = row["local"].decode()
except ValueError:
Expand Down

0 comments on commit c9b2e85

Please sign in to comment.