KneadData Trimmomatic Default v0.12.3

Hi all,

First of all, I’d like to express my appreciation to the biobakery team for all the fantastic tools for microbiome research!

I am starting to use KneadData to do QC on my shotgun metagenomic dataset. My KneadData version is v0.12.3. In the default setting of kneaddata (from kneaddata --help), the default argument for --trimomatic-options was set as

DEFAULT : MINLEN:60 ILLUMINACLIP:/-SE.fa:2:30:10 SLIDINGWINDOW:4:20 MINLEN:50. 

However, when running it with the default setting (not specifying the flag at all) with this command:

kneaddata --unpaired mysample.fq.gz --reference-db refdb --output .

The log file of this completed run showed

INFO: Execute command: java -Xmx500m -jar ... MINLEN:60 ILLUMINACLIP:/apps/software/kneaddata/0.12.3-foss-2024a/lib/python3.12/site-packages/kneaddata/adapters/NexteraPE-PE.fa:2:30:10 SLIDINGWINDOW:4:20 MINLEN:75

and

DEBUG: b"TrimmomaticSE: Started with arguments ... MINLEN:60 ILLUMINACLIP:/apps/software/kneaddata/0.12.3-foss-2024a/lib/python3.12/site-packages/kneaddata/adapters/NexteraPE-PE.fa:2:30:10 SLIDINGWINDOW:4:20 MINLEN:75

My questions are:

  1. Why are the default settings that are actually used different from the command description?
  2. With two MINLEN specified, which one was actually used in Trimmomatic?
  3. I was calling KneadData with single end and expected Illumina adapters/related sequences in the argument, but instead, the trimmomatic command and debug message indicated that Nextera PE was used. Was this behavior expected (SE vs PE)? And are Nextera adapters then the default for KneadData in general?

Feel free to let me know if you need more contexts!

Natasha