Hello, I am quite new to python programming and I need help with writing a code to calculate distance matrix from a text file that contains something like this:

ACCGGTGGAACCGG-TAACACCCAC
ACCGGT--AACCGGTTAACACCCAC
ACCGGTGGAACCGGTAACACCCAC-
ACCGGT--------TAACACCCAC-

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.