Commit b79725a1 authored by pjvan_thof's avatar pjvan_thof

Fixing fraction method (again)

parent ae86fc82
...@@ -113,7 +113,7 @@ case class BedRecordList(val chrRecords: Map[String, List[BedRecord]], val heade ...@@ -113,7 +113,7 @@ case class BedRecordList(val chrRecords: Map[String, List[BedRecord]], val heade
} }
/** This return the fraction of the regions comparing to a length */ /** This return the fraction of the regions comparing to a length */
def fractionOf(length: Long): Double = length.toDouble / this.length def fractionOf(length: Long): Double = this.length.toDouble / length.toDouble
/** This return the fraction of the regions comparing to a reference */ /** This return the fraction of the regions comparing to a reference */
def fractionOfReference(dict: SAMSequenceDictionary): Double = fractionOf(dict.getReferenceLength) def fractionOfReference(dict: SAMSequenceDictionary): Double = fractionOf(dict.getReferenceLength)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment