3eea3791dc36fbfc521b45b9eebd854c73908b62,dataPrepScripts/ChooseItemInBed.py,,Calc,#Any#,12

Before Change


def Calc(args):

    tree = {}
    with open(args.bed_fn) as f:
        for row in f:
            row = row.split()
            name = row[0]

After Change


    f.wait()


    f = subprocess.Popen(shlex.split("gzip -fdc %s" % (args.input_fn) ), stdout=subprocess.PIPE, bufsize=8388608)
    for row in f.stdout:
        ctgName, pos = [(row.split()[i]) for i in [0,1]]
        pos = int(pos)
        if ctgName not in tree:
            continue
        if len(tree[ctgName].search(pos)) == 0:
            continue
        sys.stdout.write(row)
    sys.stdout.flush()
    f.stdout.close()
    f.wait()


if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: aquaskyline/Clairvoyante
Commit Name: 3eea3791dc36fbfc521b45b9eebd854c73908b62
Time: 2017-09-13
Author: aquaskyline@gmail.com
File Name: dataPrepScripts/ChooseItemInBed.py
Class Name:
Method Name: Calc


Project Name: aquaskyline/Clairvoyante
Commit Name: 3eea3791dc36fbfc521b45b9eebd854c73908b62
Time: 2017-09-13
Author: aquaskyline@gmail.com
File Name: dataPrepScripts/CountNumInBed.py
Class Name:
Method Name: Calc


Project Name: aquaskyline/Clairvoyante
Commit Name: 3eea3791dc36fbfc521b45b9eebd854c73908b62
Time: 2017-09-13
Author: aquaskyline@gmail.com
File Name: clairvoyante/utils_v2.py
Class Name:
Method Name: GetTensor


Project Name: aquaskyline/Clairvoyante
Commit Name: 3eea3791dc36fbfc521b45b9eebd854c73908b62
Time: 2017-09-13
Author: aquaskyline@gmail.com
File Name: dataPrepScripts/ChooseItemInBed.py
Class Name:
Method Name: Calc


Project Name: aquaskyline/Clairvoyante
Commit Name: 3eea3791dc36fbfc521b45b9eebd854c73908b62
Time: 2017-09-13
Author: aquaskyline@gmail.com
File Name: dataPrepScripts/PairWithNonVariants.py
Class Name:
Method Name: bufcount