e06b04eacb0eefdd392e54a0ec2a4f24c22ef50c,cnvlib/target.py,,assign_names,#Any#Any#Any#,59

Before Change


                         key=lambda row: (row[0], row[3], row[1], row[2]))
    for (chrom, strand), chr_rows in groupby(region_rows,
                                             lambda row: (row[0], row[3])):
        if (chrom, strand) not in ref_genes:
            ngfrills.echo("Chromosome", chrom, "strand", strand,
                          "not in annotations")
            continue
        genes_in_chrom = iter(ref_genes[(chrom, strand)])
        ex_start, ex_end, ex_name = next(genes_in_chrom)
        for row in chr_rows:
            start, end = row[1:3]

After Change


            genes_in_chrom = iter(ref_genes[(chrom, strand)])
        elif "|" in strand:
            strands_with_genes = []
            for std in strand.split("|"):
                if (chrom, std) in ref_genes:
                    strands_with_genes.extend(ref_genes[(chrom, std)])
            if strands_with_genes:
                genes_in_chrom = iter(sorted(strands_with_genes))
            else:
                ngfrills.echo("Chromosome", chrom, strand, "not in annotations")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: etal/cnvkit
Commit Name: e06b04eacb0eefdd392e54a0ec2a4f24c22ef50c
Time: 2014-09-08
Author: eric.talevich@gmail.com
File Name: cnvlib/target.py
Class Name:
Method Name: assign_names


Project Name: albu/albumentations
Commit Name: 2bb95837e036d0352b1a1f0417656a7c3f858662
Time: 2019-09-23
Author: dipetm@gmail.com
File Name: tools/make_transforms_docs.py
Class Name:
Method Name: check_docs


Project Name: statsmodels/statsmodels
Commit Name: db637720f06b99c3f21721843a942cd90bda3be6
Time: 2020-09-19
Author: josef.pktd@gmail.com
File Name: statsmodels/miscmodels/ordinal_model.py
Class Name: OrderedModel
Method Name: from_formula