1675e2873db77528ef1dee6fc49aaccfca9a369b,src/biotite/structure/dotbracket.py,,dot_bracket,#Any#Any#Any#,60
Before Change
// Bases whose partners have an opened bracket
opened_brackets = set()
for pos in range(length):
if pos not in basepairs:
notations[s] += "."
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]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: analysiscenter/batchflow
Commit Name: 7958b7a684f8819c95106a768e44cd37df226310
Time: 2019-11-26
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/eager_torch/layers/conv_block.py
Class Name: ConvBlock
Method Name: forward
Project Name: apache/incubator-tvm
Commit Name: a1260cc19342c4db61c6942a11c2b2b2b58f8bad
Time: 2021-02-12
Author: trevmorr@amazon.com
File Name: python/tvm/relay/frontend/keras.py
Class Name:
Method Name: _convert_reshape