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 in the collapse process #35

Closed
fedeago opened this issue Feb 7, 2020 · 6 comments
Closed

Error in the collapse process #35

fedeago opened this issue Feb 7, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@fedeago
Copy link

fedeago commented Feb 7, 2020

Hi, thanks for your work. I'm tring to run this pipeline but it stop with the following error.

Error executing process > 'bowtie_miRBase_hairpin_collapsed (10.umitransformed.clean.fastq 10.umitransformed.clean_trimmed_umi_trimmed.fastq)

Caused by:
  No such property: baseName for class: nextflow.util.BlankSeparatedList

Source block:
  index_base = index.toString().tokenize(' ')[0].tokenize('.')[0]
  prefix = reads.baseName
  seq_center = params.seq_center ? "--sam-RG ID:${prefix} --sam-RG 'CN:${params.seq_center}'" : ''
  """
      bowtie \\
          $index_base \\
          -p ${task.cpus} \\
          -t \\
          -k 50 \\
          -a \\
          --best \\
          --strata \\
          -e 99999 \\
          --chunkmbs 2048 \\
          -q <(cat $reads) \\
          -S $seq_center \\
          | samtools view -bS - > ${prefix}.bam
      """

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

i use that pipeline with this configuration:

~/nextflow run nf-core/smrnaseq --reads '../cleaned/*.umitransformed.clean.fq.gz' --min_length 17 --genome 'GRCh37' --skipQC -profile singularity

How could i resolve this problem?

@ewels
Copy link
Member

ewels commented Feb 7, 2020

Hi @fedeago,

What version of Nextflow are you using? Could you please post the .nextflow.log file from the run?

Phil

@fedeago
Copy link
Author

fedeago commented Feb 7, 2020

I have't the .nexflow.log file. I use it with slurm, and the reads that i use are already trimmed. I can post the slurm.out file with the standard output of the pipeline. The version of nextflow is 19.10.0.

@ewels
Copy link
Member

ewels commented Feb 7, 2020

It looks like the problem is the prefix = reads.baseName bit. I guess it works when there is only one file in the collapsed_fasta channel, but it's breaking here because there is more than one fastq being generated by the seqcluster collapse process for some reason.

@lpantano could you have a look at this please? Am I right?

Phil

@ewels ewels added the bug Something isn't working label Feb 7, 2020
@fedeago
Copy link
Author

fedeago commented Feb 7, 2020

It is a big file, if you like i can post it as text.
slurm.txt

@lpantano
Copy link
Contributor

lpantano commented Feb 8, 2020

@ewels you are right, it is detecting UMIs and creating two files, I will work on the fix on Monday.

lpantano added a commit that referenced this issue Feb 11, 2020
this is related to UMI in the fastq files. Address: 
#35
@apeltzer
Copy link
Member

apeltzer commented Jan 3, 2022

Looks like this is long resolved by @lpantano 👍🏻

@apeltzer apeltzer closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants