Hello, I want to apply following function on a file which has thousands of sequences. I want to print 192 residues after it finds a motif at position $pos.
print $seq_obj->subseq($pos+1,$pos+192), "\n";
Now problem is that sometimes sequence length is short than 192 residues and it resulted in error. Can anybody help me to find the possible solution? I like the sequence to be printed even if it is shorter than 192 residues. Thanks. Reaz
Hi Chris, Thanks. Actually I need to print only 192 residues after motif not the complete sequence. I will be OK if my subseq ignores those sequences which are shorter than 192 residues.
See modified answer below.