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
7d08761a
Commit
7d08761a
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added outFileNamePrefix option
parent
d46c0d7d
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
mapping/src/main/java/nl/lumc/sasc/biopet/wrappers/aligners/Star.scala
+12
-8
12 additions, 8 deletions
...ain/java/nl/lumc/sasc/biopet/wrappers/aligners/Star.scala
with
12 additions
and
8 deletions
mapping/src/main/java/nl/lumc/sasc/biopet/wrappers/aligners/Star.scala
+
12
−
8
View file @
7d08761a
...
...
@@ -23,6 +23,7 @@ class Star(val globalConfig: Config) extends CommandLineFunction {
@Output
(
doc
=
"Output tab file"
,
required
=
false
)
var
outputTab
:
File
=
_
@Input
(
doc
=
"sjdbFileChrStartEnd file"
,
required
=
false
)
var
sjdbFileChrStartEnd
:
File
=
_
@Argument
(
doc
=
"sjdbOverhang"
,
required
=
false
)
var
sjdbOverhang
:
Int
=
_
@Argument
(
doc
=
"outFileNamePrefix"
,
required
=
false
)
var
outFileNamePrefix
:
String
=
_
@Input
(
doc
=
"deps"
,
required
=
false
)
var
deps
:
List
[
File
]
=
Nil
@Output
(
doc
=
"Output genome file"
,
required
=
false
)
var
outputGenome
:
File
=
_
...
...
@@ -31,17 +32,20 @@ class Star(val globalConfig: Config) extends CommandLineFunction {
jobResourceRequests
:+=
"h_vmem="
+
config
.
getAsString
(
"vmem"
,
"6G"
)
nCoresRequest
=
Option
(
config
.
getThreads
(
8
))
addJobReportBinding
(
"version"
,
"NA"
)
def
init
()
{
this
.
addJobReportBinding
(
"version"
,
"NA"
)
if
(
outFileNamePrefix
!=
null
&&
!
outFileNamePrefix
.
endsWith
(
"."
))
outFileNamePrefix
+=
"."
if
(!
outputDir
.
endsWith
(
"/"
))
outputDir
+=
"/"
val
prefix
=
if
(
outFileNamePrefix
!=
null
)
outputDir
+
outFileNamePrefix
else
outputDir
if
(
runmode
==
null
)
{
outputSam
=
new
File
(
outputDir
+
"
/
Aligned.out.sam"
)
outputTab
=
new
File
(
outputDir
+
"
/
SJ.out.tab"
)
outputSam
=
new
File
(
prefix
+
"Aligned.out.sam"
)
outputTab
=
new
File
(
prefix
+
"SJ.out.tab"
)
}
else
if
(
runmode
==
"genomeGenerate"
)
{
genomeDir
=
outputDir
outputGenome
=
new
File
(
genomeDir
+
"
/
Genome"
)
outputSA
=
new
File
(
genomeDir
+
"
/
SA"
)
outputSAindex
=
new
File
(
genomeDir
+
"
/
SAindex"
)
outputGenome
=
new
File
(
prefix
+
"Genome"
)
outputSA
=
new
File
(
prefix
+
"SA"
)
outputSAindex
=
new
File
(
prefix
+
"SAindex"
)
}
}
...
...
@@ -50,14 +54,14 @@ class Star(val globalConfig: Config) extends CommandLineFunction {
var
cmd
:
String
=
required
(
"cd"
,
outputDir
)
+
"&&"
+
required
(
star_exe
)
if
(
runmode
!=
null
&&
runmode
==
"genomeGenerate"
)
{
// Create index
cmd
+=
required
(
"--runMode"
,
runmode
)
+
//required("--genomeDir", genomeDir) +
required
(
"--genomeFastaFiles"
,
referenceFile
)
}
else
{
// Aligner
cmd
+=
required
(
"--readFilesIn"
,
R1
)
+
optional
(
R2
)
}
cmd
+=
required
(
"--genomeDir"
,
genomeDir
)
+
optional
(
"--sjdbFileChrStartEnd"
,
sjdbFileChrStartEnd
)
+
optional
(
"--runThreadN"
,
nCoresRequest
)
optional
(
"--runThreadN"
,
nCoresRequest
)
+
optional
(
"--outFileNamePrefix"
,
outFileNamePrefix
)
if
(
sjdbOverhang
>
0
)
cmd
+=
optional
(
"--sjdbOverhang"
,
sjdbOverhang
)
return
cmd
...
...
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