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
b17079d8
Commit
b17079d8
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added samtools sort
parent
3482754f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-extentsions/src/main/scala/nl/lumc/sasc/biopet/extensions/samtools/SamtoolsSort.scala
+30
-0
30 additions, 0 deletions
...l/lumc/sasc/biopet/extensions/samtools/SamtoolsSort.scala
with
30 additions
and
0 deletions
public/biopet-extentsions/src/main/scala/nl/lumc/sasc/biopet/extensions/samtools/SamtoolsSort.scala
0 → 100644
+
30
−
0
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
))
}
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