Thomas Mollica
06/02/2026, 9:17 AMDaniel Lundin
06/02/2026, 9:21 AMDaniel Lundin
06/02/2026, 9:21 AMThomas Mollica
06/02/2026, 9:25 AMThomas Mollica
06/02/2026, 9:26 AM##gff-version 3
contig_1 FIG CDS 555 797 . + 0 ID=fig|1827.669.peg.1;Name=hypothetical protein
contig_1 FIG CDS 908 1036 . - 2 ID=fig|1827.669.peg.2;Name=hypothetical protein
contig_1 FIG CDS 1127 1378 . - 2 ID=fig|1827.669.peg.3;Name=hypothetical protein
contig_1 FIG CDS 1491 1835 . + 0 ID=fig|1827.669.peg.4;Name=hypothetical protein
contig_1 FIG CDS 1989 2408 . - 0 ID=fig|1827.669.peg.5;Name=putative DNA binding protein
contig_1 FIG CDS 2825 3496 . + 2 ID=fig|1827.669.peg.6;Name=hypothetical protein
contig_1 FIG CDS 3729 4010 . - 0 ID=fig|1827.669.peg.7;Name=RelE/StbE replicon stabilization toxin
contig_1 FIG CDS 4007 4297 . - 2 ID=fig|1827.669.peg.8;Name=RelB/StbD replicon stabilization protein (antitoxin to RelE/StbE)
Thomas Mollica
06/02/2026, 9:28 AMDaniel Lundin
06/02/2026, 11:28 AM--features CDS as a parameter.Thomas Mollica
06/02/2026, 12:19 PMDaniel Lundin
06/02/2026, 12:20 PM--features CDS,RNA,tRNA.Thomas Mollica
06/02/2026, 12:23 PMnextflow run ... --feaures CDS,RNA,tRNA -params-file ... or in a nextflow config file?Daniel Lundin
06/02/2026, 12:23 PMThomas Mollica
06/02/2026, 12:24 PMThomas Mollica
06/02/2026, 1:42 PM--features CDS,tRNA,RNA in the command line but I end up with the same error
ERROR ~ Error executing process > 'NFCORE_MAGMAP:MAGMAP:FEATURECOUNTS (p96_1_cu:RNA)'
Caused by:
Process `NFCORE_MAGMAP:MAGMAP:FEATURECOUNTS (p96_1_cu:RNA)` terminated with an error exit status (255)
Command executed:
featureCounts \
-g ID -t RNA -F gtf -M \
-p \
-T 6 \
-a genomes.gz \
-s 0 \
-o p96_1_cu.RNA.featureCounts.tsv \
p96_1_cu.sorted.bam
Command exit status:
255
Command output:
(empty)
Command error:
Warning: Unknown annotation format: gtf. GTF format is used.
While the file is a .gffDaniel Lundin
06/02/2026, 1:44 PMUnknown annotation format message in our tests. Try dropping RNA from your features, keeping only CDS, to see if this works.Thomas Mollica
06/02/2026, 1:45 PMagat_convert_sp_gxf2gxf.pl as suggested earlier but I got a bunch of exon and it seems weird since it's a bacteriaDaniel Lundin
06/02/2026, 1:46 PMThomas Mollica
06/02/2026, 1:48 PM--features CDS only seems to work:Daniel Lundin
06/02/2026, 1:49 PMRNA features.Daniel Lundin
06/02/2026, 1:51 PMgrep -P "\t" bacterium.gff | cut -f 2 | sort -u to check which types of features you have, and then something like grep "RNA" bacterium.gff | head to see what the RNA rows look like.Thomas Mollica
06/02/2026, 1:55 PMfeatures we have CDS, RNA and tRNA. The RNA rows look like:
Scaffold_3 FIG RNA 566940 568416 . - . ID=fig|6666666.1056986.rna.31;Name=SSU rRNA
Scaffold_3 FIG RNA 566940 568416 . - . ID=fig|6666666.1056986.rna.31;Name=SSU rRNA
Scaffold_3 FIG RNA 566940 568416 . - . ID=fig|6666666.1056986.rna.31;Name=SSU rRNADaniel Lundin
06/02/2026, 1:56 PMDaniel Lundin
06/02/2026, 1:57 PMRNA to --features should work.Thomas Mollica
06/02/2026, 1:59 PMtRNA and RNA rows looks like this, always 3 identical linesThomas Mollica
06/02/2026, 2:01 PM--features CDS , now I am trying with --features CDS,tRNA to see if it's only RNA the issue. If so maybe rename it to rRNA could solve the issueDaniel Lundin
06/02/2026, 2:04 PMThomas Mollica
06/02/2026, 2:11 PM--features CDS,tRNA the pipeline was successful. I renamed the RNA into rRNA , do you think I should remove the triplicate or should I keep the file like the original RAST output?Daniel Lundin
06/02/2026, 2:12 PMThomas Mollica
06/02/2026, 2:20 PMRNA into rRNA I end up with the same errorDaniel Lundin
06/02/2026, 2:23 PMcd into the work directory (typically work/nn/lotsofletters/, visible in the log). There's a file called .command.sh that contains the actual command run. If you have Subread installed, you should be able to run the command, fiddle with featureCount params and see if you can get it to work.Thomas Mollica
06/02/2026, 2:35 PM.command.sh :
#!/usr/bin/env bash -C -e -u -o pipefail
featureCounts \
-g ID -t rRNA -F gtf -M \
-p \
-T 6 \
-a genomes.gz \
-s 0 \
-o p96_4_cu.rRNA.featureCounts.tsv \
p96_4_cu.sorted.bam
# capture process environment
set +u
set +e
cd "$NXF_TASK_WORKDIR"
nxf_eval_cmd() {
{
IFS=$'\n' read -r -d '' "${1}";
IFS=$'\n' read -r -d '' "${2}";
(IFS=$'\n' read -r -d '' _ERRNO_; return ${_ERRNO_});
} < <((printf '\0%s\0%d\0' "$(((({ shift 2; "${@}"; echo "${?}" 1>&3-; } | tr -d '\0' 1>&4-) 4>&2- 2>&1- | tr -d '\0' 1>&4-) 3>&1- | exit "$(cat)") 4>&1-)" "${?}" 1>&2) 2>&1)
}
echo '' > .command.env
#
nxf_eval_cmd STDOUT STDERR bash -c "featureCounts -v 2>&1 | sed 's/featureCounts v//'"
status=$?
if [ $status -eq 0 ]; then
echo nxf_out_eval_23="$STDOUT" >> .command.env
echo /nxf_out_eval_23/=exit:0 >> .command.env
else
echo nxf_out_eval_23="$STDERR" >> .command.env
echo /nxf_out_eval_23/=exit:$status >> .command.env
fi
I'm installing subread now. How could I run this command using it?Daniel Lundin
06/02/2026, 2:38 PMfeatureCounts \
-g ID -t rRNA -F gtf -M \
-p \
-T 6 \
-a genomes.gz \
-s 0 \
-o p96_4_cu.rRNA.featureCounts.tsv \
p96_4_cu.sorted.bam
(That could be specified on one line; if you do, remove the \.)Thomas Mollica
06/02/2026, 2:47 PM.command.sh is right?Daniel Lundin
06/02/2026, 2:47 PMThomas Mollica
06/02/2026, 2:53 PMERROR: no features were loaded in format GTF. The annotation format can be specified by the '-F' option, and the required feature type can be specified by the '-t' option..
But when I run the same command with -t tRNA it is running, so it's really the rRNA part that causes the issueDaniel Lundin
06/02/2026, 3:00 PMRNA entries compared to `CDS`: The 7th column are numbers for the latter, but . for the former. Prokka (the tool the pipeline uses) has the same format so it shouldn't be that. This is how my Prokka files look:
(prokka) dl@sequoia:/data/gtdb/genomes$ zgrep rRNA GCF_029167045.1_ASM2916704v1_genomic.prokka.d/GCF_029167045.1_ASM2916704v1_genomic.gff.gz |head
gnl|Prokka|CJHEBLHE_22 Prodigal:002006 CDS 9052 9837 . + 0 ID=CJHEBLHE_00472;Parent=CJHEBLHE_00472_gene;eC_number=2.1.1.-;db_xref=COG:COG0565;inference=ab initio prediction:Prodigal:002006,similar to AA sequence:UniProtKB:P44676;locus_tag=CJHEBLHE_00472;product=putative tRNA/rRNA methyltransferase;protein_id=gnl|Prokka|CJHEBLHE_00472
gnl|Prokka|CJHEBLHE_66 barrnap:0.9 rRNA 88753 88869 1.9e-14 - . ID=CJHEBLHE_01095;Parent=CJHEBLHE_01095_gene;locus_tag=CJHEBLHE_01095;product=5S ribosomal RNA
gnl|Prokka|CJHEBLHE_66 barrnap:0.9 rRNA 89034 91925 0 - . ID=CJHEBLHE_01096;Parent=CJHEBLHE_01096_gene;locus_tag=CJHEBLHE_01096;product=23S ribosomal RNA
gnl|Prokka|CJHEBLHE_66 barrnap:0.9 rRNA 92274 93742 3.9e-226 - . ID=CJHEBLHE_01098;Parent=CJHEBLHE_01098_gene;locus_tag=CJHEBLHE_01098;product=16S ribosomal RNA
(prokka) dl@sequoia:/data/gtdb/genomes$ zgrep CDS GCF_029167045.1_ASM2916704v1_genomic.prokka.d/GCF_029167045.1_ASM2916704v1_genomic.gff.gz |head -n 4
gnl|Prokka|CJHEBLHE_1 Prodigal:002006 CDS 47 988 . + 0 ID=CJHEBLHE_00001;Parent=CJHEBLHE_00001_gene;Name=scpB;gene=scpB;inference=ab initio prediction:Prodigal:002006,protein motif:HAMAP:MF_01804;locus_tag=CJHEBLHE_00001;product=Segregation and condensation protein B;protein_id=gnl|Prokka|CJHEBLHE_00001
gnl|Prokka|CJHEBLHE_1 Prodigal:002006 CDS 1022 1417 . + 0 ID=CJHEBLHE_00002;Parent=CJHEBLHE_00002_gene;inference=ab initio prediction:Prodigal:002006;locus_tag=CJHEBLHE_00002;product=hypothetical protein;protein_id=gnl|Prokka|CJHEBLHE_00002
gnl|Prokka|CJHEBLHE_1 Prodigal:002006 CDS 1454 2296 . + 0 ID=CJHEBLHE_00003;Parent=CJHEBLHE_00003_gene;inference=ab initio prediction:Prodigal:002006;locus_tag=CJHEBLHE_00003;product=hypothetical protein;protein_id=gnl|Prokka|CJHEBLHE_00003
gnl|Prokka|CJHEBLHE_1 Prodigal:002006 CDS 2443 3459 . + 0 ID=CJHEBLHE_00004;Parent=CJHEBLHE_00004_gene;inference=ab initio prediction:Prodigal:002006;locus_tag=CJHEBLHE_00004;product=hypothetical protein;protein_id=gnl|Prokka|CJHEBLHE_00004Daniel Lundin
06/02/2026, 3:00 PMThomas Mollica
06/02/2026, 3:05 PMrRNA
Scaffold_8 FIG CDS 50383 52389 . - 1 ID=fig|6666666.1056986.peg.4348;Name=Protein translocase subunit SecA
Scaffold_3 FIG tRNA 562290 562366 . - . ID=fig|6666666.1056986.rna.26;Name=tRNA-Met-CAT
Scaffold_3 FIG RNA 562420 562541 . - . ID=fig|6666666.1056986.rna.27;Name=5S rRNAThomas Mollica
06/02/2026, 3:07 PMDaniel Lundin
06/02/2026, 3:08 PMDaniel Lundin
06/02/2026, 3:09 PMThomas Mollica
06/02/2026, 3:16 PMDaniel Lundin
06/02/2026, 3:17 PMThomas Mollica
06/02/2026, 3:20 PMDaniel Lundin
06/02/2026, 3:21 PMThomas Mollica
06/02/2026, 3:26 PMmagmap.overall.stats and it the number of mapped index is only half of the n_post_trimming , but mostly CDS. Do you think it's mostly due because the genome annotated by RAST might not be a reference genome and not so complete?
sample n_post_trimming idxs_n_mapped idxs_n_unmapped CDS tRNA
p96_1_ctr 19147680 9181044 916988 8908731 261
p96_1_cu 14965590 9470574 875426 9209124 292
p96_2_ctr 31405522 9963401 769139 9770194 260
p96_2_cu 19838230 10837155 985873 10550935 374
p96_3_ctr 18940164 9334830 1010148 9067306 240
p96_3_cu 16695126 9540558 882514 9289162 329
p96_4_ctr 17218266 9475844 979006 9198694 237
p96_4_cu 23705058 13001861 1198417 12674375 476Daniel Lundin
06/02/2026, 3:29 PMidxs_n_mapped with CDS. It might be that n_post_trimming counts all reads, but that the other two counts pairs, i.e. half as many. The other alternative is that less than half actually map to the contigs. I need to investigate this... If I were you, I wouldn't worry about this.Thomas Mollica
06/02/2026, 3:34 PMDaniel Lundin
06/02/2026, 3:35 PM