Closed fxwiegand closed 3 months ago
@dlaehnemann Just as we discussed in #104.
I removed the columns from the test config so the CI should show us if the workflow handles the missing columns. I dont even thing we need to set a default value in the I only added a lookup()
functions as these rules will only be executed if the columns are present in the units sheet.None
default value to the lookup()
functions as they will only be executed when the value is present in the units sheet anyways.
I just realised, that we also do not have a test case for the new bam input functionality, and we probably should. Otherwise things are sure to break at some point. I see two possibilities, here:
Or maybe you know a (very minimal) bam file that we can directly use, optimally in some stable repository for download.
And it probably makes sense to include these tests in this PR, as this is the functionality that it should test...
I agree that a test case with the bam input would be helpful although really all it will test is the modified fastq input function as well as the samtools separate and interleaved wrapper (that should already be tested well enough).
I would argue to merge and release this now and add a test for the bam input later as this will at least allow any users to use the newest workflow version with the regular fastq inputs without any breaking changes.
@dlaehnemann It seems like the suggestions caused some new bug 😬
Edit: Ah i think i found the issue. Two of the suggestions were missing a simple not
.
Oups. :see_no_evil:
This PR makes the workflow handle missing bam columns introduced in #94 without throwing an error.