Created
February 5, 2013 09:02
-
-
Save OrangeTux/4713172 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for gene in genes: | |
# Length of the gene | |
gene_length = gene.length | |
indexes = [] | |
for i in enumerate(gene_length): | |
indexes[i] = '' | |
for probe in probes: | |
for i in range(probes.start-1, probes.start+24): | |
del indexes[i] | |
coverage = (len(indexes) / gene_length) * 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment