Mar-12-2019, 10:33 PM
This is an alternate solution for str.replace which I personal would not use for replacing char's, just because from a performance perspective. Despite for the record here's how you would do it.
import re re.sub('T', 'U', "ATCGATCGATCGATCGACTGACTAGTCATAGCTATGCATGTAGCTACTCGATCGATCGATCGACGATCGATATCGATGCATCGACTACTAT")