def test_get_technical_lengths(self):
     """get_technical_lengths should return correct dict of sample:length"""
     self.assertEqual(get_technical_lengths(
         (self.with_linker+self.samples).splitlines()),
         {'a':12, 'b':11})
     self.assertEqual(get_technical_lengths(
         (self.without_linker+self.samples).splitlines()), {'a':11, 'b':8})
Exemple #2
0
 def test_get_technical_lengths(self):
     """get_technical_lengths should return correct dict of sample:length"""
     self.assertEqual(get_technical_lengths(mapping_with_linker), {
         'a': 12,
         'b': 11
     })
     self.assertEqual(get_technical_lengths(mapping_without_linker), {
         'a': 11,
         'b': 8
     })
 def test_get_technical_lengths(self):
     """get_technical_lengths should return correct dict of sample:length"""
     self.assertEqual(
         get_technical_lengths(
             (self.with_linker + self.samples).splitlines()), {
                 'a': 12,
                 'b': 11
             })
     self.assertEqual(
         get_technical_lengths(
             (self.without_linker + self.samples).splitlines()), {
                 'a': 11,
                 'b': 8
             })
def main():
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    technical_lengths = get_technical_lengths(
        open(opts.input_map, 'U'), opts.debug)

    if opts.use_sfftools:
        set_sff_trimpoints_with_sfftools(
            opts.libdir, technical_lengths, opts.sffinfo_path,
            opts.sfffile_path, opts.debug)
    else:
        set_sff_trimpoints(opts.libdir, technical_lengths)
def main():
    option_parser, opts, args = parse_command_line_parameters(**script_info)

    technical_lengths = get_technical_lengths(open(opts.input_map, 'U'),
                                              opts.debug)

    if opts.use_sfftools:
        set_sff_trimpoints_with_sfftools(opts.libdir, technical_lengths,
                                         opts.sffinfo_path, opts.sfffile_path,
                                         opts.debug)
    else:
        set_sff_trimpoints(opts.libdir, technical_lengths)
 def test_get_technical_lengths(self):
     """get_technical_lengths should return correct dict of sample:length"""
     self.assertEqual(
         get_technical_lengths(mapping_with_linker), {'a': 12, 'b': 11})
     self.assertEqual(
         get_technical_lengths(mapping_without_linker), {'a': 11, 'b': 8})