Skip to content

Commit

Permalink
Added some comments to clarify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin-Srinivasan committed Jun 18, 2018
1 parent 2796632 commit 0f72659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rand_wc_model_gen/kb_gen/genome.py
Expand Up @@ -149,7 +149,7 @@ def gen_components(self):
seq_len = numpy.sum(gene_lens) + numpy.sum(intergene_lens)

seq_str = []

#generates seq based on random codons
for i in range(0, seq_len, 3):
codon_i = STOP_CODONS[0]

Expand All @@ -172,6 +172,7 @@ def gen_components(self):
gene_starts = numpy.int64(numpy.cumsum(numpy.concatenate(([0], gene_lens[0:-1])) +
numpy.concatenate((numpy.round(intergene_lens[0:1] / 2), intergene_lens[1:]))))

#creates GeneLocus objects for the genes and labels their GeneType (which type of RNA they transcribe)
for i in range(len(gene_starts)):
gene = wc_kb.GeneLocus()
start = gene_starts[i]
Expand Down

0 comments on commit 0f72659

Please sign in to comment.