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
b17079d8
Commit
b17079d8
authored
Sep 22, 2015
by
Peter van 't Hof
Browse files
Added samtools sort
parent
3482754f
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-extentsions/src/main/scala/nl/lumc/sasc/biopet/extensions/samtools/SamtoolsSort.scala
0 → 100644
View file @
b17079d8
package
nl.lumc.sasc.biopet.extensions.samtools
import
java.io.File
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Output
,
Input
}
/**
* Created by pjvanthof on 22/09/15.
*/
class
SamtoolsSort
(
val
root
:
Configurable
)
extends
Samtools
{
@Input
(
required
=
true
)
var
input
:
File
=
_
@Output
var
output
:
File
=
_
val
compresion
:
Option
[
Int
]
=
config
(
"l"
)
val
outputFormat
:
Option
[
String
]
=
config
(
"O"
)
val
sortByName
:
Boolean
=
config
(
"sort_by_name"
,
default
=
false
)
val
prefix
:
String
=
config
(
"prefix"
,
default
=
new
File
(
qSettings
.
tempDirectory
,
output
.
getAbsolutePath
))
def
cmdLine
=
optional
(
"-m"
,
(
coreMemeory
+
"G"
))
+
optional
(
"-@"
,
threads
)
+
optional
(
"-O"
,
outputFormat
)
+
conditional
(
sortByName
,
"-n"
)
+
(
if
(
outputAsStsout
)
""
else
required
(
"-o"
,
output
))
+
(
if
(
inputAsStdin
)
""
else
required
(
input
))
}
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