2883
Comment:
|
← Revision 11 as of 2020-02-08 13:26:23 ⇥
2898
|
Deletions are marked like this. | Additions are marked like this. |
Line 10: | Line 10: |
import urllib2 as U | from six.moves.urllib.request import urlopen |
Line 17: | Line 17: |
f = U.urlopen(gen_str + GenBank_ID) g = f.read() f.close() |
with urlopen(gen_str + GenBank_ID) as f: g = f.read() |
Line 59: | Line 58: |
print 'Population size: ' + str(pop_size) print 'Selection coefficient for first taxon: ' + str(d_field(selection)) |
print('Population size: ' + str(pop_size)) print('Selection coefficient for first taxon: ' + str(d_field(selection))) |
Line 70: | Line 69: |
print 'Generations until coalescence: ' + str(len(gens)) show(coal_plot(coal_data1), axes = False, figsize = [8,4.0*len(gens)/pop_size], ymax = len(gens)-1) |
print('Generations until coalescence: ' + str(len(gens))) show(coal_plot(coal_data1), axes = False, figsize = [8, 4.0*len(gens)/pop_size], ymax = len(gens)-1) |
Sage Interactions - Bioinformatics
goto interact main page
Web app: protein browser FIXME
by Marshall Hampton (tested by William Stein) [sagecell-issues]
Coalescent simulator
by Marshall Hampton [sagecell-issues]