Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
ae86fc82
Commit
ae86fc82
authored
Apr 21, 2017
by
pjvan_thof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing fraction method
parent
2e7179ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/intervals/BedRecordList.scala
...a/nl/lumc/sasc/biopet/utils/intervals/BedRecordList.scala
+1
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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