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

Optionally ignore R1 / R2 after UMI extraction process #750

Closed
pnatarajan9 opened this issue Jan 10, 2022 · 5 comments
Closed

Optionally ignore R1 / R2 after UMI extraction process #750

pnatarajan9 opened this issue Jan 10, 2022 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@pnatarajan9
Copy link

Description of the bug

I have a specific read structure for the paired-end data (R1s carry 12bp UMIs at 3'end; R2s ONLY to be aligned to the transcriptome). The UMI extract steps goes through fine, but then sortmerna fails and when I skip sortmerna step, it fails in STAR alignment - the pipeline is trying to align treating it as paired-end data and R1s will not align in my case.
Post UMI extraction, the data needs to be treated as single-end data (ONLY R2s). At this stage, I would like to run the SortMeRNA (and remove the rRNA reads and get stats), followed by STAR alignment and all the downstream steps including umitools dedup step.
Please help with an example samplesheet.csv, and also the nfcore run command (with specific parameters set in order run UMI-based rnaseq analyses for my specific project).
Thank you very much for your help in advance!
-Padma

Command used and terminal output

-[nf-core/rnaseq] 1/1 samples skipped since they failed STAR 5% mapped threshold:
    0.0%: 01exp3X3MUSxsample01_S0
-
nextflow run rnaseq/nf-core-rnaseq-3.4/workflow \
       --input ./samplesheet.csv \
       -profile singularity \
       -config research.config \
       --with_umi \
       --umitools_extract_method=regex \
       --umitools_bc_pattern='.*(?P<umi_1>.{12})$' \
       --save_umi_intermeds \
       --genome mouse-ensembl-grcm38-r91 \
       --skip_bigwig \
       --remove_ribo_rna
This threw an error with Sortmerna.
Then I removed "--remove_ribo_rna" and re-ran the pipeline.
Now I got: [nf-core/rnaseq] 1/1 samples skipped since they failed STAR 5% mapped threshold:
Error executing process > 'NFCORE_RNASEQ:RNASEQ:QUANTIFY_STAR_SALMON:SALMON_QUANT
The UMI extract step went through fine, but STAR fails.

Relevant files

No response

System information

No response

@pnatarajan9 pnatarajan9 added the bug Something isn't working label Jan 10, 2022
@drpatelh drpatelh added this to the 3.6 milestone Feb 7, 2022
@drpatelh drpatelh changed the title UMI-based analyses using nf-core rnaseq pipeline (non-single cell dataset) Optionally ignore R1 / R2 after UMI extraction process Feb 21, 2022
drpatelh added a commit to drpatelh/nf-core-rnaseq that referenced this issue Feb 21, 2022
@drpatelh
Copy link
Member

This will be fixed in #771. I have added a new --umi_discard_read parameter which in your case you would set to --umi_discard_read 1. I ended up going with @grst suggestion of filtering the channels after the UMITOOLS_EXTRACT module was run.

Be great if you can test this out @pnatarajan9 when the PR above is merged into dev. Please let me know if you spot any issues.

nextflow pull nf-core/rnaseq
nextflow run nf-core/rnsaeq <OTHER_PARAMETERS> -r dev

drpatelh added a commit that referenced this issue Feb 22, 2022
Make --outdir mandatory, tin.py opt-in and fix #750
@pnatarajan9
Copy link
Author

pnatarajan9 commented Feb 23, 2022 via email

@pnatarajan9
Copy link
Author

pnatarajan9 commented Feb 25, 2022 via email

@drpatelh
Copy link
Member

Hi @pnatarajan9 you will need to install the dev version of nf-core/tools. Can you do the following and try again:

conda activate nfcore_v2.2_nextflow_v21.10.6
pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev

nf-core download rnaseq -r dev

@pnatarajan9
Copy link
Author

pnatarajan9 commented Mar 1, 2022 via email

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

2 participants