Ejemplo n.º 1
0
    def fstDistance(self, data):
        fst = FST()
        sampleCount = data.shape[1]
        dm = np.zeros((sampleCount, sampleCount))

        for i in range(0, sampleCount):
            for j in range(0, sampleCount):
                #extract the whole copy number profile, so the whole column
                sample1Profile = data[:, i]
                sample2Profile = data[:, j]

                dm[i, j] = fst.computeDistance(sample1Profile, sample2Profile)
        return dm