Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
b1f87b25
Commit
b1f87b25
authored
Jan 28, 2015
by
Wai Yi Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extracted IGVTools from Yamsvp
parent
c2fb1f5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVTools.scala
...la/nl/lumc/sasc/biopet/extensions/igvtools/IGVTools.scala
+14
-0
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
.../lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
+35
-0
No files found.
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVTools.scala
0 → 100644
View file @
b1f87b25
/**
* Created by wyleung on 5-1-15.
*/
package
nl.lumc.sasc.biopet.extensions.igvtools
import
nl.lumc.sasc.biopet.core.BiopetCommandLineFunction
abstract
class
IGVTools
extends
BiopetCommandLineFunction
{
executable
=
config
(
"exe"
,
default
=
"igvtools"
,
submodule
=
"igvtools"
,
freeVar
=
false
)
override
def
versionCommand
=
executable
+
" version"
override
val
versionRegex
=
"""IGV Version: ([\d\.]) .*"""
.
r
override
val
versionExitcode
=
List
(
0
)
}
\ No newline at end of file
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala
0 → 100644
View file @
b1f87b25
package
nl.lumc.sasc.biopet.extensions.igvtools
import
nl.lumc.sasc.biopet.core.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Input
,
Output
,
Argument
}
import
java.io.File
class
IGVToolsCount
(
val
root
:
Configurable
)
extends
IGVTools
{
@Input
(
doc
=
"Bam File"
)
var
input
:
File
=
_
@Argument
(
doc
=
"Genome name"
)
var
genomename
:
String
=
_
@Output
(
doc
=
"output File"
)
var
output
:
File
=
_
def
cmdLine
=
required
(
executable
)
+
required
(
"count"
)
+
required
(
input
)
+
required
(
output
)
+
required
(
genomename
)
}
object
IGVToolsCount
{
def
apply
(
root
:
Configurable
,
input
:
File
,
output
:
File
,
genomename
:
String
)
:
IGVToolsCount
=
{
val
counting
=
new
IGVToolsCount
(
root
)
counting
.
input
=
input
counting
.
output
=
output
counting
.
genomename
=
genomename
return
counting
}
def
apply
(
root
:
Configurable
,
input
:
File
,
genomename
:
String
)
:
IGVToolsCount
=
{
return
apply
(
root
,
input
,
new
File
(
swapExtension
(
input
.
getCanonicalPath
)),
genomename
)
}
private
def
swapExtension
(
inputFile
:
String
)
=
inputFile
+
".tdf"
}
\ No newline at end of file
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