2b4c67c9cd2f08c1ba784eb17ebff02fb34b55d6,anvio/structureops.py,PDBDatabase,_run,#PDBDatabase#,1366

Before Change


        output_queue = manager.Queue(self.queue_size)

        // Consider only PDB ids that aren"t already stored
        pdb_ids = self.get_representative_ids(self.clusters).difference(self.get_stored_structure_ids())

        num_structures = len(pdb_ids)

After Change


        // NOTE We store as list so order is retained when debugging
        pdb_ids = [
            pdb_id
            for pdb_id in self.get_representative_ids(self.clusters)
            if pdb_id not in self.get_stored_structure_ids()
        ]

        num_structures = len(pdb_ids)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: merenlab/anvio
Commit Name: 2b4c67c9cd2f08c1ba784eb17ebff02fb34b55d6
Time: 2020-03-25
Author: kiefl.evan@gmail.com
File Name: anvio/structureops.py
Class Name: PDBDatabase
Method Name: _run


Project Name: merenlab/anvio
Commit Name: 6fb70d8a08c5b0278b02d5c82a2ad761a18063f7
Time: 2020-03-25
Author: kiefl.evan@gmail.com
File Name: anvio/structureops.py
Class Name: PDBDatabase
Method Name: get_stored_structure_ids


Project Name: merenlab/anvio
Commit Name: de1e1632ea513176f5aa9d818130326871971693
Time: 2020-03-25
Author: kiefl.evan@gmail.com
File Name: anvio/structureops.py
Class Name: PDBDatabase
Method Name: _run