f6bb3e9608d45ceee5279864f785bd58f3c579e1,lib/prody/sequence/msa.py,,refineMSA,#Any#Any#Any#Any#,348

Before Change


            raise ValueError("label is not in msa, or msa is not indexed")
        title.append("label=" + label)
        cols = char.isalpha(arr[index])
        arr = arr[:, cols] 
    rows = None
    from .analysis import calcMSAOccupancy
    if row_occ is not None:

After Change


            raise TypeError("row_occ must be a float ({0:s})".format(str(err)))
        assert 0. <= row_occ <= 1., "row_occ must be between 0 and 1"
        
        rows = (calcMSAOccupancy(arr, "row") >= row_occ).nonzero()[0]
        arr = arr[rows]
        title.append("row_occ>=" + str(row_occ))

    if col_occ is not None:
        try:
            col_occ = float(col_occ)
        except Exception as err:
            raise TypeError("col_occ must be a float ({0:s})".format(str(err)))
        assert 0. <= col_occ <= 1., "col_occ must be between 0 and 1"
        
        cols = (calcMSAOccupancy(arr, "col") >= col_occ).nonzero()[0]
        arr = arr.take(cols, 1)
        title.append("col_occ>=" + str(col_occ))
        
    if not title:
        raise ValueError("label, row_occ, col_occ all cannot be None")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/sequence/msa.py
Class Name:
Method Name: refineMSA


Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/tests/test_sequence/test_msa.py
Class Name: TestRefinement
Method Name: testRowCol


Project Name: facebookresearch/fastMRI
Commit Name: bb103fc1eea74f2e900e127e7ce3514bacfc6aa8
Time: 2020-10-28
Author: matt.muckley@gmail.com
File Name: fastmri/models/varnet.py
Class Name: SensitivityModel
Method Name: forward