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

Sample IDs should work without underscores #160

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

edmundmiller
Copy link
Collaborator

@edmundmiller edmundmiller commented Aug 17, 2024

Closes #158

@dmitrymyl just made a test case for now, it passed so I'm not sure where the bug is.

Could you try your full run on the dev branch?

@edmundmiller edmundmiller self-assigned this Aug 17, 2024
Copy link

github-actions bot commented Aug 17, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit d1c51a0

+| ✅ 199 tests passed       |+
#| ❔   4 tests were ignored |#
!| ❗   2 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in README.md: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: LICENSE or LICENSE.md or LICENCE or LICENCE.md
  • files_unchanged - File ignored due to lint config: .github/workflows/linting.yml
  • files_unchanged - File ignored due to lint config: assets/email_template.html
  • actions_ci - actions_ci

✅ Tests passed:

Run details

  • nf-core/tools version 2.14.1
  • Run at 2024-08-17 16:14:57

@edmundmiller edmundmiller marked this pull request as ready for review August 17, 2024 16:12
@dmitrymyl
Copy link

I ran the pipeline dev version with samplesheet:

sample,fastq_1,fastq_2
REP1,./sortmerna/SRR1693611/out/other.fq.gz,
REP2,./sortmerna/SRR1693612/out/other.fq.gz,

The sample names are different in this case, since I cannot run latest version with the same sample name.
It failed with:

ERROR ~ Error executing process > 'NFCORE_NASCENT:NASCENT:TRANSCRIPT_INDENTIFICATION:GROHMM:GROHMM_PARAMETERTUNING (REP2)'

Caused by:
  No such variable: bam -- Check script '/users/dmitry.mylarshchikov/.nextflow/assets/nf-core/nascent/./workflows/../subworkflows/local/./grohmm/../../../modules/local/grohmm/parametertuning/main.nf' at line: 26

Source block:
  def args = task.ext.args ?: ''
  def prefix = task.ext.prefix ?: "${meta.id}"
  """
      parameter_tuning.R \\
          --bam_file ${bam} \\
          --tuning_file ${tune_parameter_file} \\
          --outprefix ${prefix} \\
          --gtf $gtf \\
          --outdir ./ \\
          --cores $task.cpus \\
          $args

      cat <<-END_VERSIONS > versions.yml
      "${task.process}":
          r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
          bioconductor-grohmm: \$(Rscript -e "library(groHMM); cat(as.character(packageVersion('groHMM')))")
      END_VERSIONS
      """

@edmundmiller
Copy link
Collaborator Author

Okay, that's out of bounds 😆

sample,fastq_1,fastq_2
replicate1,./sortmerna/SRR1693611/out/other.fq.gz,
replicate2,./sortmerna/SRR1693612/out/other.fq.gz,

Maybe?

Might be able to improve the error handling earlier in the pipeline with nf-schema to abort if is a name is just REP1

@dmitrymyl
Copy link

I renamed samples to "replicate1" and "replicate2", and I still get the same error from GROHMM_PARAMETERTUNING.

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

Successfully merging this pull request may close these issues.

2 participants