|
Posted by Amy Lee on May 2, 2008, 10:53 am
Please log in for more thread options On Fri, 02 May 2008 14:48:28 +0000, Jürgen Exner wrote:
>>There's a problem while I'm processing sequences. My file content.
>>ATGCCCTGACGTAAACGTAGGCTACG
>>And I hope I can reverse the sequences to be this.
>>GCATCGGATGCAAATGCAGTCCCGTA
>
> You asked a self answering question: The reverse() function does exactly
> that.
>
>>I use "reverse" to do this, but it dose not work any more.
>
> ?????
> Are you saying that coming back into the office after yesterday's Labour
> Day the functionality of reverse() in Perl has changed?
>
> jue
Well, I'd better paste my codes here. I'm still working :(
while (<$FILE_IN>)
{
unless (/^>.*$/)
{
reverse $_;
}
print $_;
}
Thank you very much~
Amy
|