#!/usr/bin/env python
"""
Convert the output of ms to an N-dimensional frequency spectrum.
"""
import sys

import dadi

if __name__ == '__main__':
    average = ('-av' in sys.argv)
    
    input = sys.stdin
    output = sys.stdout
    sfs,header = dadi.Spectrum.from_ms_file(input, average, mask_corners=True,
                                            return_header=True)
    
    dadi.IO.sfs_to_file(sfs, output, comment_lines=header)

Rename so we can import it and thus get useful epydoc documentation.
Rename so we can import it and thus get useful epydoc documentation.



git-svn-id: 4c7b13231a96299fde701bb5dec4bd2aaf383fc6@132 979d6bd5-6d4d-0410-bece-f567c23bd345
