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

Autorenaming of files in new cellranger module leads to erroneous renaming of sample ID containing R1 in it, like in SRR ids #265

Closed
BurtonChia opened this issue Sep 15, 2023 · 2 comments · Fixed by #268
Labels
bug Something isn't working

Comments

@BurtonChia
Copy link

Description of the bug

When running scrnaseq v 2.4.0 with the new cellranger #246 , we are encountering errors like this. This happens on all samples starting with SRR1xxx.

AssertionError: We expect R1 and R2 of the same sample to have the same filename except for R1/R2.
  Files involved:
      - fastq_001/SRR14923965_S1_L001_R1_001.fastq.gz
      - fastq_002/SRR14923965_S1_L001_R2_001.fastq.gz

A look at the command indicates the error is due to how the renaming of r1.name for the comparison for r2.name, in particular:
if r1.name.replace("R1", "R2") != r2.name:

Instead, this line should read: if r1.name.replace("_R1_", "_R2_") != r2.name: to ensure sample IDs containing "R1" in them don't get renamed by mistake.

Command used and terminal output

No response

Relevant files

No response

System information

No response

@BurtonChia BurtonChia added the bug Something isn't working label Sep 15, 2023
@grst
Copy link
Member

grst commented Sep 15, 2023

Thanks for reporting, this should already be fixed on dev
See #261

Would be great if you could give it a try!

@BurtonChia
Copy link
Author

That's great! We'll give the dev build a run and report back the results.

@grst grst mentioned this issue Sep 22, 2023
10 tasks
@grst grst closed this as completed in #268 Oct 2, 2023
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

Successfully merging a pull request may close this issue.

2 participants