Hi everyone, I was running an analysis with nf-co...
# help
u
Hi everyone, I was running an analysis with nf-core/sammyseq on paired-end data (I think this is the first PE run we do with this pipeline) and I hit a crash at
PICARD_MARKDUPLICATES
.
Copy code
[... terminated with an error exit status (1) -- Execution is retried (1)
... retried (2)
ERROR ~ Error executing process > '...:PICARD_MARKDUPLICATES (Tnaive_24h_act_repB_S4)'

Command executed:
picard -Xmx13107M MarkDuplicates \
  --ASSUME_SORTED true --REMOVE_DUPLICATES false --VALIDATION_STRINGENCY LENIENT --TMP_DIR tmp \
  --INPUT Tnaive_24h_act_repB_S4.bam \
  --OUTPUT Tnaive_24h_act_repB_S4.md.bam \
  --REFERENCE_SEQUENCE GRCh38.primary_assembly.genome.fa \
  --METRICS_FILE Tnaive_24h_act_repB_S4.md.MarkDuplicates.metrics.txt

Command error (picard 3.3.0):
Command error:
  /usr/local/bin/picard: line 5: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
  05:49:06.233 INFO  NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/usr/local/share/picard-3.3.0-0/picard.jar!/com/intel/gkl/native/libgkl_compression.so
  [Wed Sep 10 05:49:06 GMT 2025] MarkDuplicates --INPUT Tnaive_24h_act_repB_S4.bam --OUTPUT Tnaive_24h_act_repB_S4.md.bam --METRICS_FILE Tnaive_24h_act_repB_S4.md.MarkDuplicates.metrics.txt --REMOVE_DUPLICATES false --ASSUME_SORTED true --TMP_DIR tmp --VALIDATION_STRINGENCY LENIENT --REFERENCE_SEQUENCE GRCh38.primary_assembly.genome.fa --MAX_SEQUENCES_FOR_DISK_READ_ENDS_MAP 50000 --MAX_FILE_HANDLES_FOR_READ_ENDS_MAP 8000 --SORTING_COLLECTION_SIZE_RATIO 0.25 --TAG_DUPLICATE_SET_MEMBERS false --REMOVE_SEQUENCING_DUPLICATES false --TAGGING_POLICY DontTag --CLEAR_DT true --DUPLEX_UMI false --FLOW_MODE false --FLOW_DUP_STRATEGY FLOW_QUALITY_SUM_STRATEGY --FLOW_USE_END_IN_UNPAIRED_READS false --FLOW_USE_UNPAIRED_CLIPPED_END false --FLOW_UNPAIRED_END_UNCERTAINTY 0 --FLOW_UNPAIRED_START_UNCERTAINTY 0 --FLOW_SKIP_FIRST_N_FLOWS 0 --FLOW_Q_IS_KNOWN_END false --FLOW_EFFECTIVE_QUALITY_THRESHOLD 15 --ADD_PG_TAG_TO_READS true --DUPLICATE_SCORING_STRATEGY SUM_OF_BASE_QUALITIES --PROGRAM_RECORD_ID MarkDuplicates --PROGRAM_GROUP_NAME MarkDuplicates --READ_NAME_REGEX optimized capture of last three ':' separated fields as numeric values --OPTICAL_DUPLICATE_PIXEL_DISTANCE 100 --MAX_OPTICAL_DUPLICATE_SET_SIZE 300000 --VERBOSITY INFO --QUIET false --COMPRESSION_LEVEL 5 --MAX_RECORDS_IN_RAM 500000 --CREATE_INDEX false --CREATE_MD5_FILE false --help false --version false --showHidden false --USE_JDK_DEFLATER false --USE_JDK_INFLATER false
  [Wed Sep 10 05:49:06 GMT 2025] Executing as root@fcada74b96e5 on Linux 3.10.0-1160.59.1.el7.x86_64 amd64; OpenJDK 64-Bit Server VM 22.0.1-internal-adhoc.conda.src; Deflater: Intel; Inflater: Intel; Provider GCS is available; Picard version: Version:3.3.0
  INFO	2025-09-10 05:49:06	MarkDuplicates	Start of doWork freeMemory: 47987624; totalMemory: 58720256; maxMemory: 13748928512
  INFO	2025-09-10 05:49:06	MarkDuplicates	Reading input file and constructing read end information.
  INFO	2025-09-10 05:49:06	MarkDuplicates	Will retain up to 49814958 data points before spilling to disk.
  [Wed Sep 10 05:49:06 GMT 2025] picard.sam.markduplicates.MarkDuplicates done. Elapsed time: 0.01 minutes.
  Runtime.totalMemory()=713031680
  To get help, see http://broadinstitute.github.io/picard/index.html#GettingHelp
  Exception in thread "main" java.lang.NullPointerException: Cannot invoke "htsjdk.samtools.SAMReadGroupRecord.getReadGroupId()" because the return value of "htsjdk.samtools.SAMRecord.getReadGroup()" is null
  	at picard.sam.markduplicates.MarkDuplicates.buildSortedReadEndLists(MarkDuplicates.java:558)
  	at picard.sam.markduplicates.MarkDuplicates.doWork(MarkDuplicates.java:270)
  	at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:281)
  	at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:105)
  	at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:115)

Work dir:
  /storage-daredevil/sammyseq_nfcore/Analisi/Linfociti/CD4/51_bp/work/1d/bcc4f0e42fbfd4ef35d277841bb40a

Container:
  quay.io/biocontainers/picard:3.3.0--hdfd78af_0

Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`

 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details
I don’t have much experience with paired-end inputs, so I’d like to ask if does anyone recognize this type of error? Could it mean that the pipeline currently doesn’t handle PE data correctly and therefore the code needs to be updated? Thanks in advance
#️⃣ 1
c
Hi, @Ugo Iannacchero! Slack uses channels to organise discussions. Press the
...
more
option on the left sidebar. Then hover over Your organisation, and finally select Channels to browse. Each nf-core pipeline has it’s own channel (e.g. #rnaseq). Please post any questions about specific pipelines in the relevant channel. If you’re not sure where to post your message, please ask @Phil Ewels for help.
p
Best to ask on #sammyseq
👍 1
a
Your issue is most likely caused by the lack of a proper read group header line in the bam file. It shouldn't be a paired-end specific problem.
👍 1
u
Thanks @Alexander Nater we solved it :)