Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
allow different gene names from tree step
- Loading branch information
Showing
with
9 additions
and
4 deletions.
-
+9
−4
lib/LoadFileFunc.py
|
|
@@ -174,10 +174,15 @@ def phymlRecEntry(Data, step = "tree"): |
|
|
Data.queryFile, |
|
|
Data.aln, |
|
|
step) |
|
|
|
|
|
with open(Data.aln) as orf: |
|
|
Data.geneName = orf.readline().split("_")[1] |
|
|
orf.close() |
|
|
try: |
|
|
with open(Data.aln) as orf: |
|
|
Data.geneName = orf.readline().split("_")[1] |
|
|
orf.close() |
|
|
except IndexError: |
|
|
with open(Data.aln) as orf: |
|
|
Data.geneName = orf.readline().strip() |
|
|
orf.close() |
|
|
|
|
|
else: |
|
|
logger=logging.getLogger(".".join(["main",step])) |
|
|
logger.error("Provided file is not a multiple sequence alignment, terminating DGINN.") |
|
|
|