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
2e9fffdb
Commit
2e9fffdb
authored
9 years ago
by
Wai Yi Leung
Browse files
Options
Downloads
Patches
Plain Diff
PindelVCF wrapper
parent
674e3168
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-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/pindel/PindelVCF.scala
+90
-0
90 additions, 0 deletions
...ala/nl/lumc/sasc/biopet/extensions/pindel/PindelVCF.scala
with
90 additions
and
0 deletions
public/biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/pindel/PindelVCF.scala
0 → 100644
+
90
−
0
View file @
2e9fffdb
package
nl.lumc.sasc.biopet.extensions.pindel
import
java.io.File
import
nl.lumc.sasc.biopet.core.
{
Version
,
Reference
,
BiopetCommandLineFunction
}
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Output
,
Input
}
/**
* Created by wyleung on 20-1-16.
*/
class
PindelVCF
(
val
root
:
Configurable
)
extends
BiopetCommandLineFunction
with
Reference
with
Version
{
executable
=
config
(
"exe"
,
default
=
"pindel2vcf"
)
override
def
defaultCoreMemory
=
2.0
override
def
defaultThreads
=
1
def
versionRegex
=
"""Version:? (.*)"""
.
r
override
def
versionExitcode
=
List
(
1
)
def
versionCommand
=
executable
+
" -h"
/**
* Required parameters
*/
@Input
var
reference
:
File
=
referenceFasta
@Output
var
outputVCF
:
File
=
_
var
referenceDate
:
String
=
config
(
"reference_date"
)
override
def
beforeGraph
:
Unit
=
{
if
(
reference
==
null
)
reference
=
referenceFasta
()
}
var
pindelOutput
:
Option
[
File
]
=
config
(
"pindel_output"
)
var
pindelOutputRoot
:
Option
[
File
]
=
config
(
"pindel_output_root"
)
var
chromosome
:
Option
[
String
]
=
config
(
"chromosome"
)
var
windowSize
:
Option
[
Int
]
=
config
(
"window_size"
)
var
minCoverage
:
Option
[
Int
]
=
config
(
"min_coverage"
)
var
hetCutoff
:
Option
[
Float
]
=
config
(
"het_cutoff"
)
var
homCutoff
:
Option
[
Float
]
=
config
(
"hom_cutoff"
)
var
minSize
:
Option
[
Int
]
=
config
(
"min_size"
)
var
maxSize
:
Option
[
Int
]
=
config
(
"max_size"
)
var
bothStrandSupported
:
Boolean
=
config
(
"both_strand_supported"
,
default
=
false
)
var
minSupportingSamples
:
Option
[
Int
]
=
config
(
"min_supporting_samples"
)
var
minSupportingReads
:
Option
[
Int
]
=
config
(
"min_supporting_reads"
)
var
maxSupportingReads
:
Option
[
Int
]
=
config
(
"max_supporting_reads"
)
var
regionStart
:
Option
[
Int
]
=
config
(
"region_start"
)
var
regionEnd
:
Option
[
Int
]
=
config
(
"region_end"
)
var
maxInternalRepeats
:
Option
[
Int
]
=
config
(
"max_internal_repeats"
)
var
compactOutLimit
:
Option
[
Int
]
=
config
(
"compact_output_limit"
)
var
maxInternalRepeatLength
:
Option
[
Int
]
=
config
(
"max_internal_repeatlength"
)
var
maxPostindelRepeats
:
Option
[
Int
]
=
config
(
"max_postindel_repeat"
)
var
maxPostindelRepeatLength
:
Option
[
Int
]
=
config
(
"max_postindel_repeatlength"
)
var
onlyBalancedSamples
:
Boolean
=
config
(
"only_balanced_samples"
)
var
somaticP
:
Boolean
=
config
(
"somatic_p"
)
var
minimumStrandSupport
:
Option
[
Int
]
=
config
(
"minimum_strand_support"
)
var
gatkCompatible
:
Boolean
=
config
(
"gatk_compatible"
)
def
cmdLine
=
required
(
executable
)
+
required
(
"--reference_name"
,
referenceSpecies
)
+
required
(
"--reference_date"
,
referenceDate
)
+
optional
(
"--pindel_output"
,
pindelOutput
)
+
optional
(
"--pindel_output_root"
,
pindelOutputRoot
)
+
required
(
"--vcf"
,
outputVCF
)
+
optional
(
"--chromosome"
,
chromosome
)
+
optional
(
"--window_size"
,
windowSize
)
+
optional
(
"--min_coverage"
,
minCoverage
)
+
optional
(
"--het_cutoff"
,
hetCutoff
)
+
optional
(
"--hom_cutoff"
,
homCutoff
)
+
optional
(
"--min_size"
,
minSize
)
+
optional
(
"--max_size"
,
maxSize
)
+
conditional
(
bothStrandSupported
,
"--both_strands_supported"
)
+
optional
(
"--min_supporting_samples"
,
minSupportingSamples
)
+
optional
(
"--min_supporting_reads"
,
minSupportingReads
)
+
optional
(
"--max_supporting_reads"
,
maxSupportingReads
)
+
optional
(
"--region_start"
,
regionStart
)
+
optional
(
"--region_end"
,
regionEnd
)
+
optional
(
"--max_internal_repeats"
,
maxInternalRepeats
)
+
optional
(
"--compact_output_limit"
,
compactOutLimit
)
+
optional
(
"--max_internal_repeatlength"
,
maxInternalRepeatLength
)
+
optional
(
"--max_postindel_repeats"
,
maxPostindelRepeats
)
+
optional
(
"--max_postindel_repeatlength"
,
maxPostindelRepeatLength
)
+
conditional
(
onlyBalancedSamples
,
"--only_balanced_samples"
)
+
conditional
(
somaticP
,
"--somatic_p"
)
+
optional
(
"--minimum_strand_support"
,
minimumStrandSupport
)
+
conditional
(
gatkCompatible
,
"--gatk_compatible"
)
}
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