New open source medical image repository debuts

A team of medical researchers from four European institutions has created the Image Data Resource, a repository “that is capable of storing and integrating data from multiple laboratories, whilst also significantly enhancing the potential for sharing and reusing imaging data.”

The repository “offers potential to identify new therapies and targets, and broadens the scope of research by allowing scientists around the world to access each other’s imaging datasets,” the team writes in a recently published paper. The software underpinning the repository is open source, which “opens the possibility of the tech being deployed in other image data systems.”

Get MD5 checksum hash of big files in Python

def checkHash(filename, blocksize=2**20):

    try:

        print(“need to creating hash of file ” +filename)

        m = hashlib.md5()

        with open(filename , “rb” ) as f:

            while True:

                buf = f.read(blocksize)

                if not buf:

                    break

                m.update( buf )

        hash1=m.hexdigest()

        print(“hash of above file is  ” + hash1)

        return hash1

    except :

        print(“Exception in hash code:”)

        print(“-” * 60)

        traceback.print_exc(file=sys.stdout)

        print(“-” * 60)

        return “error”