I am trying to use Ptolemy extract (in addition to Panaroo for Bacterial Pangenome) but I have an error when I am running the following command on my gff3 file obtained with Bakta:
(Mon Nov 25 17:32:57 CET 2024): Found 1 genome entries
(Mon Nov 25 17:32:57 CET 2024): --Verifying paths
(Mon Nov 25 17:32:57 CET 2024): --test
(Mon Nov 25 17:32:57 CET 2024): ----Found 265 ORFs
(Mon Nov 25 17:32:57 CET 2024): ----Processing sequence contig_1
(Mon Nov 25 17:32:57 CET 2024): ----Curated 263 ORFs and 180 intergenic sequences
(Mon Nov 25 17:32:58 CET 2024): ----Processing sequence contig_86
Exception in thread "main" java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:428)
at scala.collection.immutable.Nil$.head(List.scala:425)
at utilities.GFFutils._parseORFs$1(GFFutils.scala:264)
at utilities.GFFutils.parseORFs(GFFutils.scala:302)
at utilities.GFFutils.parseORFs$(GFFutils.scala:131)
at build_db.Extract$.parseORFs(Extract.scala:19)
at build_db.Extract$.$anonfun$extract$4(Extract.scala:97)
at build_db.Extract$.$anonfun$extract$4$adapted(Extract.scala:97)
at build_db.Extract$.$anonfun$extract$10(Extract.scala:170)
at build_db.Extract$.$anonfun$extract$10$adapted(Extract.scala:142)
at scala.collection.immutable.List.foreach(List.scala:389)
at build_db.Extract$.extract(Extract.scala:142)
at build_db.Extract$.$anonfun$main$1(Extract.scala:69)
at build_db.Extract$.$anonfun$main$1$adapted(Extract.scala:65)
at scala.Option.map(Option.scala:146)
at build_db.Extract$.main(Extract.scala:65)
at cli.Ptolemy$.main(Ptolemy.scala:34)
at cli.Ptolemy.main(Ptolemy.scala)
Any idea how to fix the problem without modify the function _parseORFs in the GFFutils.scala file?
Hello,
I am trying to use Ptolemy extract (in addition to Panaroo for Bacterial Pangenome) but I have an error when I am running the following command on my gff3 file obtained with Bakta:
The problem seems to come when a contig in a gff has only one CDS:
The error message is:
Any idea how to fix the problem without modify the function
_parseORFs
in theGFFutils.scala
file?Thanks
Regards
Nicolas