def __init__(self, matrix, markerheader, population_type, missing_threshold):
        self.matrix = matrix
        self.markerheader = markerheader
        self.population_type = population_type
        self.missing_threshold = missing_threshold
        self.ngenotypes = len(matrix)
        self.nind = len(markerheader) - 1
        assert self.nind == len(matrix[0]) - 1
        logging.debug("Imported {0} markers and {1} individuals.".\
                      format(self.ngenotypes, self.nind))
dataset/ETHPy150Open tanghaibao/jcvi/assembly/geneticmap.py/MSTMatrix.__init__/original