Skip to content

Commit feb7a20

Browse files
committed
Start extension w/ shortest length
1 parent 038187f commit feb7a20

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

extend.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,13 @@ def run_msa(downstream_segs_to_align, gid_to_records):
107107
seq_lens = [seg.stop - seg.start for seg in downstream_segs_to_align]
108108
longest_seq = max(seq_lens)
109109
mean_seq_len = np.mean(seq_lens)
110-
if sum(
111-
mean_seq_len*(1 - length_window) <= (seg.stop - seg.start) <= mean_seq_len*(1 + length_window) for seg in downstream_segs_to_align) > len(downstream_segs_to_align)*window_prop:
112-
base_length = int(mean_seq_len*(1 + length_window))
113-
else:
114-
base_length = BASE_LENGTH
110+
# if sum(
111+
# mean_seq_len*(1 - length_window) <= (seg.stop - seg.start) <= mean_seq_len*(1 + length_window) for seg in downstream_segs_to_align) > len(downstream_segs_to_align)*window_prop:
112+
# base_length = int(mean_seq_len*(1 + length_window))
113+
# else:
114+
# base_length = BASE_LENGTH
115115

116+
base_length = BASE_LENGTH
116117
while keep_extending:
117118
seqs_to_align = ["A" + (str(
118119
gid_to_records[seg.idp.gid][seg.idp.cid].seq[seg.start:seg.stop] if seg.strand == 1

0 commit comments

Comments
 (0)