Example #1
0
def main():
    # parse command line
    option_parser, opts, args = parse_command_line_parameters(**script_info)
    
    # ensure metadata is present and real-valued
    validate_metadata(opts.map_fp, opts.gradient_variable)

    # run detrending    
    detrend_pcoa(opts.input_fp,
                   map_fp=opts.map_fp,
                   gradient_variable=opts.gradient_variable,
                   suppress_prerotate=opts.suppress_prerotate,
                   output_dir=opts.output_dir)
Example #2
0
def main():
    # parse command line
    option_parser, opts, args = parse_command_line_parameters(**script_info)
    
    # can't pass map without column header
    if opts.map_fp is not None and opts.gradient_variable is None:
        option_parser.error("Cannot pass -m/--map_fp without -c/--gradient_variable.")

    # ensure metadata is present and real-valued
    if opts.map_fp is not None:
        validate_metadata(opts.map_fp, opts.gradient_variable)

    # run detrending    
    detrend_pcoa(opts.input_fp,
                   map_fp=opts.map_fp,
                   gradient_variable=opts.gradient_variable,
                   suppress_prerotate=opts.suppress_prerotate,
                   output_dir=opts.output_dir)
Example #3
0
def main():
    # parse command line
    option_parser, opts, args = parse_command_line_parameters(**script_info)
    
    # can't pass map without column header
    if opts.map_fp is not None and opts.gradient_variable is None:
        option_parser.error("Cannot pass -m/--map_fp without -c/--gradient_variable.")

    # ensure metadata is present and real-valued
    if opts.map_fp is not None:
        validate_metadata(opts.map_fp, opts.gradient_variable)

    # run detrending    
    detrend_pcoa(opts.input_fp,
                   map_fp=opts.map_fp,
                   gradient_variable=opts.gradient_variable,
                   suppress_prerotate=opts.suppress_prerotate,
                   output_dir=opts.output_dir)