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
d190b9e2
Commit
d190b9e2
authored
9 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Add nl.lumc.sasc.biopet package object to store package-wide information
parent
9133b3b4
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/package.scala
+43
-0
43 additions, 0 deletions
...ramework/src/main/scala/nl/lumc/sasc/biopet/package.scala
with
43 additions
and
0 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/package.scala
0 → 100644
+
43
−
0
View file @
d190b9e2
/**
* 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
import
java.util.Properties
/**
* Common values and functions for the biopet package
*
* @author Wibowo Arindrarto <w.arindrarto@lumc.nl>
*/
package
object
biopet
{
/** Latest git commit hash, with '-dirty' appended if any uncommited changes were present */
val
LastCommitHash
:
String
=
{
val
prop
=
new
Properties
()
prop
.
load
(
getClass
.
getClassLoader
.
getResourceAsStream
(
"git.properties"
))
val
hash
=
prop
.
getProperty
(
"git.commit.id.abbrev"
)
if
(
prop
.
getProperty
(
"git.commit.id.describe-short"
).
endsWith
(
"-dirty"
))
s
"$hash-dirty"
else
hash
}
/** Package version */
// needs the Option here since the value is `null` when we run from an unpackaged JAR
val
Version
:
String
=
Option
(
getClass
.
getPackage
.
getImplementationVersion
).
getOrElse
(
"unpackaged"
)
/** Full version (raw version and latest commit hash) */
val
FullVersion
:
String
=
s
"$Version ($LastCommitHash)"
}
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