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 merging does not work if files are named the same #324

Open
nick-youngblut opened this issue May 4, 2024 · 0 comments
Open

Sample merging does not work if files are named the same #324

nick-youngblut opened this issue May 4, 2024 · 0 comments
Labels
bug Something isn't working bug-confirmed

Comments

@nick-youngblut
Copy link

Description of the bug

The docs state:

Multiple runs of the same sample
The sample identifiers have to be the same when you have re-sequenced the same sample more than once e.g. to increase sequencing depth. The pipeline will concatenate the raw reads before performing any downstream analysis. Below is an example for the same sample sequenced across 3 lanes:

The merging does not work if the fastq file paths have the same file name (basename). For example:

sample,fastq_1,fastq_2
sample1,run1/sample1_R1.fastq.gz,run1/sample1_R2.fastq.gz
sample1,run2/sample1_R1.fastq.gz,run2/sample1_R2.fastq.gz

This naming scheme will generate the following error:

Process `NFCORE_SCRNASEQ:SCRNASEQ:FASTQC_CHECK:FASTQC` input file name collision -- There are multiple input files for each of the following file names: sample1_R1.fastq.gz, sample1_R1.fastq.gz

It appears that NFCORE_SCRNASEQ:SCRNASEQ:FASTQC_CHECK:FASTQC is run on all fastq files separately instead of only after merging by sample, and the process stages just by the sample sheet file names (e.g., sample1_R1.fastq.gz instead of run1/sample1_R1.fastq.gz), which results in the naming collision.

Given that many users will likely have the same fastq file naming for multiple sequencing runs (as in my example), it would be very helpful if users did not have to make sure that the fastq file names are unique across runs.

Command used and terminal output

No response

Relevant files

No response

System information

No response

@nick-youngblut nick-youngblut added the bug Something isn't working label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bug-confirmed
Projects
None yet
Development

No branches or pull requests

2 participants