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
4b2abcec
Commit
4b2abcec
authored
14 years ago
by
kohleman
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-1663] don't put additional files into affiliation dropbox
SVN: 17717
parent
23a7e74b
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/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java
+20
-15
20 additions, 15 deletions
...source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java
with
20 additions
and
15 deletions
deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java
+
20
−
15
View file @
4b2abcec
...
...
@@ -103,8 +103,8 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
static
final
String
SRF_FILE_EXTENSION
=
"srf"
;
private
final
static
Logger
operationLog
=
LogFactory
.
getLogger
(
LogCategory
.
OPERATION
,
FlowLaneFeeder
.
class
);
private
final
static
Logger
operationLog
=
LogFactory
.
getLogger
(
LogCategory
.
OPERATION
,
FlowLaneFeeder
.
class
);
private
final
IEncapsulatedOpenBISService
service
;
...
...
@@ -191,11 +191,11 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
throw
new
UserFailureException
(
"No flow lane sample for flow lane "
+
flowLane
+
" found."
);
}
File
d
ropBox
=
createDropBoxFile
(
flowLane
);
File
flowLaneD
ropBox
=
createDropBoxFile
(
flowLane
);
String
fileName
=
flowLaneSample
.
getSpace
().
getCode
()
+
entitySepaparator
+
flowcellID
+
FlowLaneDataSetInfoExtractor
.
FLOW_LANE_NUMBER_SEPARATOR
+
flowLane
;
File
flowLaneDataSet
=
new
File
(
d
ropBox
,
fileName
);
File
flowLaneDataSet
=
new
File
(
flowLaneD
ropBox
,
fileName
);
if
(
flowLaneDataSet
.
exists
())
{
throw
new
EnvironmentFailureException
(
"There is already a data set for flow lane "
...
...
@@ -209,24 +209,35 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
+
flowLaneDataSet
.
getAbsolutePath
()
+
"'."
);
}
createHardLink
(
srfFile
,
flowLaneDataSet
);
createMetaDataFileAndHardLinkInTransferDropBox
(
flowLaneDataSet
,
flowLaneSample
,
flowLane
,
srfInfo
);
// store additional flow lane files
List
<
File
>
flowLaneFiles
=
new
ArrayList
<
File
>();
FileUtilities
.
findFiles
(
originalData
,
flowLaneFiles
,
createPrefixFileFilter
(
FilenameUtils
.
getBaseName
(
srfFile
.
getName
())));
for
(
File
file
:
flowLaneFiles
)
{
createHardLink
(
file
,
flowLaneDataSet
);
if
(
FilenameUtils
.
getExtension
(
file
.
getName
()).
equals
(
SRF_FILE_EXTENSION
)
==
false
)
{
createHardLink
(
file
,
flowLaneDataSet
);
}
}
createMetaDataFileAndHardLinkInTransferDropBox
(
flowLaneDataSet
,
flowLaneSample
,
flowLane
,
srfInfo
);
if
(
updateDataTransferredProperty
)
{
service
.
updateSample
(
createUpdates
(
flowLaneSample
,
createDataTransferredProperty
(
flowLaneSample
)));
}
File
markerFile
=
new
File
(
d
ropBox
,
Constants
.
IS_FINISHED_PREFIX
+
fileName
);
File
markerFile
=
new
File
(
flowLaneD
ropBox
,
Constants
.
IS_FINISHED_PREFIX
+
fileName
);
addFileForUndo
(
markerFile
);
FileUtilities
.
writeToFile
(
markerFile
,
""
);
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
"Flow lane file '"
+
srfFile
+
"' successfully dropped into drop box '"
+
d
ropBox
+
"' as '"
+
"' successfully dropped into drop box '"
+
flowLaneD
ropBox
+
"' as '"
+
flowLaneDataSet
.
getName
()
+
"'."
);
}
processedFlowLanes
.
add
(
flowLane
);
...
...
@@ -323,12 +334,6 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
metaDataFilePrefix
+
escapeSampleCode
(
sampleCode
)
+
META_DATA_FILE_TYPE
;
FileUtilities
.
writeToFile
(
new
File
(
flowLaneDataSet
,
metaFileName
),
builder
.
toString
());
copyToDropBox
(
dropBox
,
flowLaneDataSet
);
if
(
updateDataTransferredProperty
)
{
service
.
updateSample
(
createUpdates
(
flowLaneSample
,
createDataTransferredProperty
(
flowLaneSample
)));
}
}
private
IEntityProperty
createDataTransferredProperty
(
Sample
flowLaneSample
)
...
...
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