Closed ute-hoffmann closed 1 year ago
Should be easy to fix, yes. The df_design
table is a new feature for Mageck, which needs slightly different input created from the sample sheet. The order might play a role, I will check. The df_design
table is only required when running Mageck, so DESeq2 analysis is unaffected.
Description of the bug
When running the pipeline, the script "prepare_counts.R" crashed at the "stopifnot" statement on line 79. This statement tests if the design table and the column names of the count matrix share the same entries / names (df_design$sample == colnames(df_combined)[-c(1,2)]). Since I assumed that the exact order of the sample names is not important, I introduced sort() around both statements, i.e. changed the code to stopifnot(all(sort(df_design$sample) == sort(colnames(df_combined)[-c(1,2)]))). This fixed the problem for me.
Command used and terminal output
Relevant files
No response
System information
Nextflow | 22.10.6 nf-core/crispriscreen | 1.0dev Hardware: desktop OS: Ubuntu