Draft version of the script, with output formats: Mapmaker and Jointmap4
It also can filter by segregation using pvalue associated to the chi square test