Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

c7-sshd_config.sh

  • rev_comp2.py 341 B
    
    
    def rev_comp(seq):
        """
        return the reverse complement of seq
        the case is respect but if the sequence mix upper and lower case the function will failed
        """
        reverse = seq[::-1]
        direct = 'acgtATCG'
        comp = 'tgcaTGCA'
        table = str.maketrans(direct, comp)
        rev_comp = reverse.translate(table)
        return rev_comp