Opened 17 years ago

Closed 17 years ago

#710 closed enhancement (fixed)

Allow subclasses to AbstractFlatFileParser to participate in auto-detection of file format

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.4
Component: coreplugins Version:
Keywords: Cc:

Description

This is currently an affair for the AbstractFlatFileParser only. The issue arised because the PrintMapFlatFileImporter detected the Illumina raw data files as print maps. This problem can only partly be solved with regular expressions. It would be useful if the subclass was allowed to inspect headers or control the auto-detection in a more powerful way.

This requires that the AbstractFlatFileParser.isImportable() method changes:

  1. It must handle sections in the same way as the doImport() method does. The doImport() starts with a call to nextSection() but the isImportable() doesn't.
  2. It must allow a subclass to inspect headers
  3. It must allow a subclass to continue parsing if it needs to

Change History (2)

comment:1 by Nicklas Nordborg, 17 years ago

Milestone: BASE 2.4
Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [3637]) Fixes #710: Allow subclasses to AbstractFlatFileParser to participate in auto-detection of file format

Note: See TracTickets for help on using tickets.