Exemplo n.º 1
0
def main():
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    if os.path.isdir(opts.input_path):
        multiple_file_manifold(opts.input_path, opts.output_path, opts.algorithm)
    elif os.path.isfile(opts.input_path):
        manifold_res_string = compute_manifold(opts.input_path,opts.algorithm)

        f = open(opts.output_path, 'w')
        f.write(manifold_res_string)
        f.close()
    else:
        print("io error, check input file path")
        exit(1)
Exemplo n.º 2
0
def main():
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    if os.path.isdir(opts.input_path):
        multiple_file_manifold(opts.input_path, opts.output_path,
                               opts.algorithm)
    elif os.path.isfile(opts.input_path):
        manifold_res_string = compute_manifold(opts.input_path, opts.algorithm)

        f = open(opts.output_path, 'w')
        f.write(manifold_res_string)
        f.close()
    else:
        print("io error, check input file path")
        exit(1)
Exemplo n.º 3
0
def main():
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    #Individual parameters are separated by commas
    params_list = opts.params.split(",")
    params = dict()
    for pair in params_list:
        #The value is separated from the parameter by an equals sign
        key_value = pair.split("=")
        params[key_value[0]] = key_value[1]

    if os.path.isdir(opts.input_path):
        multiple_file_manifold(opts.input_path, opts.output_path, opts.algorithm, params)
    elif os.path.isfile(opts.input_path):
        manifold_res_string = compute_manifold(opts.input_path, opts.algorithm, params)

        f = open(opts.output_path, 'w')
        f.write(manifold_res_string)
        f.close()
    else:
        print("io error, check input file path")
        exit(1)
Exemplo n.º 4
0
 def test_manifold(self):
     '''Manifold calculation should throw no errors'''
     result = compute_manifold([self.biomstr],"isomap")
     assert result
Exemplo n.º 5
0
 def test_manifold(self):
     '''Manifold calculation should throw no errors'''
     result = compute_manifold([self.biomstr], "isomap")
     assert result