Use parent directory of the currently used project dir in the identifier
currently the project dir part of the id is created as
proj_dir = x[x.findIndexOf{ it in params.minknowsubdirs} - 1]
that is, the parent directory of the configured minknowsubdirs which names are know (e.g. fastq_pass
). This directory name is auto generated by MinKNOW and consists of a lot of parts. A better part for the identifier would be the parent directory of that directory, as it's name can be set directly from the MinKNOW GUI so projects can be easily named and be found.
Additionally the currently used dirs name starts with a number, which does not work as a PostgreSQL database schema name. (Which will be fixed with the solution of this issue but avoiding the need to do so in the first place seems like a good idea.)