Hi
I am trying to utilise the module binaries feature found Modules β Nextflow documentation.
I have added
nextflow.enable.moduleBinaries = true
to my config.
I have structured my module bin as per the above link.
module_name -> module.nf
-> resources -> usr -> bin -> python_script1.py
-> python_script2.py
and I am getting the error:
Command error:
.command.sh: line 5: perform_SPRT_SMA_CAH_CF_RB1.py: command not found
and this is my script:
script:
"""
touch Description.DMD
echo "Performing SPRT for ${meta.project_id}, disease is ${meta.description}, probeset is ${meta.probeset}" >> ${meta.project_id}_sprt.log
perform_SPRT_SMA_CAH_CF_RB1.py -i ${workbook} -p ${meta.probeset} -d ${meta.description} -idx ${idxstats} -dup ${dup_metrics} -mf ${cf_gene_model_file} ${cah_gene_model_file_CYP21A1P} ${cah_gene_model_file_CYP21A2} ${rb1_gene_model_file} ${sma_gene_model_file_SMN1} ${sma_gene_model_file_SMN2} >> ${meta.project_id}_sprt.log
"""
This worked perfectly when my python scripts were in the overall workflow bin but is now failing when Iβm trying to use the module bins. I really want this to work with module bins! Please help!
I have ensured all python scripts in the new location are linux executable and I have checked my version of nextflow is compatible (using nextflow:22.10.4). Does anybody have any idea why this is failing?