In a Java application files are created where the filename is a UUID generated from a protein sequence (e.g. TTCCPSIVARSNFNVCRLPGTPEAICATYTGCIIIPGATCPGDYAN) created using the function UUID.nameUUIDFromBytes
. This results in the UUID c6a0deb5-0c4f-3961-9d19-3f0fde0517c2
.
UUID.namedUUIDFromBytes
doesn't take a namespace as a parameter, whereas in python uuid.uuid3
does. According to What namespace does the JDK use to generate a UUID with nameUUIDFromBytes?, the namespace should have been passed as part of the name, but it's no longer possible to change the java code.
Is there a way to create a custom namespace in the python code such that it will produce the same UUID's as the Java code?