Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
d7954796
Commit
d7954796
authored
12 years ago
by
kohleman
Browse files
Options
Downloads
Patches
Plain Diff
- added verbose mode which writes out to stdout
SVN: 27556
parent
8d89108f
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
deep_sequencing_unit/source/Jython/createSampleSheet_nov.py
+8
-3
8 additions, 3 deletions
deep_sequencing_unit/source/Jython/createSampleSheet_nov.py
with
8 additions
and
3 deletions
deep_sequencing_unit/source/Jython/createSampleSheet_nov.py
+
8
−
3
View file @
d7954796
...
@@ -114,6 +114,11 @@ def parseOptions(logger):
...
@@ -114,6 +114,11 @@ def parseOptions(logger):
default
=
False
,
default
=
False
,
action
=
'
store_true
'
,
action
=
'
store_true
'
,
help
=
'
Verbose debug logging. Default: False
'
)
help
=
'
Verbose debug logging. Default: False
'
)
parser
.
add_option
(
'
-v
'
,
'
--verbose
'
,
dest
=
'
verbose
'
,
default
=
False
,
action
=
'
store_true
'
,
help
=
'
Write Sample Sheet to stout. Default: False
'
)
(
options
,
args
)
=
parser
.
parse_args
()
(
options
,
args
)
=
parser
.
parse_args
()
...
@@ -143,7 +148,6 @@ def readConfig(logger):
...
@@ -143,7 +148,6 @@ def readConfig(logger):
configMap
=
{}
configMap
=
{}
logger
.
info
(
'
Reading config file
'
)
configParameters
=
parseConfigurationFile
(
logger
)
configParameters
=
parseConfigurationFile
(
logger
)
configMap
[
'
facilityName
'
]
=
configParameters
.
get
(
GENERAL
,
'
facilityName
'
)
configMap
[
'
facilityName
'
]
=
configParameters
.
get
(
GENERAL
,
'
facilityName
'
)
...
@@ -366,10 +370,12 @@ def writeSampleSheet(flowCellName, sampleSheetDict, sortedSampleSheetList, myopt
...
@@ -366,10 +370,12 @@ def writeSampleSheet(flowCellName, sampleSheetDict, sortedSampleSheetList, myopt
try
:
try
:
with
open
(
myFile
,
'
w
'
)
as
sampleSheetFile
:
with
open
(
myFile
,
'
w
'
)
as
sampleSheetFile
:
for
listElement
in
sortedSampleSheetList
:
for
listElement
in
sortedSampleSheetList
:
if
myoptions
.
verbose
:
print
sampleSheetDict
[
listElement
][
0
]
sampleSheetFile
.
write
(
sampleSheetDict
[
listElement
][
0
]
+
newline
)
sampleSheetFile
.
write
(
sampleSheetDict
[
listElement
][
0
]
+
newline
)
logger
.
info
(
'
Writing file
'
+
myFile
)
logger
.
info
(
'
Writing file
'
+
myFile
)
print
(
'
Written
'
+
myFile
)
except
IOError
:
except
IOError
:
logger
.
error
(
'
File error:
'
+
str
(
err
))
logger
.
error
(
'
File error:
'
+
str
(
err
))
print
(
'
File error:
'
+
str
(
err
))
print
(
'
File error:
'
+
str
(
err
))
...
@@ -398,7 +404,6 @@ def main():
...
@@ -398,7 +404,6 @@ def main():
createHiseqSampleSheet
(
laneParentDict
,
flowCellDict
,
configMap
,
service
,
logger
,
myoptions
)
createHiseqSampleSheet
(
laneParentDict
,
flowCellDict
,
configMap
,
service
,
logger
,
myoptions
)
logout
(
service
,
logger
)
logout
(
service
,
logger
)
print
(
'
DONE
'
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
main
()
main
()
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