def reverse_complement(self, s):
        'get reverse complement of a string s'
        #return ''.join([self._complement.get(c, c) for c in s[::-1]])
        return ''.join([self._complement.get(s[i], s[i]) for i in
                        range(len(s) -1, -1, -1)])
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/SeqPath.reverse_complement/original