def get_lane(self, filename):
     """Return lane from FASTQ filename."""
     return utils.get_filename_part(filename, self.pattern,
                                    self.get_re_group_translations(),
                                    'lane')
 def get_sample_id(self, filename):
     """Return project ID from FASTQ filename."""
     return utils.get_filename_part(filename, self.pattern,
                                    self.get_re_group_translations(),
                                    'sample_id')
 def get_filename_part(self, filename, part='all'):
     """Return the specified part of the filename."""
     return utils.get_filename_part(filename, self.pattern,
                                    self.get_re_group_translations(),
                                    part)