8b9ffbfdec1a9b6daf7b47f63fc2656e3e267c25,mro/stages/aggregator/check_molecule_info_version/__init__.py,,split,#Any#,30

Before Change


            // CRv1.3-generated files lack essential metrics introduced in CRv2 (force_cells, conf_mapped_filtered_bc_reads)
            //   hence aggregation with these files is unsupported
            mc_table = tables.open_file(mc_fn, "r")
            cr_major_version = int(mc_table.get_node("/metrics")._v_attrs["cellranger_version"].split(".", 1)[0])
            mc_table.close()
            if cr_major_version < 2:
                martian.exit("The molecule info HDF5 file (%s) was produced by an older version of Cell Ranger. Reading these files is unsupported." % mc_fn)

After Change


            cr_major_version = int(mc_attrs["cellranger_version"].split(".", 1)[0])
            gem_metrics = dict(mc_attrs["gem_groups"])
            mc_table.close()
            if cr_major_version < 2 or not all("conf_mapped_filtered_bc_reads" in group for group in gem_metrics.itervalues()):
                martian.exit("The molecule info HDF5 file (%s) was produced by an older version of Cell Ranger. Reading these files is unsupported." % mc_fn)

            nrows = mc_h5["barcode"].shape[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: 10XGenomics/cellranger
Commit Name: 8b9ffbfdec1a9b6daf7b47f63fc2656e3e267c25
Time: 2019-02-20
Author: nlhepler@gmail.com
File Name: mro/stages/aggregator/check_molecule_info_version/__init__.py
Class Name:
Method Name: split


Project Name: pymc-devs/pymc3
Commit Name: 82003ed0f58740b30ef314184b0ff3b9814e107c
Time: 2013-05-01
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc/step_methods/metropolis.py
Class Name: Metropolis
Method Name: astep


Project Name: automl/SMAC3
Commit Name: f78986cf55583c8aa430074e2ec8d12ea5e347dc
Time: 2020-10-22
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: smac/intensification/successive_halving.py
Class Name: _SuccessiveHalving
Method Name: process_results