Sofia Drobysheva
04/25/2025, 7:15 AMrun-trust4 -f hg38_bcrtcr.fa --ref human_IMGT+C.fa -u $R2 --barcode $R1 --UMI $R1 --readFormat 'bc:12:21,um:0:11' --barcodeWhitelist whitelist.tsv
Would you say this workaround is possible, or are there more things to consider?
Thank you in advance for thinking along 🙌Gisela Gabernet
04/25/2025, 1:26 PMnextflow run nf-core/airrflow -r 4.2.0 \
-profile docker \
--mode fastq \
--library_generation_method trust4 \
--cell_barcode_read R1 \
--umi_read R1 \
--read_format "bc:12:21,um:0:11"Gisela Gabernet
04/25/2025, 1:31 PMMark Polster
04/25/2025, 1:40 PMbarcodeWhitelist in your own config for now.
but we can also add it as a feature to the nf-core module I agreeGisela Gabernet
04/25/2025, 2:18 PMMark Polster
04/25/2025, 2:27 PMGisela Gabernet
04/25/2025, 2:55 PMGisela Gabernet
04/25/2025, 2:56 PMtrust4_Sofia Drobysheva
04/25/2025, 3:06 PMGisela Gabernet
04/25/2025, 3:24 PMSofia Drobysheva
04/26/2025, 8:06 AMGisela Gabernet
04/26/2025, 7:51 PMMark Polster
04/28/2025, 7:52 AM--trust4_barcode_whitelist parameter.
Make sure to add the --trust4_... before each trust4 param. We also integrated this in this PRSofia Drobysheva
04/28/2025, 12:21 PMMark Polster
04/28/2025, 12:39 PMGisela Gabernet
04/28/2025, 3:08 PMMark Polster
04/28/2025, 3:31 PMMark Polster
04/29/2025, 9:06 AMSofia Drobysheva
04/30/2025, 12:33 PMnextflow run <http://main.nf|main.nf> \
-profile docker \
--mode fastq \
--library_generation_method trust4 \
--trust4_cell_barcode_read R1 \
--trust4_umi_read R1 \
--trust4_read_format "bc:12:21,um:0:11" \
--trust4_barcode_whitelist whitelist.tsv \
--input samplesheet.tsv \
--outdir test_airr
As I run the pipeline locally, I have limited resources and get the following error:
ERROR ~ Error executing process > 'NFCORE_AIRRFLOW:AIRRFLOW:DATABASES:UNZIP_REFERENCE_FASTA (unzip_db)'
Caused by:
Process requirement exceeds available memory -- req: 36 GB; avail: 16 GB
I tried providing a nextflow.config that looks like this:
params {
max_cpus = 2
max_memory = 16.GB
max_time = 6.h
}
However the parameters do not seem to be picked up by the pipeline, as there is also a warning saying:
WARN: The following invalid input values have been detected:
* --max_cpus: 2
* --max_memory: 16 GB
* --max_time: 6h
I will look for a workaround, potentially running airrlow on HPC (currently I am running the code locally for convenience of using docker)Mark Polster
04/30/2025, 12:37 PMprocess {
withName: UNZIP_REFERENCE_FASTA {
memory = 16.GB
cpus = 2
time = 6h
}
}
you can also see here https://nf-co.re/docs/usage/getting_started/configuration#tuning-workflow-resources for further infosSofia Drobysheva
04/30/2025, 12:54 PMtime = 6.h instead of time = 6h , then it works as a charm 🙂Mark Polster
04/30/2025, 12:55 PMGisela Gabernet
05/01/2025, 3:11 PMprocess {
resourceLimits = [ memory: 16.GB, time: 24.h, cpus: 8 ]
}Gisela Gabernet
05/01/2025, 3:11 PMMark Polster
05/01/2025, 4:03 PM