3b3a06ad8402079c2d18718349d5f0f212ac7b81,deepchem/feat/tests/test_splif_fingerprints.py,TestSplifFingerprints,test_splif_voxels_shape,#TestSplifFingerprints#,24

Before Change


    size = 8
    voxelizer = dc.feat.SplifVoxelizer(
        box_width=box_width, voxel_width=voxel_width, size=size)
    features, failures = voxelizer.featurize([self.ligand_file],
                                             [self.protein_file])
    assert features.shape == (1, voxels_per_edge, voxels_per_edge,
                              voxels_per_edge, size * 3)

After Change


    features = featurizer.featurize(self.complex_files)
    assert features.shape == (1, 3 * size)

  def test_splif_voxels_shape(self):
    box_width = 48
    voxel_width = 2
    voxels_per_edge = int(box_width / voxel_width)
    size = 8
    voxelizer = dc.feat.SplifVoxelizer(
        box_width=box_width, voxel_width=voxel_width, size=size)
    features = voxelizer.featurize(self.complex_files)
    assert features.shape == (1, voxels_per_edge, voxels_per_edge,
                              voxels_per_edge, size * 3)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_splif_fingerprints.py
Class Name: TestSplifFingerprints
Method Name: test_splif_voxels_shape


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_splif_fingerprints.py
Class Name: TestSplifFingerprints
Method Name: test_splif_shape


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_contact_fingerprints.py
Class Name: TestContactFeaturizers
Method Name: test_contact_fingerprint_shape


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_contact_fingerprints.py
Class Name: TestContactFeaturizers
Method Name: test_contact_voxels_shape


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_splif_fingerprints.py
Class Name: TestSplifFingerprints
Method Name: test_splif_voxels_shape


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/tests/test_contact_fingerprints.py
Class Name: TestContactFeaturizers
Method Name: test_contact_voxels_flattened