def seguid(seq: str) -> _pretty_str: '''Returns the url safe SEGUID checksum for the sequence. This is the SEGUID checksum with the '+' and '/' characters of standard Base64 encoding are respectively replaced by '-' and '_'. ''' return _pretty_str( _base64_seguid(seq.upper()).replace("+", "-").replace("/", "_"))
def seguid(seq: str) -> _pretty_str: """Returns the url safe SEGUID checksum for the sequence. This is the SEGUID checksum with the '+' and '/' characters of standard Base64 encoding are respectively replaced by '-' and '_'. Examples -------- >>> from pydna.utils import seguid >>> seguid("a") 'bc1M4j2I4u6VaLpUbAB8Y9kTHBs' """ return _pretty_str( _base64_seguid(seq.upper()).replace("+", "-").replace("/", "_"))