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
ee058d6a
Commit
ee058d6a
authored
10 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Add ReorderSam (to ensure correct sam header ordering)
parent
119ff147
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/ReorderSam.scala
+49
-0
49 additions, 0 deletions
...la/nl/lumc/sasc/biopet/extensions/picard/ReorderSam.scala
with
49 additions
and
0 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/picard/ReorderSam.scala
0 → 100644
+
49
−
0
View file @
ee058d6a
/**
* Biopet is built on top of GATK Queue for building bioinformatic
* pipelines. It is mainly intended to support LUMC SHARK cluster which is running
* SGE. But other types of HPC that are supported by GATK Queue (such as PBS)
* should also be able to execute Biopet tools and pipelines.
*
* Copyright 2014 Sequencing Analysis Support Core - Leiden University Medical Center
*
* Contact us at: sasc@lumc.nl
*
* A dual licensing mode is applied. The source code within this project that are
* not part of GATK Queue is freely available for non-commercial use under an AGPL
* license; For commercial users or users who do not want to follow the AGPL
* license, please contact us to obtain a separate license.
*/
package
nl.lumc.sasc.biopet.extensions.picard
import
java.io.File
import
org.broadinstitute.gatk.utils.commandline.
{
Argument
,
Input
,
Output
}
import
nl.lumc.sasc.biopet.core.config.Configurable
class
ReorderSam
(
val
root
:
Configurable
)
extends
Picard
{
javaMainClass
=
"picard.sam.GatherBamFiles"
@Input
(
doc
=
"Input SAM or BAM file"
,
required
=
true
)
var
input
:
File
=
null
@Input
(
doc
=
"Reference sequence to reorder reads to match"
,
required
=
true
)
var
reference
:
File
=
null
@Output
(
doc
=
"Output SAM or BAM file"
,
required
=
true
)
var
output
:
File
=
null
@Argument
(
doc
=
"Allow incomplete dict concordance"
,
required
=
false
)
var
allowIncompleteDictConcordance
:
Boolean
=
config
(
"allow_incomplete_dict_concordance"
,
default
=
false
)
@Argument
(
doc
=
"Allow contig length discordance"
,
required
=
false
)
var
allowContigLengthDiscordance
:
Boolean
=
config
(
"allow_contig_length_discordance"
,
default
=
false
)
override
def
commandLine
=
super
.
commandLine
+
conditional
(
allowIncompleteDictConcordance
,
"ALLOW_INCOMPLETE_DICT_CONCORDANCE=TRUE"
)
+
conditional
(
allowContigLengthDiscordance
,
"ALLOW_CONTIG_LENGTH_DISCORDANCE=TRUE"
)
+
required
(
"REFERENCE="
,
reference
,
spaceSeparated
=
false
)
+
required
(
"INPUT="
,
input
,
spaceSeparated
=
false
)
+
required
(
"OUTPUT="
,
output
,
spaceSeparated
=
false
)
}
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