Skip to content

Commit 417ef38

Browse files
modified: artemis.py
1 parent 8bc1b80 commit 417ef38

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

artemis.py

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555

5656
HEAD = '''
5757
********************************************************************
58-
* ARTEMIS (Version 20231004) *
58+
* ARTEMIS (Version 20240405) *
5959
* using ARTEM to Infer Sequence alignment *
6060
* Reference: TODO *
61-
* Please email comments and suggestions to [email protected] *
61+
* Please email comments and suggestions to [email protected] *
6262
********************************************************************
6363
'''
6464

@@ -1036,11 +1036,6 @@ def save(self,
10361036
ans1 = self.ans1
10371037
ans2 = self.ans2
10381038

1039-
# if os.path.isdir(saveto): # type: ignore
1040-
# files = set(os.listdir(saveto))
1041-
# else:
1042-
# files = set()
1043-
10441039
rAli = ans1['rAli']
10451040
qAli = ans1['qAli']
10461041

@@ -1056,11 +1051,6 @@ def save(self,
10561051
.reset_index()[q.atom_site.columns])
10571052

10581053
fname = '{}_to_{}{}'.format(q.name, r.name, saveformat)
1059-
# i = 0
1060-
# while fname in files:
1061-
# fname = '{}_to_{}_({}){}'.format(q.name, r.name, i, saveformat)
1062-
# i += 1
1063-
10641054
if saveformat == '.cif':
10651055
qq.to_cif('{}/{}'.format(saveto, fname))
10661056
else:
@@ -1069,20 +1059,11 @@ def save(self,
10691059
table = self.get_distance_1()
10701060

10711061
fname = '{}_to_{}.tsv'.format(q.name, r.name)
1072-
# i = 0
1073-
# while fname in files:
1074-
# fname = '{}_to_{}_({}).tsv'.format(q.name, r.name, i)
1075-
# i += 1
1076-
10771062
table.to_csv(saveto + '/' + fname, sep='\t',
10781063
float_format='{:.3f}'.format, index=False)
10791064

10801065

10811066
fname = '{}_to_{}.png'.format(q.name, r.name)
1082-
# i = 0
1083-
# while fname in files:
1084-
# fname = '{}_to_{}_({}).png'.format(q.name, r.name, i)
1085-
# i += 1
10861067
fig = plt.figure(figsize=(10, 10))
10871068
amat = np.zeros((r.L, q.L), dtype=int)
10881069
amat[h[0], h[1]] = 1
@@ -1110,11 +1091,6 @@ def save(self,
11101091
.reset_index()[q.atom_site.columns])
11111092

11121093
fname = '{}_to_{}_ti{}'.format(q.name, r.name, saveformat)
1113-
# i = 0
1114-
# while fname in files:
1115-
# fname = ('{}_to_{}_ti_({}){}'
1116-
# .format(q.name, r.name, i, saveformat))
1117-
# i += 1
11181094

11191095
if saveformat == '.pdb':
11201096
qq.to_pdb('{}/{}'.format(saveto, fname))
@@ -1124,19 +1100,13 @@ def save(self,
11241100
table = self.get_distance_2()
11251101

11261102
fname = '{}_to_{}_ti.tsv'.format(q.name, r.name)
1127-
# i = 0
1128-
# while fname in files:
1129-
# fname = '{}_to_{}_ti_({}).tsv'.format(q.name, r.name, i)
1130-
# i += 1
1103+
11311104

11321105
table.to_csv(saveto + '/' + fname, sep='\t',
11331106
float_format='{:.3f}'.format, index=False)
11341107

11351108
fname = '{}_to_{}_ti.png'.format(q.name, r.name)
1136-
# i = 0
1137-
# while fname in files:
1138-
# fname = '{}_to_{}_ti_({}).png'.format(q.name, r.name, i)
1139-
# i += 1
1109+
11401110
fig = plt.figure(figsize=(10, 10))
11411111
amat = np.zeros((r.L, q.L), dtype=int)
11421112
rAli, qAli = self.ans2['rAli'], self.ans2['qAli']

0 commit comments

Comments
 (0)