You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command body threw exception:
java.lang.AssertionError: assertion failed: SequenceRecord.name is null or empty
Exception in thread "main" java.lang.AssertionError: assertion failed: SequenceRecord.name is null or empty
at scala.Predef$.assert(Predef.scala:170)
at org.bdgenomics.adam.models.SequenceRecord.<init>(SequenceDictionary.scala:287)
at org.bdgenomics.adam.models.SequenceRecord$.apply(SequenceDictionary.scala:403)
at org.bdgenomics.adam.util.ReferenceContigMap$$anonfun$1.apply(ReferenceContigMap.scala:51)
at org.bdgenomics.adam.util.ReferenceContigMap$$anonfun$1.apply(ReferenceContigMap.scala:50)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:116)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.bdgenomics.adam.util.ReferenceContigMap.<init>(ReferenceContigMap.scala:50)
at org.bdgenomics.adam.util.ReferenceContigMap$.apply(ReferenceContigMap.scala:107)
at org.bdgenomics.adam.rdd.ADAMContext$$anonfun$loadReferenceFile$1.apply(ADAMContext.scala:3010)
at org.bdgenomics.adam.rdd.ADAMContext$$anonfun$loadReferenceFile$1.apply(ADAMContext.scala:3007)
at scala.Option.fold(Option.scala:158)
at org.apache.spark.rdd.Timer.time(Timer.scala:48)
at org.bdgenomics.adam.rdd.ADAMContext.loadReferenceFile(ADAMContext.scala:3005)
at org.bdgenomics.mango.models.AnnotationMaterialization.<init>(AnnotationMaterialization.scala:42)
at org.bdgenomics.mango.cli.VizReads.initAnnotations(VizReads.scala:638)
at org.bdgenomics.mango.cli.VizReads.run(VizReads.scala:586)
at org.bdgenomics.utils.cli.BDGSparkCommand$class.run(BDGCommand.scala:55)
at org.bdgenomics.mango.cli.VizReads.run(VizReads.scala:579)
at org.bdgenomics.utils.cli.BDGCommandCompanion$class.main(BDGCommand.scala:33)
at org.bdgenomics.mango.cli.VizReads$.main(VizReads.scala:69)
at org.bdgenomics.mango.cli.VizReads.main(VizReads.scala)
This is due to the following lines in FastaConverter.parseDescriptionLine:
// is this description metadata or not? if it is metadata, it will contain "|"
if (split._1.contains('|')) {
(None, Some(dL.stripPrefix(">").trim))
If a pipe character appears in the contig name, then the NucleotideFragment doesn't get a name, but only gets a description with the name included. This seems counterintuitive.
If there is no contigName, then mango doesn't know how to handle it. It seems obvious that fasta files should always get a contigName, even if the name contains a pipe character.
The text was updated successfully, but these errors were encountered:
If I run mango-submit passing a .fasta file as reference:
The fasta file has chromosome names with pipes, e.g.:
..., etc.
Then I get this error:
This is due to the following lines in
FastaConverter.parseDescriptionLine
:If a pipe character appears in the contig name, then the NucleotideFragment doesn't get a name, but only gets a description with the name included. This seems counterintuitive.
If there is no contigName, then mango doesn't know how to handle it. It seems obvious that fasta files should always get a contigName, even if the name contains a pipe character.
The text was updated successfully, but these errors were encountered: