Changes

From Biolecture.org

Minsu Kim/python/Rosalind

894 bytes removed, 13:33, 13 December 2017
no edit summary
<h4>I solve the problem relative related&nbsp;to the bioinformatics in web site : rosalind</h4>
<h1>Problem</h1>
<p><a href="http://biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / problem1">[1]</a>&nbsp; &nbsp;<a href="http://biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / problem2">[2]</a>&nbsp; &nbsp; <a href="http://biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / problem3">[3]</a>basic problem</p>
<h2p>function<a href="http:/h2/biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / b1">[1]</a>&nbsp;&nbsp; <a href="http://biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / b2">[2]</a>&nbsp; &nbsp;<a href="http://biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / b3">[3]</a></p>
<p>def patterncount(text, pattern):<br />&nbsp; &nbsp; count=0<br />&nbsp; &nbsp; for i in range(0,len(text)):<br />&nbsp; &nbsp; &nbsp; &nbsp; if(text[i:len(pattern)+i]==pattern):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count += 1<br />&nbsp; &nbsp; return countrelated with bioinformatics</p>
<p>def complementing(sequence)<a href="http:<br //biolecture.org/index.php?title=Minsu_Kim/python/Rosalind / problem1">&nbsp; &nbsp; sequence = sequence[::-1]<br /a>&nbsp; &nbsp; text <a href= list(sequence)<br "http://>&nbsp; &nbsp; for i in range(0,len(text)):<br biolecture.org/>&nbsp; &nbsp; &nbsp; &nbsp; if text[i] index.php?title== &#39;A&#39;:<br Minsu_Kim/python/Rosalind /problem2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text[i2] = &#39;T&#39;<br /a>&nbsp; &nbsp; &nbsp; &nbsp; elif text[i] <a href="http://biolecture.org/index.php?title= &#39;G&#39;:<br Minsu_Kim/python/Rosalind /problem3">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text[i3] = &#39;C&#39;<br /a>&nbsp; &nbsp; &nbsp; &nbsp; elif text[i] <a href="http://biolecture.org/index.php?title= &#39;C&#39;:<br Minsu_Kim/python/Rosalind /problem4">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text[i4] = &#39;G&#39;<br /a>&nbsp; &nbsp; &nbsp; &nbsp; elif text[i] <a href="http://biolecture.org/index.php?title= &#39;T&#39;:<br Minsu_Kim/python/Rosalind /problem5">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text[i5] = &#39;A&#39;<br /a>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br a href="http:/>&nbsp; &nbsp; s /biolecture.org/index.php?title= &#39;&#39;.join(text)<br Minsu_Kim/python/Rosalind /problem6">&nbsp; &nbsp; print(s)[6]<br /a>&nbsp; &nbsp; return 0</p>
<h1>rosalind transcript basic</h1> <p>f = open(&#39;rosalind_rna.txt&#39;)<br />a href= f"http://biolecture.readline()<br org/>findex.close<php?title=Minsu_Kim/p> <p>text = list(a)<python/p> <p>for i in range(0,len(text)):<br Rosalind /problem7">&nbsp; &nbsp; if text[i7] == &#39;T&#39;:<br /a>&nbsp; &nbsp; &nbsp; &nbsp; text[i] = &#39;U&#39;<br />a href= &#39;&#39;.join(text)<"http:/p> <p>print(a)</p> <p>f = open(&#39;rosalind_revc2biolecture.txt&#39;,&#39;r&#39;)<br org/>b index.php?title= f.readline()<br Minsu_Kim/python/>f.close<Rosalind /pproblem8"<p>b = b[::-18]<br /a>text = list(b)</p> <p>for i in range(0,len(text)):<br />&nbsp; &nbsp; if text[i] <a href="http://biolecture.org/index.php?title= &#39;A&#39;:<br Minsu_Kim/python/Rosalind /problem9">&nbsp; &nbsp; &nbsp; &nbsp; text[i9] = &#39;T&#39;<br /a>&nbsp; &nbsp; elif text[i] <a href="http://biolecture.org/index.php?title= &#39;G&#39;:<br Minsu_Kim/python/Rosalind /problem10">&nbsp; &nbsp; &nbsp; &nbsp; text[i10] = &#39;C&#39;<br /a>&nbsp; &nbsp; elif text[i] <a href="http://biolecture.org/index.php?title= &#39;C&#39;:<br Minsu_Kim/python/Rosalind /problem11">&nbsp; &nbsp; &nbsp; &nbsp; text[i11] = &#39;G&#39;<br /a>&nbsp; &nbsp; elif text[i] <a href== &#39;T&#39;"http:<br />&nbsp; &nbsp; &nbsp; &nbsp; text[i] /biolecture.org/index.php?title= &#39;A&#39;<br Minsu_Kim/python/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br Rosalind /problem12">b = &#39;&#39;.join(text)[12]</p> <pa>print(b)</p>
<h2>Computing CG Content</h2>
<p>f_fa f&nbsp;= open(&#39;rosalind_gc.txt&#39;,&#39;r&#39;)<br />
seq_list = dict()<br />
for line in f_fa:<br />
&nbsp; &nbsp; else:<br />
&nbsp; &nbsp; &nbsp; &nbsp; seq_list[name]= line.strip()<br />
f_faf.close()</p>
<p>seq_CG = dict()<br />
Anonymous user

Navigation menu