in reply to Removing nucleotide frm sequence
You probably want something more refined than this, but something similar to:
Not quite sure if your sequence is on one line or multiple lines, so the above will need some tweaking. If you need some more help, please amend your question, putting a complete sequence in code blockswhile (<>) { # $ denotes end of string s/AAAAA$//; s/>CC\@B$//; print; }
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Removing nucleotide frm sequence
by bingalee (Acolyte) on Jun 06, 2013 at 14:47 UTC | |
by space_monk (Chaplain) on Jun 06, 2013 at 14:50 UTC | |
Re^2: Removing nucleotide frm sequence
by space_monk (Chaplain) on Jun 07, 2013 at 07:42 UTC |
In Section
Seekers of Perl Wisdom