Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bioperl error in bacterial annotation Daniel Fernandez Bioinformatics 9 06-26-2014 04:36 AM
PICARD replace group error mstagliamonte Bioinformatics 0 12-18-2013 12:02 PM
awk search and replace osha84 Bioinformatics 3 09-12-2013 03:41 PM
Tophat Error: Error: segment-based junction search failed with err =-6 sjnewhouse RNA Sequencing 8 03-19-2013 04:14 AM
Error: BioPerl installation in Windows shuang Bioinformatics 0 10-04-2012 09:19 AM

Thread Tools
Old 10-28-2014, 10:33 AM   #1
Location: Pacific Northwest

Join Date: Sep 2010
Posts: 13
Default bioperl search replace error

I'm having trouble with search and replace in bioperl. I'm trying to replace one or more Ns at the beginning of each sequence in a fasta file. When I use the following code, the match works, but the search/replace line gives an error:

while ( my $seq = $in->next_seq() ) {
if($seq->seq =~ m/^(N+)/) {
print "Starts with N\n";
$seq->seq =~ s/^(N)+//;

Can't modify non-lvalue subroutine call at line 26, <GEN0> line 1.

What am I missing?
Thanks for any help!
Volklor is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO