Example #1
0
 def test_get_fs_methods(self):
     """this test is going to make sure that we are only implementing feature selection methods that are in a predefined list. 
     """
     self.assertEqual(fizzy.get_fs_methods(), information_theoretic_methods)
Example #2
0
 def test_get_fs_methods(self):
     """this test is going to make sure that we are only implementing feature selection methods that are in a predefined list. 
     """
     self.assertEqual(fizzy.get_fs_methods(), information_theoretic_methods)
Example #3
0
File: fizzy.py Project: EESI/qiime
    make_option('-o',
        '--output_path',
        type="new_filepath",
        help='the output file')
]
script_info['optional_options'] = [
    make_option('-k',
        '--n_select',
        type="int",
        help='number of features to select [default: %default]',
        default=15),
    make_option('-f',
        '--fs_method',
        type='choice', 
        help='feature selection method. valid options are ' 
        + ', '.join(fizzy.get_fs_methods()) + '. [default: %default]',
        choices=fizzy.get_fs_methods(),
        default='MIM')
]
script_info['version'] = __version__



def main():
    """
        main()
    """
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    # run the fizzy feature selection routine
    fizzy.run_feature_selection( 
Example #4
0
    make_option('-o',
                '--output_fp',
                type="new_filepath",
                help='the output file')
]
script_info['optional_options'] = [
    make_option('-k',
                '--n_select',
                type="int",
                help='number of features to select [default: %default]',
                default=15),
    make_option('-f',
                '--fs_method',
                type='choice',
                help='feature selection method. valid options are ' +
                ', '.join(fizzy.get_fs_methods()) + '. [default: %default]',
                choices=fizzy.get_fs_methods(),
                default='MIM')
]
script_info['version'] = __version__


def main():
    """
        main()
    """
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    # run the fizzy feature selection routine
    selected_features = fizzy.run_feature_selection(open(opts.input_fp, 'U'),
                                                    open(opts.mapping_fp, 'U'),