VIB-PSB / MINI-AC

Motif-Informed Network Inference based on Accessible Chromatin (MINI-AC) is a method that combines accessible chromatin data from bulk or single-cell experiments with transcription factor binding site enrichment to learn gene regulatory networks in plants
Other
3 stars 0 forks source link

Check and improve error messages #7

Open hdbeukel opened 1 year ago

hdbeukel commented 1 year ago

In #4 we made sure that the workflow fails when motif mapping files are not found. The message doesn't mention the file path where the motif mapping files where expected though. We should include the path MotMapsFile in the error message.

Wait to implement this until #3 is merged to avoid another conflict 😄

hdbeukel commented 12 months ago

In fact we should check all error messages. For example I noticed this is wrong:

de_files = Channel.fromPath("${DE_genes_dir}/*.txt")
                  .ifEmpty { error "Cannot find any directory: ${Set_genes_dir}" }

The error message refers to Set_genes_dir instead of DE_genes_dir. Also it says the directory is not found while it could be the directory is actually there but the files inside it are missing (or have a wrong extension).