Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
e929b76a
Commit
e929b76a
authored
10 years ago
by
Wai Yi Leung
Browse files
Options
Downloads
Patches
Plain Diff
Make setting the tdf/wig less restrictive and no default names anymore
parent
b2da50cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
+6
-4
6 additions, 4 deletions
.../lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
with
6 additions
and
4 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
+
6
−
4
View file @
e929b76a
package
nl.lumc.sasc.biopet.extensions.igvtools
import
java.nio.file.InvalidPathException
import
nl.lumc.sasc.biopet.core.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Input
,
Output
,
Argument
}
import
java.io.
{
FileNotFoundException
,
File
}
...
...
@@ -20,10 +22,10 @@ class IGVToolsCount(val root: Configurable) extends IGVTools {
var
genomeChromSizes
:
File
=
_
@Output
protected
var
tdf
:
Option
[
File
]
=
_
var
tdf
:
Option
[
File
]
=
_
@Output
protected
var
wig
:
Option
[
File
]
=
_
var
wig
:
Option
[
File
]
=
_
var
maxZoom
:
Option
[
Int
]
=
config
(
"maxZoom"
)
var
windowSize
:
Option
[
Int
]
=
config
(
"windowSize"
)
...
...
@@ -46,8 +48,8 @@ class IGVToolsCount(val root: Configurable) extends IGVTools {
super
.
afterGraph
if
(!
input
.
exists
())
throw
new
FileNotFoundException
(
"Input bam is required for IGVToolsCount"
)
this
.
tdf
=
Some
(
new
File
(
input
.
getAbsolutePath
+
".tdf
"
)
)
this
.
wig
=
Some
(
new
File
(
input
.
getAbsolutePath
.
stripSuffix
(
".bam"
)
+
".wig
"
)
)
if
(!
wig
.
isEmpty
&&
!
wig
.
get
.
getAbsolutePath
.
endsWith
(
".wig"
))
throw
new
IllegalArgumentException
(
"Wiggle file should have a .wig file-extension
"
)
if
(!
tdf
.
isEmpty
&&
!
tdf
.
get
.
getAbsolutePath
.
endsWith
(
".tdf"
))
throw
new
IllegalArgumentException
(
"TDF file should have a .tdf file-extension
"
)
}
def
cmdLine
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment