Skip to content
GitLab
Menu
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
31c70f58
Commit
31c70f58
authored
Oct 09, 2015
by
Sander Bollen
Browse files
extensions arround extensions!
parent
0b31238b
Changes
4
Hide whitespace changes
Inline
Side-by-side
public/biopet-extentsions/src/main/scala/nl/lumc/sasc/biopet/extensions/manwe/ManweDataSourcesDownload.scala
View file @
31c70f58
...
...
@@ -9,10 +9,12 @@ import org.broadinstitute.gatk.utils.commandline.Argument
class
ManweDataSourcesDownload
(
val
root
:
Configurable
)
extends
Manwe
{
@Argument
(
doc
=
"uri to data source to download"
)
var
uri
:
Option
[
String
]
=
_
var
uri
:
String
=
_
def
subCommand
=
{
required
(
"data-sources"
)
+
required
(
"download"
)
+
required
(
uri
)
}
this
.
deps
}
public/biopet-extentsions/src/main/scala/nl/lumc/sasc/biopet/extensions/manwe/ManweSamplesActivate.scala
View file @
31c70f58
...
...
@@ -11,7 +11,7 @@ import org.broadinstitute.gatk.utils.commandline.{ Argument, Output }
class
ManweSamplesActivate
(
val
root
:
Configurable
)
extends
Manwe
{
@Argument
(
doc
=
"uri to sample to activate"
)
var
uri
:
Option
[
String
]
=
_
var
uri
:
String
=
_
def
subCommand
=
{
required
(
"samples"
)
+
required
(
"activate"
)
+
...
...
public/toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/ManweActivateAfterAnnotImport.scala
0 → 100644
View file @
31c70f58
package
nl.lumc.sasc.biopet.pipelines.toucan
import
nl.lumc.sasc.biopet.extensions.manwe.
{
ManweAnnotateVcf
,
ManweSamplesActivate
,
ManweSamplesImport
}
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
scala.io.Source
/**
* Created by ahbbollen on 9-10-15.
* Wrapper for manwe activate after importing and annotating
*/
class
ManweActivateAfterAnnotImport
(
root
:
Configurable
,
annotate
:
ManweAnnotateVcf
,
imported
:
ManweSamplesImport
)
extends
ManweSamplesActivate
(
root
)
{
override
def
beforeGraph
:
Unit
=
{
super
.
beforeGraph
require
(
annotate
!=
null
,
"Annotate should be defined"
)
require
(
imported
!=
null
,
"Imported should be defined"
)
this
.
deps
:+=
annotate
.
jobOutputFile
this
.
deps
:+=
imported
.
jobOutputFile
}
override
def
beforeCmd
:
Unit
=
{
super
.
beforeCmd
val
reader
=
Source
.
fromFile
(
imported
.
output
)
this
.
uri
=
reader
.
getLines
().
toList
.
head
reader
.
close
()
}
}
public/toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/ManweDownloadAfterAnnotate.scala
0 → 100644
View file @
31c70f58
package
nl.lumc.sasc.biopet.pipelines.toucan
import
java.io.File
import
nl.lumc.sasc.biopet.extensions.manwe.
{
ManweAnnotateVcf
,
ManweDataSourcesDownload
}
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
scala.io.Source
/**
* Created by ahbbollen on 9-10-15.
*/
class
ManweDownloadAfterAnnotate
(
root
:
Configurable
,
annotate
:
ManweAnnotateVcf
)
extends
ManweDataSourcesDownload
(
root
)
{
override
def
beforeGraph
:
Unit
=
{
super
.
beforeGraph
require
(
annotate
!=
null
,
"Annotate should be defined"
)
this
.
deps
:+=
annotate
.
jobOutputFile
}
override
def
beforeCmd
:
Unit
=
{
super
.
beforeCmd
val
reader
=
Source
.
fromFile
(
annotate
.
output
)
this
.
uri
=
reader
.
getLines
().
toList
.
head
reader
.
close
()
}
}
Write
Preview
Supports
Markdown
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