1675e2873db77528ef1dee6fc49aaccfca9a369b,src/biotite/structure/dotbracket.py,,dot_bracket,#Any#Any#Any#,60
Before Change
else:
// Get position in ``basepairs`` and ``pseudoknot_order``
bp_pos = np.where(basepairs == pos)[0][0]
if pos in opened_brackets:
notations[s] += _CLOSING_BRACKETS[solution[bp_pos]]
else:
for base in basepairs[bp_pos]:
if base != pos:
opened_brackets.add(base)
notations[s] += _OPENING_BRACKETS[solution[bp_pos]]
return notations
def base_pairs_from_dot_bracket(dot_bracket_notation):
After Change
// Each optimal pseudoknot order solution is represented in
// dot-bracket-notation
notations = [
bytearray(("."*length).encode()) for _ in range(len(pseudoknot_order))
]
for s, solution in enumerate(pseudoknot_order):
for basepair, order in zip(basepairs, solution):
notations[s][basepair[0]] = _OPENING_BRACKETS_BYTES[order]
notations[s][basepair[1]] = _CLOSING_BRACKETS_BYTES[order]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: biotite-dev/biotite
Commit Name: 1675e2873db77528ef1dee6fc49aaccfca9a369b
Time: 2020-11-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/dotbracket.py
Class Name:
Method Name: dot_bracket
Project Name: dask/distributed
Commit Name: c67705f3f513de5bc09b897c400011b543ff0f7c
Time: 2020-07-17
Author: jakirkham@gmail.com
File Name: distributed/protocol/utils.py
Class Name:
Method Name: merge_frames
Project Name: dmlc/gluon-nlp
Commit Name: 2c5f22199b46837b9801378ce172dcd13f125769
Time: 2018-07-17
Author: leonard@lausen.nl
File Name: gluonnlp/vocab/subwords.py
Class Name: NGramHashes
Method Name: _word_to_hashes