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
88389008
Commit
88389008
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Extract gtf when needed
parent
d03b8be7
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
generate-indexes/src/main/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/GenerateIndexes.scala
+11
-8
11 additions, 8 deletions
...sc/biopet/pipelines/generateindexes/GenerateIndexes.scala
with
11 additions
and
8 deletions
generate-indexes/src/main/scala/nl/lumc/sasc/biopet/pipelines/generateindexes/GenerateIndexes.scala
+
11
−
8
View file @
88389008
...
...
@@ -15,13 +15,13 @@
*/
package
nl.lumc.sasc.biopet.pipelines.generateindexes
import
java.io.
{
File
,
PrintWriter
}
import
java.io.
{
File
,
PrintWriter
}
import
java.util
import
nl.lumc.sasc.biopet.core.extensions.Md5sum
import
nl.lumc.sasc.biopet.core.
{
BiopetQScript
,
PipelineCommand
}
import
nl.lumc.sasc.biopet.core.
{
BiopetQScript
,
PipelineCommand
}
import
nl.lumc.sasc.biopet.extensions._
import
nl.lumc.sasc.biopet.extensions.bowtie.
{
Bowtie2Build
,
BowtieBuild
}
import
nl.lumc.sasc.biopet.extensions.bowtie.
{
Bowtie2Build
,
BowtieBuild
}
import
nl.lumc.sasc.biopet.extensions.bwa.BwaIndex
import
nl.lumc.sasc.biopet.extensions.gatk.CombineVariants
import
nl.lumc.sasc.biopet.extensions.gmap.GmapBuild
...
...
@@ -61,9 +61,9 @@ class GenerateIndexes(val root: Configurable) extends QScript with BiopetQScript
val
genomeConfig
=
ConfigUtils
.
any2map
(
c
)
val
fastaUris
=
genomeConfig
.
getOrElse
(
"fasta_uri"
,
throw
new
IllegalArgumentException
(
s
"No fasta_uri found for $speciesName - $genomeName"
))
match
{
case
a
:
Traversable
[
_
]
=>
a
.
map
(
_
.
toString
).
toArray
case
a
:
Traversable
[
_
]
=>
a
.
map
(
_
.
toString
).
toArray
case
a
:
util.ArrayList
[
_
]
=>
a
.
map
(
_
.
toString
).
toArray
case
a
=>
Array
(
a
.
toString
)
case
a
=>
Array
(
a
.
toString
)
}
val
genomeDir
=
new
File
(
speciesDir
,
genomeName
)
...
...
@@ -197,17 +197,20 @@ class GenerateIndexes(val root: Configurable) extends QScript with BiopetQScript
}
val
gtfFile
:
Option
[
File
]
=
genomeConfig
.
get
(
"gtf_uri"
).
map
{
gtfUri
=>
val
outputFile
=
new
File
(
annotationDir
,
new
File
(
gtfUri
.
toString
).
getName
.
stripSuffix
(
".gz"
))
val
curl
=
new
Curl
(
this
)
curl
.
url
=
gtfUri
.
toString
curl
.
output
=
new
File
(
annotationDir
,
new
File
(
curl
.
url
).
getNam
e
)
add
(
curl
)
if
(
gtfUri
.
toString
.
endsWith
(
".gz"
))
add
(
curl
|
Zcat
(
this
)
>
outputFil
e
)
else
add
(
curl
>
outputFile
)
outputConfig
+=
"annotation_gtf"
->
curl
.
output
curl
.
output
output
File
}
val
refFlatFile
:
Option
[
File
]
=
gtfFile
.
map
{
gtf
=>
val
refFlat
=
new
File
(
gtf
+
".refFlat"
)
//TODO: gtf to refFlat conversion
outputConfig
+=
"ribosome_refflat"
->
refFlat
refFlat
}
...
...
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