I may be missing something... but wouldn't using the Perl built-in substr, i.e. a simple substr($seq, -20) do the job?
(A negative offset returns that many chars counting from the end of the string.)
In reply to Re: How Do I Get the Last 20 Nucleotides In A FASTA Subsequence?
by almut
in thread How Do I Get the Last 20 Nucleotides In A FASTA Subsequence?
by vikuuu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |