Skip to content

Commit

Permalink
fixed fas.getDomains
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh committed Jan 25, 2024
1 parent 2f02257 commit 61ae09c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions greedyFAS/domainFAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,24 @@ def write_domain_file(path, idlist, outpath, tools, groupname):
for pid in idlist:
for tool in tools:
for feature in proteome["feature"][pid][tool]:
print(proteome["feature"][pid][tool][feature])
inteproID = "NA"
if "interproID" in proteome:
if feature in proteome["interproID"]:
inteproID = proteome["interproID"][feature]
for instance in proteome["feature"][pid][tool][feature]["instance"]:
phmm_info = 'NA\tNA\tNA\tNA\tNA\n'
phmm_info = 'NA\tNA\tNA\tNA\n'
if len(instance) > 3:
phmm_info = str(instance[2]) + '\t' + str(instance[3]) + '\t' + str(instance[4]) + '\t' \
phmm_info = str(instance[3]) + '\t' + str(instance[4]) + '\t' \
+ str(instance[5]) + '\t'
if feature in proteome['length']:
phmm_info = phmm_info + str(proteome['length'][feature]) + '\n'
else:
phmm_info = phmm_info + 'NA\n'
out.write(groupname + "#" + pid + "\t" + pid + "\t" + str(proteome["feature"][pid]["length"])
+ "\t" + feature + "\t" + str(instance[0]) + "\t" + str(instance[1]) + "\tNA\tNA"
+ phmm_info)
+ "\t" + feature + "\t" + str(instance[0]) + "\t" + str(instance[1])
+ "\tNA\tNA\t" + inteproID + "\t" + str(instance[2])
+ "\t" + phmm_info)


def main():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

setup(
name='greedyFAS',
version='1.18.7',
version='1.18.8',
python_requires='>=3.7.0',
description='A tool to compare protein feature architectures',
long_description=long_description,
Expand Down

0 comments on commit 61ae09c

Please sign in to comment.