Update to sample sheet preparation addressing some issues arising fro… #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…m the generate_sample_sheets function from the mip_functions module. That function is removed now and generating the final sample sheet from the various input files (capture plates, legacy sample sheets etc.) is handled by the sample_sheet_prep.py script. demux app is also updated to reflect this change. demux app now takes the samplesheet.csv files generated by the sample_sheet_prep.py script, and do not run the old generate_sampe_sheets function from within the mip_functions module. demux app also does not need the sequencing platform anymore. This commit also moves the barcode dictionary file from the base_resources root directory to sample_prep subdirectory for a more cohesive organization. The update changes how the sample sheets are generated so that the error arising when the first or last column of a sample file was empty (when sample_name was not the first column, for example). This update also changes the behaviour of sample_sheet_prep.py script so that when the inputs contain invalid samples, fields etc. an error is raised. The old behaviour was to print a warning message which could lead to missing samples if these warning messages are overlooked. The input files should not contain any invalid information so the new behaviour makes sure that the input information is good.