'c(?P<cycle>[\d]+)_l(?P<lane>[\d]+)(_r(?P<read>[\d]))?\.fastq')
class FastqName(collections.Mapping):
+ """Utility class to convert to the standardized submission fastq name.
+ """
def __init__(self, is_paired=None, **kwargs):
+ """Create a fastq name handler.
+
+ Takes filename or common attributes like flowcell, lib_id, lane, read, cycle
+ """
self._attributes = ('flowcell', 'lib_id', 'lane', 'read', 'cycle')
self._is_paired = is_paired
value = kwargs[k]
self[k] = value
-
def _init_by_filename(self, filename):
match = FASTQ_RE.match(filename)
if match is None: