38159553bea31a492f5a4716a223c3e774086501,src/biotite/structure/basepairs.py,,_get_proximate_basepair_candidates,#Any#Any#,1041
Before Change
)
// If the basepair candidate is not already in the output
// list, append to the output list
if (
((partner_res_start, candidate_res_start) \
not in basepair_candidates)
and ((candidate_res_start, partner_res_start) \
not in basepair_candidates)
and not (candidate_res_start == partner_res_start)
):
basepair_candidates.append(
(candidate_res_start, partner_res_start)
)
return basepair_candidates
def _filter_atom_type(atom_array, atom_names):
After Change
// Remove candidates where the N/O pairs are from the same residue
basepair_candidates = np.delete(
basepair_candidates, np.where(
basepair_candidates[:,0] == basepair_candidates[:,1]
), axis=0
)
// Sort the residue starts for each potential basepair
for i, candidate in enumerate(basepair_candidates):
basepair_candidates[i] = sorted(candidate)
// Make sure each base pair candidate is only listed once
basepair_candidates = np.unique(basepair_candidates, axis=0)
return basepair_candidates
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biotite-dev/biotite
Commit Name: 38159553bea31a492f5a4716a223c3e774086501
Time: 2020-11-09
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _get_proximate_basepair_candidates
Project Name: tyarkoni/pliers
Commit Name: 597835c0f2109ddde91c0e9befe7be6b7cc073d6
Time: 2020-03-03
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: BertLMExtractor
Method Name: _mask
Project Name: rasbt/mlxtend
Commit Name: cbe17d7c0be2587b876225bdea08abbed426f17c
Time: 2019-06-23
Author: harenbergsd@gmail.com
File Name: mlxtend/frequent_patterns/apriori.py
Class Name:
Method Name: apriori