Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
ae86fc82
Commit
ae86fc82
authored
Apr 21, 2017
by
pjvan_thof
Browse files
Fixing fraction method
parent
2e7179ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/intervals/BedRecordList.scala
View file @
ae86fc82
...
...
@@ -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 */
def
fractionOf
(
length
:
Long
)
:
Double
=
length
.
toDouble
/
length
def
fractionOf
(
length
:
Long
)
:
Double
=
length
.
toDouble
/
this
.
length
/** This return the fraction of the regions comparing to a reference */
def
fractionOfReference
(
dict
:
SAMSequenceDictionary
)
:
Double
=
fractionOf
(
dict
.
getReferenceLength
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment