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
3ff377eb
Commit
3ff377eb
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added BedToIntervalList extension
parent
a4fd6fcd
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/picard/BedToIntervalList.scala
+36
-0
36 additions, 0 deletions
...umc/sasc/biopet/extensions/picard/BedToIntervalList.scala
with
36 additions
and
0 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/picard/BedToIntervalList.scala
0 → 100644
+
36
−
0
View file @
3ff377eb
package
nl.lumc.sasc.biopet.extensions.picard
import
java.io.File
import
nl.lumc.sasc.biopet.core.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Output
,
Input
}
/**
* Created by pjvan_thof on 4/15/15.
*/
class
BedToIntervalList
(
val
root
:
Configurable
)
extends
Picard
{
javaMainClass
=
new
picard
.
util
.
BedToIntervalList
().
getClass
.
getName
@Input
(
doc
=
"Input bed file"
,
required
=
true
)
var
input
:
File
=
null
@Input
(
doc
=
"Reference dict file"
,
required
=
true
)
var
dict
:
File
=
new
File
(
config
(
"reference"
).
asString
.
stripSuffix
(
".fa"
).
stripSuffix
(
".fasta"
)
+
".dict"
)
@Output
(
doc
=
"Output interval list"
,
required
=
true
)
var
output
:
File
=
null
override
def
commandLine
=
super
.
commandLine
+
required
(
"SEQUENCE_DICTIONARY="
,
dict
,
spaceSeparated
=
false
)
+
required
(
"INPUT="
,
input
,
spaceSeparated
=
false
)
+
required
(
"OUTPUT="
,
output
,
spaceSeparated
=
false
)
}
object
BedToIntervalList
{
def
apply
(
root
:
Configurable
,
input
:
File
,
output
:
File
)
:
BedToIntervalList
=
{
val
bi
=
new
BedToIntervalList
(
root
)
bi
.
input
=
input
bi
.
output
=
output
bi
}
}
\ No newline at end of file
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