Alexandru Mizeranschi
12/03/2025, 10:52 AMtest_minigut dataset was created for the test profile in #CE9MS66BS? We're having some trouble using it with an nf-core module for ALE (Assembly Likelihood Estimator), which complains about improperly paired reads. For more info, see this comment (and the previous two) from the PR where we're attempting to integrate ALE into #CE9MS66BS:
https://github.com/nf-core/mag/pull/931#issuecomment-3600806922Daniel Straub
12/03/2025, 11:27 AMAlexandru Mizeranschi
12/03/2025, 11:36 AMtest_full profile (the CAPES_XX datasets). I've done a few tests and there are, indeed, some issues with improperly paired reads in the the BAM file:
$ gatk ValidateSamFile I=/home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam MODE=SUMMARY
Using GATK jar /home/ubuntu/anaconda/envs/mainenv/share/gatk4-4.6.1.0-0/gatk-package-4.6.1.0-local.jar
Running:
java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -jar /home/ubuntu/anaconda/envs/mainenv/share/gatk4-4.6.1.0-0/gatk-package-4.6.1.0-local.jar ValidateSamFile I=/home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam MODE=SUMMARY
INFO 2025-12-02 21:59:33 ValidateSamFile
********** NOTE: Picard's command line syntax is changing.
**********
********** For more information, please see:
**********
<https://github.com/broadinstitute/picard/wiki/Command-Line-Syntax-Transition-For-Users-(Pre-Transition)>
**********
********** The command line looks like this in the new syntax:
**********
********** ValidateSamFile -I /home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam -MODE SUMMARY
**********
21:59:33.858 INFO NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/home/ubuntu/anaconda/envs/mainenv/share/gatk4-4.6.1.0-0/gatk-package-4.6.1.0-local.jar!/com/intel/gkl/native/libgkl_compression.so
[Tue Dec 02 21:59:33 EET 2025] ValidateSamFile INPUT=/home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam MODE=SUMMARY MAX_OUTPUT=100 IGNORE_WARNINGS=false VALIDATE_INDEX=true INDEX_VALIDATION_STRINGENCY=EXHAUSTIVE IS_BISULFITE_SEQUENCED=false MAX_OPEN_TEMP_FILES=8000 SKIP_MATE_VALIDATION=false VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=2 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false USE_JDK_DEFLATER=false USE_JDK_INFLATER=false
[Tue Dec 02 21:59:34 EET 2025] Executing as ubuntu@bioinfosrv on Linux 5.15.0-69-generic amd64; OpenJDK 64-Bit Server VM 17.0.11-internal+0-adhoc..src; Deflater: Intel; Inflater: Intel; Provider GCS is available; Picard version: 4.6.1.0
WARNING 2025-12-02 21:59:34 ValidateSamFile NM validation cannot be performed without the reference. All other validations will still occur.
WARNING 2025-12-02 21:59:34 SamFiles The index file /home/ubuntu/test-ALE/work/de/4c3c818d63d27b3b9fa817c92ff480/MEGAHIT-test_minigut-test_minigut.bam.bai was found by resolving the canonical path of a symlink: /home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam -> /home/ubuntu/test-ALE/work/de/4c3c818d63d27b3b9fa817c92ff480/MEGAHIT-test_minigut-test_minigut.bam
ERROR 2025-12-02 21:59:34 ValidateSamFile Value was put into PairInfoMap more than once. 7: NC_000913.3_9019
[Tue Dec 02 21:59:34 EET 2025] picard.sam.ValidateSamFile done. Elapsed time: 0.01 minutes.
Runtime.totalMemory()=285212672
To get help, see <http://broadinstitute.github.io/picard/index.html#GettingHelp>
Tool returned:
-1
Below is the output of `samtools flagstat`:
(base) ubuntu@bioinfosrv:~$ samtools flagstat /home/ubuntu/test-ALE/work/15/11b84d8b1fbe62e2535f8e86cc5e32/MEGAHIT-test_minigut-test_minigut.bam
200000 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 duplicates
199354 + 0 mapped (99.68%:-nan%)
200000 + 0 paired in sequencing
100000 + 0 read1
100000 + 0 read2
57180 + 0 properly paired (28.59%:-nan%)
198752 + 0 with itself and mate mapped
602 + 0 singletons (0.30%:-nan%)
19728 + 0 with mate mapped to a different chr
19684 + 0 with mate mapped to a different chr (mapQ>=5)Alexandru Mizeranschi
12/03/2025, 11:38 AMJim Downie
12/03/2025, 11:41 AMAlexandru Mizeranschi
12/03/2025, 11:42 AMDiego Alvarez Saravia
12/03/2025, 11:46 AMDiego Alvarez Saravia
12/03/2025, 11:46 AMAlexandru Mizeranschi
12/03/2025, 11:50 AMtest_minigut dataset:
$ zcat /home/ubuntu/test-ALE/work/c8/652777b44a5c406b9f8ebed2650024/test_minigut_1.merged.fastq.gz | grep "NC_000913.3_9229"
@NC_000913.3_9229/1
@NC_000913.3_9229/1
@NC_000913.3_9229/1
@NC_000913.3_9229/1
(base) ubuntu@bioinfosrv:~/test-ALE/work/de/4c3c818d63d27b3b9fa817c92ff480$ zcat /home/ubuntu/test-ALE/work/c8/652777b44a5c406b9f8ebed2650024/test_minigut_2.merged.fastq.gz | grep "NC_000913.3_9229"
@NC_000913.3_9229/2
@NC_000913.3_9229/2
@NC_000913.3_9229/2
@NC_000913.3_9229/2Jim Downie
12/03/2025, 11:51 AMJim Downie
12/03/2025, 11:51 AMAlexandru Mizeranschi
12/03/2025, 11:52 AMJim Downie
12/03/2025, 11:53 AMAlexandru Mizeranschi
12/03/2025, 11:59 AMtest_minigut dataset itself, unless we can assume that the orders of the reads are perfectly preserved in the R1 and R2 files. Might be easier to simply replace it with a new dataset, but I don't have any good suggestion for what this could be.Jim Downie
12/03/2025, 12:01 PMDiego Alvarez Saravia
12/03/2025, 12:02 PMDiego Alvarez Saravia
12/03/2025, 12:03 PMDiego Alvarez Saravia
12/04/2025, 12:41 PMDiego Alvarez Saravia
12/04/2025, 1:00 PMAlexandru Mizeranschi
12/04/2025, 1:03 PMDiego Alvarez Saravia
12/04/2025, 1:27 PMAlexandru Mizeranschi
12/04/2025, 1:56 PMDiego Alvarez Saravia
12/04/2025, 1:58 PMJames Fellows Yates
12/04/2025, 4:47 PMJames Fellows Yates
12/04/2025, 4:47 PMJames Fellows Yates
12/04/2025, 4:47 PMJames Fellows Yates
12/04/2025, 4:47 PMDiego Alvarez Saravia
12/04/2025, 4:48 PMJames Fellows Yates
12/04/2025, 5:18 PMAlexandru Mizeranschi
12/04/2025, 5:19 PMJames Fellows Yates
12/04/2025, 5:21 PMJames Fellows Yates
02/04/2026, 9:25 AMtest_full?James Fellows Yates
02/04/2026, 9:27 AMAlexandru Mizeranschi
02/04/2026, 9:43 AMJames Fellows Yates
02/04/2026, 9:50 AMAlexandru Mizeranschi
02/04/2026, 10:02 AMJames Fellows Yates
02/04/2026, 10:02 AMJames Fellows Yates
02/04/2026, 10:10 AMJames Fellows Yates
02/04/2026, 10:11 AMWARNING: Read CIGAR does not match sequence and/or reference alignment lengths: ERR3201942.243979_19-3799 0: seqPos 3751 seqLen: 3781 refPos 23648089935430 alignmentLen: 23656679870050
WARNING: Read CIGAR does not match sequence and/or reference alignment lengths: ERR3201942.624919_22-7296 0: seqPos 6816 seqLen: 7275 refPos 24915105290924 alignmentLen: 24923695225535
/fusion/s3/nf-core-awsmegatests/work/mag/work-b52fa53592ac9de93d3764ce69a05a711ae9f498/f0/f31f1d334d1416e58341b618e328fc/.command.sh: line 6: 84 Segmentation fault (core dumped) ALE METAMDBG-CAPES_S11-CAPES_S11.bam METAMDBG-CAPES_S11.contigs.fasta CAPES_S11-METAMDBG_ALEoutput.txt
😕Alexandru Mizeranschi
02/04/2026, 10:11 AMJames Fellows Yates
02/04/2026, 10:12 AMJames Fellows Yates
02/04/2026, 10:12 AM-profile test_fullAlexandru Mizeranschi
02/04/2026, 10:12 AMAlexandru Mizeranschi
02/04/2026, 10:14 AMAlexandru Mizeranschi
02/04/2026, 10:20 AMprocess {
withName: 'ALE' {
cpus = 4
memory = 15.GB
time = 96.h
}
}Alexandru Mizeranschi
02/04/2026, 10:21 AMnextflow run PetcuBogdan/mag -r ale_module \
-profile docker,test_full \
-c custom.config \
--skip_clipping \
--keep_phix \
--host_fasta false \
--skip_longread_filtering \
--skip_longread_qc \
--skip_spades \
--skip_spadeshybrid \
--skip_metamdbg \
--skip_flye \
--megahit_options '--no-mercy --k-list 41,61,81,101' \
--skip_prodigal \
--skip_prokka \
--skip_metaeuk \
--save_assembly_mapped_reads \
--skip_maxbin2 \
--skip_concoct \
--skip_metabinner \
--skip_comebin \
--binning_map_mode own \
--skip_gtdbtk \
--gtdb_db false \
--min_contig_size 1500 \
--exclude_unbins_from_postbinning \
--binqc_tool checkm2 \
--checkm2_db checkm2_zenodo_14897628/CheckM2_database/uniref100.KO.1.dmnd \
--outdir results-fullAlexandru Mizeranschi
02/04/2026, 10:23 AMJames Fellows Yates
02/04/2026, 10:24 AMAlexandru Mizeranschi
02/04/2026, 10:24 AMJames Fellows Yates
02/04/2026, 10:25 AMJames Fellows Yates
02/04/2026, 10:26 AMch_shortread_assemblies_for_ale = ch_assemblies.filter { meta, _assembly ->
meta.sr_platform != null && meta.sr_platform != []
}
Is apparnetly not working 🫠