Open main menu

Biolecture.org β

Changes

User talk:Seung won lee

1,417 bytes added, 02:10, 4 December 2015
โ†’โ€ŽChangshin Park Perl programming homework: new section
You will probably want to read the [[Help:Contents|help pages]].
Again, welcome and have fun! [[User:S|S]] 08:25, 12 September 2015 (KST)
 
== Changshin Park Perl programming homework ==
 
<p>------------------------------------------------------------------------------------------------------</p>
 
<p>As&nbsp;the&nbsp;first&nbsp;homework,&nbsp;you&nbsp;are&nbsp;asked&nbsp;to<br />
write&nbsp;a&nbsp;simple&nbsp;program&nbsp;to&nbsp;open&nbsp;and&nbsp;write&nbsp;a&nbsp;FASTA&nbsp;file&nbsp;with&nbsp;the&nbsp;content<br />
below:<br />
<br />
&gt;Your_first_seq<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA</p>
 
<p>------------------------------------------------------------------------------------------------------</p>
 
<p>I made a code simply gets input from user</p>
 
<p>i am not sure i understood the homework corretly.</p>
 
<p>This is the code:</p>
 
<p>#!/usr/bin/perl<br />
use strict;<br />
use warnings;</p>
 
<p>print &quot;&gt;Input your FASTA file\n&quot;;<br />
my $fasta = &lt;STDIN&gt;;<br />
#chomp $fasta;<br />
chomp($fasta = &lt;STDIN&gt;);</p>
 
<p><br />
print &quot;$fasta \n&quot;;</p>
 
<p>&nbsp;</p>
 
<p>and This is &nbsp;the result:</p>
 
<p><img alt="" src="/ckfinder/userfiles/images/Perlfasta.JPG" style="height:128px; width:549px" /></p>
 
<p>&nbsp;</p>
 
<p>Thank you.</p>