Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
ba927383
Commit
ba927383
authored
Jan 28, 2017
by
Peter van 't Hof
Browse files
Adding size and link to files
parent
a5f4c0a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/SummaryToSqlite.scala
View file @
ba927383
...
...
@@ -3,13 +3,7 @@ package nl.lumc.sasc.biopet.tools
import
java.io.File
import
nl.lumc.sasc.biopet.utils.summary.db.Schema
import
slick.driver.H2Driver.api._
import
scala.concurrent.ExecutionContext.Implicits.global
import
nl.lumc.sasc.biopet.utils.
{
ConfigUtils
,
ToolCommand
}
import
scala.concurrent.Await
import
scala.concurrent.duration.Duration
import
nl.lumc.sasc.biopet.utils.
{
ConfigUtils
,
ToolCommand
}
/**
* Created by pjvanthof on 26/01/2017.
...
...
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/summary/db/Schema.scala
View file @
ba927383
...
...
@@ -108,7 +108,7 @@ object Schema {
}
val
settings
=
TableQuery
[
Settings
]
class
Files
(
tag
:
Tag
)
extends
Table
[(
Int
,
Int
,
Option
[
Int
]
,
Option
[
Int
]
,
Option
[
Int
]
,
String
,
String
)](
tag
,
"Files"
)
{
class
Files
(
tag
:
Tag
)
extends
Table
[(
Int
,
Int
,
Option
[
Int
]
,
Option
[
Int
]
,
Option
[
Int
]
,
String
,
String
,
Boolean
,
Long
)](
tag
,
"Files"
)
{
def
pipelineId
=
column
[
Int
](
"pipelineId"
)
def
runId
=
column
[
Int
](
"runId"
)
def
moduleId
=
column
[
Option
[
Int
]](
"moduleId"
)
...
...
@@ -116,8 +116,10 @@ object Schema {
def
libraryId
=
column
[
Option
[
Int
]](
"libraryId"
)
def
path
=
column
[
String
](
"path"
)
def
md5
=
column
[
String
](
"md5"
)
def
link
=
column
[
Boolean
](
"link"
,
O
.
Default
(
false
))
def
size
=
column
[
Long
](
"size"
)
def
*
=
(
pipelineId
,
runId
,
moduleId
,
sampleId
,
libraryId
,
path
,
md5
)
def
*
=
(
pipelineId
,
runId
,
moduleId
,
sampleId
,
libraryId
,
path
,
md5
,
link
,
size
)
def
idx
=
index
(
"idx_files"
,
(
pipelineId
,
runId
,
sampleId
,
libraryId
,
path
),
unique
=
true
)
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment