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
8fc37ad6
Commit
8fc37ad6
authored
10 years ago
by
kohleman
Browse files
Options
Downloads
Patches
Plain Diff
proper handling of index length
SVN: 32199
parent
0a52719e
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
deep_sequencing_unit/source/Jython/createSampleSheet.py
+7
-7
7 additions, 7 deletions
deep_sequencing_unit/source/Jython/createSampleSheet.py
with
7 additions
and
7 deletions
deep_sequencing_unit/source/Jython/createSampleSheet.py
+
7
−
7
View file @
8fc37ad6
'''
@copyright:
Copyright 201
2
ETH Zuerich,
C
IS
D
Copyright 201
4
ETH Zuerich,
S
IS
@license:
Licensed under the Apache License, Version 2.0 (the
'
License
'
);
...
...
@@ -356,7 +356,7 @@ def convertSampleToDict(foundFlowCell):
def
createDemultiplexCommands
(
myoptions
,
configMap
,
laneIndexDict
,
endType
,
cycles
,
lane
,
myFileName
):
myFileName
,
indexRead1Length
,
indexRead2Length
):
'''
Builds up a command line for the demultiplexing of a single flow lane
'''
...
...
@@ -367,13 +367,13 @@ def createDemultiplexCommands(myoptions, configMap, laneIndexDict, endType, cycl
basesMask
=
'
Y
'
+
cycles
+
COMMA
+
'
I
'
+
str
(
indexlength
/
2
)
+
'
n
'
+
COMMA
+
'
I
'
+
\
str
(
indexlength
/
2
)
+
'
n
'
else
:
basesMask
=
'
Y
'
+
cycles
+
COMMA
+
'
I
'
+
str
(
indexlength
)
+
'
n
'
+
COMMA
+
(
indexlength
+
1
)
*
'
n
'
basesMask
=
'
Y
'
+
cycles
+
COMMA
+
'
I
'
+
str
(
indexlength
)
+
(
indexRead1Length
-
indexlength
+
1
)
*
'
n
'
if
endType
==
'
PAIRED_END
'
:
basesMask
=
basesMask
+
COMMA
+
'
Y
'
+
cycles
return
([
'
'
.
join
([
configMap
[
'
configureBclToFastqPath
'
],
configMap
[
'
failedReads
'
],
configMap
[
'
clusterCount
'
],
configMap
[
'
clusterCountNumber
'
],
configMap
[
'
outputDir
'
],
'
../../../Unaligned_
'
+
str
(
lane
),
configMap
[
'
sampleSheetName
'
],
myFileName
,
configMap
[
'
baseMask
'
],
basesMask
,
newline
])])
myFileName
,
configMap
[
'
baseMask
'
],
basesMask
,
"
--no-eamss
"
,
newline
])])
def
createHiseqSampleSheet
(
parentDict
,
flowCellDict
,
samplesPerLaneDict
,
flowCellName
,
configMap
,
logger
,
myoptions
):
...
...
@@ -422,7 +422,7 @@ def createHiseqSampleSheet(parentDict, flowCellDict, samplesPerLaneDict, flowCel
# more than one samples in an non-indexed lane
if
samplesPerLaneDict
[
lane
]
>
1
:
# if it is not a PhiX and not a Pool Sample
if
(
parentDict
[
key
][
'
NCBI_ORGANISM_TAXONOMY
'
]
!=
'
10847
'
)
and
parentDict
[
key
][
'
BARCODE_COMPLEXITY_CHECKER
'
]
!
=
'
OK
'
:
if
(
parentDict
[
key
][
'
NCBI_ORGANISM_TAXONOMY
'
]
!=
'
10847
'
)
and
parentDict
[
key
][
'
BARCODE_COMPLEXITY_CHECKER
'
]
=
=
'
No Pool
'
:
# then just use this sample and skip the others if there are more
samplesPerLaneDict
[
lane
]
=
0
index
=
'
'
...
...
@@ -473,7 +473,7 @@ def createHiseqSampleSheet(parentDict, flowCellDict, samplesPerLaneDict, flowCel
flowCellName
+
'
.csv
'
demultiplexCommandList
.
append
(
createDemultiplexCommands
(
myoptions
,
configMap
,
laneIndexDict
,
endType
,
cycles
,
lane
,
myFileName
))
endType
,
cycles
,
lane
,
myFileName
,
indexRead1Length
,
indexRead2Length
))
SamplesheetFile
=
writeSampleSheet
(
myoptions
,
logger
,
sampleSheetDict
,
laneSeparatedList
,
fileName
=
myFileName
)
writeDemultiplexCommandList
(
logger
,
demultiplexCommandList
,
...
...
@@ -485,7 +485,7 @@ def createHiseqSampleSheet(parentDict, flowCellDict, samplesPerLaneDict, flowCel
flowCellName
+
'
.csv
'
writeSampleSheet
(
myoptions
,
logger
,
sampleSheetDict
,
sortedSampleSheetList
,
fileName
=
myFileName
)
return
sampleSheetDict
,
myFileName
return
sampleSheetDict
,
myFileName
def
writeDemultiplexCommandList
(
logger
,
demultiplexCommandList
,
fileName
):
...
...
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