3eea3791dc36fbfc521b45b9eebd854c73908b62,dataPrepScripts/CreateTensor.py,,OutputAlnTensor,#Any#,52

Before Change




    beginToEnd = {}
    with open(can_fn) as f:
        for row in f.readlines():
            row = row.split()
            pos = int(row[1])
            if ctgStart != None and pos < ctgStart: continue
            if ctgEnd != None and pos > ctgEnd: continue
            if args.considerleftedge == False:
                beginToEnd[ pos - (param.flankingBaseNum+1) ] = (pos + (param.flankingBaseNum+1), pos)
            elif args.considerleftedge == True:
                for i in range(pos - (param.flankingBaseNum+1), pos + (param.flankingBaseNum+1)):
                    beginToEnd[ i ] = (pos + (param.flankingBaseNum+1), pos)

    p = subprocess.Popen(shlex.split("%s view %s %s:%d-%d" % (samtools, bam_fn, ctgName, ctgStart, ctgEnd) ), stdout=subprocess.PIPE, bufsize=8388608)\
        if ctgStart and ctgEnd\
        else subprocess.Popen(shlex.split("%s view %s %s" % (samtools, bam_fn, ctgName) ), stdout=subprocess.PIPE, bufsize=8388608)

After Change


    centerToAln = {}

    tensor_fpo = open(tensor_fn, "wb")
    tensor_fp = subprocess.Popen(shlex.split("gzip -c"), stdin=subprocess.PIPE, stdout=tensor_fpo, stderr=sys.stderr, bufsize=8388608)

    for l in p.stdout:
        l = l.split()
        if l[0][0] == "@":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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


Project Name: graphbrain/graphbrain
Commit Name: 02de60b01b016be9806d939fb642d365bac94627
Time: 2020-12-21
Author: telmo@telmomenezes.net
File Name: graphbrain/parsers/alpha.py
Class Name: Alpha
Method Name: __init__