from hashlib import sha224


def create_path_for_genes_db(tissues):
    """Create almost-certainly unique path for a database which will contain
    information about genes having variant-egene pairs in given tissues."""


    tissues_serialized = ','.join(tissues).encode('utf-8')
    tissues_hash_code = sha224(tissues_serialized).hexdigest()

    return 'genes_{hash_code}.db'.format(
        hash_code=tissues_hash_code
    )