INNER CODE UNIT · Python

ref_size

BirolLab/straglr · straglr_compare.py:60

            ref_size = int(cols[2]) - int(cols[1]) + 1
            if not use_size:
                ref_size = '{:.1f}'.format(ref_size / len(cols[3]))
            locus.append(str(ref_size))
            locus = tuple(locus)
            if not locus in alleles:
                alleles[locus] = defaultdict(list)
            allele = cols[-1] if old_version else cols[-2]
            if allele == '-' or allele == 'NA':
                continue
            if not use_size:
                allele = '{:.1f}'.format(float(allele) / len(cols[3]))
            
            size = cols[-5]
            copy_num = cols[-6]
            if old_version:
                size = cols[-3]
                copy_num = cols[-4]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…