Skip to content

Commit 4146229

Browse files
committed
Expand BW file support
1 parent 2aa4df3 commit 4146229

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ImportGenomeTrackTask.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,32 +102,38 @@ public Factory()
102102
super(ImportGenomeTrackTask.class);
103103
}
104104

105+
@Override
105106
public List<FileType> getInputTypes()
106107
{
107108
return Collections.emptyList();
108109
}
109110

111+
@Override
110112
public String getStatusName()
111113
{
112114
return PipelineJob.TaskStatus.running.toString();
113115
}
114116

117+
@Override
115118
public List<String> getProtocolActionNames()
116119
{
117120
return Arrays.asList(ACTION_NAME);
118121
}
119122

120-
public PipelineJob.Task createTask(PipelineJob job)
123+
@Override
124+
public PipelineJob.Task<?> createTask(PipelineJob job)
121125
{
122126
return new ImportGenomeTrackTask(this, job);
123127
}
124128

129+
@Override
125130
public boolean isJobComplete(PipelineJob job)
126131
{
127132
return false;
128133
}
129134
}
130135

136+
@Override
131137
public RecordedActionSet run() throws PipelineJobException
132138
{
133139
getJob().getLogger().info("Importing tracks from file(s): ");
@@ -297,6 +303,11 @@ else if (SequenceUtil.FILETYPE.gbk.getFileType().isType(file))
297303
getJob().getLogger().debug("no processing needed: " + file.getName());
298304
FileUtils.moveFile(file, outputFile);
299305
}
306+
else if (SequenceUtil.FILETYPE.bw.getFileType().isType(file))
307+
{
308+
getJob().getLogger().debug("no processing needed: " + file.getName());
309+
FileUtils.moveFile(file, outputFile);
310+
}
300311
else
301312
{
302313
throw new PipelineJobException("Unsupported filetype: " + file.getName());

0 commit comments

Comments
 (0)