Changes
From Biolecture.org
no edit summary
<p>(Although Q&As are poor, Homework 1 process is included in this document.)</p>
<p> </p>
<p>Q1. What is Strawberry Perl?</p>
<p> Bad - Strawberry Perl is more like Unix program, as its principle is also based on Unix. Although it is efficient to implement Perl tasks(somewhat like text processing), Strawberry Perl shows low compatibility since it is hard to support Windows GUI framework, or enable direct Win32 API access, while other Perl working program does very well.</p>
<p> </p>
<p>Q. Write a simple program to open and write a FASTA file with the content below:<br />
<br />
>Your_first_seq<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA<br />
ATATATATATATATATAATATATATATATATATAATATATATATATATATAATATATATATATATATA</p>
<p> </p>
<p>A1. Write a Perl code.</p>
<p>#!/usr/bin/perl<br />
use strict;<br />
use Bio::SeqIO;<br />
my $reader=new Bio::SeqIO(-format=>'fasta',-file=>shift);<br />
while (my $seqRec=$reader->next_seq)<br />
{<br />
print join("\t",$seqRec->id,$seqRec->length),"\n";<br />
}</p>
<p>A2. When running in console...</p>
<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202015-12-09%2021-56-33-538.png" style="height:92px; width:637px" /></p>
<p>Then we need to get Bio::SeqIO module.</p>
<p> </p>
<p>A3. Go to <a href="http://www.bioperl.org/wiki/Module:Bio::SeqIO">http://www.bioperl.org/wiki/Module:Bio::SeqIO</a> to get Bio::SeqIO module</p>
<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202015-12-09%2021-58-54-516.png" style="height:103px; width:264px" /></p>
<p>A4. Download Bio::SeqIO, and find Bio/SeqIO.pm. As error ment says Bio/SeqIO.pm should be in @INC (C:/Strawberry/perl/site/lib, C:/Strawberry/perl/vendor/lib, C:/Strawberry/perl/lib),</p>
<p> Copy and paste Bio folder to the @INC. Even in BioPerl wiki doesn't teach me where I need to install the module, I added this explanation.</p>
<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202015-12-09%2022-02-39-345.png" style="height:67px; width:417px" /></p>
<p> </p>
<p>A5. Running in the module again, but...</p>
<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202015-12-09%2022-06-36-305.png" style="height:84px; width:539px" /></p>
<p> </p>
<p>A6. Need to revise the code again.</p>
<p>Maybe proper input requiring statement would be needed. (Still ongoing)</p>