Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing process > 'fastqc #1

Open
grace-yun-liu opened this issue Oct 15, 2024 · 3 comments
Open

Error executing process > 'fastqc #1

grace-yun-liu opened this issue Oct 15, 2024 · 3 comments

Comments

@grace-yun-liu
Copy link

grace-yun-liu commented Oct 15, 2024

Hi! I can't tell if there are any previous reports of this error, because I can't seem to see any other issues on the Github.

I recently ran a screen with the Zuber lab's 2-guide human library, using staggered barcodes. Using Nextflow version 22.10.0, I was able to get the test to run with no problems, but I keep running into an error when I input my own data and barcodes.

Because I'm using staggered barcodes, I'm running the version of the pipeline under the fandersch_dev_staggered branch.

PROFILE=${1:-singularity}
echo "Using profile ${PROFILE}."

NXF_VER=22.10.0 nextflow run ZuberLab/crispr-process-nf \
    -r fandersch_dev_staggered \
    -c process_sgRNAs.config \
    -profile ${PROFILE} \
    --library zuber_top2human_library_genomewide.txt \
    --barcodes my_barcodes.txt \
    --inputDir Sequencing/00_fastq \
    --outputDir nextflow_output

Shortly after (successfully, I think) de-multiplexing my samples, I'm thrown the following error:

Error executing process > 'fastqc (Grace1-Grace2-Grace3_R1_001)'

Caused by:
  No such variable: i -- Check script '/root/.nextflow/assets/ZuberLab/crispr-process-nf/main.nf' at line: 404

Source block:
  """
      fastqc -t ${task.cpus} -q ${fastq}
      for i in *_fastqc*; do mv "$i" ${lane}_"$i"; done
      """

Tip: view the complete command output by changing to the process work dir and entering the command `cat .command.out`

Would you be able to help me figure out how to solve this issue? I assume that fastqc is getting called by trim_barcode_and_spacer and that it's not finding something in the designated spot, but I'm not sure what the problem might be.

@grace-yun-liu
Copy link
Author

I managed to get the process to run by reverting to a prior version of the code, cutting out the following line:
for i in *_fastqc*; do mv "$i" ${lane}_"$i"; done

@fandersch
Copy link
Contributor

Hi,

you are right, there was an issue with my last commit. I fixed this now in the the newest commit.

Could you please check if it works for you now? If you are running it with nextflow run zuberlab/crispr-process-nf, remember to call nextflow pull zuberlab/crispr-process-nf to update the cached pipeline.

@grace-yun-liu
Copy link
Author

Hi Florian! The new commit looks great and executed with no problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants