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
54b24d3c
Commit
54b24d3c
authored
14 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-1634] extracted code to commons
SVN: 16976
parent
669be866
Loading
Loading
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
+5
-20
5 additions, 20 deletions
...source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java
with
5 additions
and
20 deletions
deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLaneFeeder.java
+
5
−
20
View file @
54b24d3c
...
...
@@ -27,9 +27,9 @@ import java.util.LinkedHashMap;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
java.util.Properties
;
import
java.util.Set
;
import
java.util.Map.Entry
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.log4j.Logger
;
...
...
@@ -92,8 +92,8 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
static
final
String
FILE_TYPE
=
".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
;
...
...
@@ -152,7 +152,7 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
Map
<
String
,
Sample
>
flowLaneSampleMap
=
createFlowLaneSampleMap
(
dataSetInformation
);
String
flowcellID
=
originalData
.
getName
();
List
<
File
>
files
=
new
ArrayList
<
File
>();
findFiles
(
originalData
,
files
,
createFileFilter
());
FileUtilities
.
findFiles
(
originalData
,
files
,
create
Srf
FileFilter
());
if
(
files
.
size
()
<
flowLaneSampleMap
.
size
())
{
throw
new
EnvironmentFailureException
(
"Only "
+
files
.
size
()
...
...
@@ -372,22 +372,7 @@ class FlowLaneFeeder extends AbstractPostRegistrationDataSetHandlerForFileBasedU
return
flowLane
;
}
private
void
findFiles
(
File
file
,
List
<
File
>
files
,
FileFilter
filter
)
{
if
(
filter
.
accept
(
file
))
{
files
.
add
(
file
);
}
if
(
file
.
isDirectory
())
{
for
(
File
child
:
file
.
listFiles
())
{
findFiles
(
child
,
files
,
filter
);
}
}
}
private
FileFilter
createFileFilter
()
private
FileFilter
createSrfFileFilter
()
{
return
new
FileFilter
()
{
...
...
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