[BioPython] More string methods for the Seq object

Peter biopython at maubp.freeserve.co.uk
Fri Sep 26 21:57:31 UTC 2008


>> I suspect you have misunderstood my intension.  My Seq object .strip()
>> method would NOT remove the given characters from the interior of the
>> sequence - only from the ends.
>>
>> However, there is certainly a case for wanting an .ungap() method for
>> the Seq class (or a more general method to remove all of a particular
>> character), but I hadn't intended to raise this issue yet.
>>
>> Peter
>
> Yes, sorry about that. I misunderstood because I confused myself with the
> first part that uses the split.
>
> Bruce

Fair enough - maybe I shouldn't have tackled both methods in one
email... but I'm glad we cleared that up.

Anyway - do think adding the split and strip methods to the Seq object
is worthwhile?

Peter



More information about the Biopython mailing list