Skip to content

Commit

Permalink
Solve issue #10 in 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioMilanese authored Apr 28, 2021
1 parent f9d7795 commit 1bfc964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stag/create_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def load_alignment_from_file(file_name):
# add correct values
with open(file_name, "r") as f:
for pos, line in enumerate(f):
vals = line.rstrip().split("\t")
# vals = line.rstrip().split("\t") check issue #10 why we replace the "/"
vals = line.rstrip().replace("/","-").split("\t")
alignment.iloc[pos] = np.array([x == "1" for x in vals[1:]])

logging.info(' LOAD_AL: Number of genes: %s', str(len(list(alignment.index.values))))
Expand Down

0 comments on commit 1bfc964

Please sign in to comment.