def decimalToBinary(i):
b = ''
while i > 0:
j = i & 1
b = str(j) + b
i >>= 1
return b
b = ''
while i > 0:
j = i & 1
b = str(j) + b
i >>= 1
return b
'Bioinformatics > Biological data analysis' 카테고리의 다른 글
[bam] MD tag and cigar (0) | 2012.12.24 |
---|---|
[python] a method to reduce ID length using ascii value (0) | 2012.12.24 |
[python] universal set - computing subsets from a set (list) (0) | 2012.12.24 |
[python] the ways to call external programs (0) | 2012.12.24 |
[File Format] VCF format (0) | 2012.12.24 |