Skip to content

Commit

Permalink
Calculate summary counts based on profile defs
Browse files Browse the repository at this point in the history
  • Loading branch information
ar0ch committed Aug 28, 2018
1 parent 8fb0c37 commit 98120c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
*$py.class
*.fq
*.tsv
# C extensions
*.so

Expand Down
10 changes: 7 additions & 3 deletions abil_urdocaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import shutil
from itertools import islice
import operator
VERSION = """ abil_URDOcaller ALPHA.1 (updated : July 13, 2018) """
VERSION = """ abil_URDOcaller ALPHA.2 (updated : August 12, 2018) """
"""
abil_URDOcaller free for academic users and requires permission before any
commercial or government usage of any version of this code/algorithm.
Expand Down Expand Up @@ -571,8 +571,12 @@ def select_markers(result_dict):
for marker_id in result_dict[sample][loc]:
if __st_profile__[loc][marker_id] not in output:
output[__st_profile__[loc][marker_id]] = {}
output[__st_profile__[loc][marker_id]
][sample] = result_dict[sample][loc][marker_id]
if sample not in output[__st_profile__[loc][marker_id]]:
output[__st_profile__[loc][marker_id]
][sample] = result_dict[sample][loc][marker_id]
else:
output[__st_profile__[loc][marker_id]
][sample] += result_dict[sample][loc][marker_id]
else:
max_marker_id = max(
result_dict[sample][loc].items(), key=operator.itemgetter(1))[0]
Expand Down

0 comments on commit 98120c7

Please sign in to comment.