Skip to content

Commit 4f25051

Browse files
committed
Increase width of genome field
1 parent 1beaa67 commit 4f25051

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/reference/SavedReferenceLibraryStep.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class SavedReferenceLibraryStep extends AbstractPipelineStep implements R
3838
{
3939
private static final String LIBRARY_ID = "libraryId";
4040

41-
public SavedReferenceLibraryStep(PipelineStepProvider provider, PipelineContext ctx)
41+
public SavedReferenceLibraryStep(PipelineStepProvider<?> provider, PipelineContext ctx)
4242
{
4343
super(provider, ctx);
4444
}
@@ -50,7 +50,7 @@ public Provider()
5050
super("SavedLibrary", "Saved Genome", null, "Select this option to reuse a previously saved reference genome", Arrays.asList(
5151
ToolParameterDescriptor.create(LIBRARY_ID, "Choose Genome", "Select a previously saved reference genome from the list.", "ldk-simplelabkeycombo", new JSONObject()
5252
{{
53-
put("width", 400);
53+
put("width", 450);
5454
put("schemaName", "sequenceanalysis");
5555
put("queryName", "reference_libraries");
5656
put("containerPath", "js:Laboratory.Utils.getQueryContainerPath()");
@@ -139,7 +139,8 @@ public Integer getLibraryId() throws PipelineJobException
139139

140140
private ReferenceGenome getReferenceGenome() throws PipelineJobException
141141
{
142-
Integer libraryId = Integer.parseInt(getProvider().getParameterByName(LIBRARY_ID).extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx()));
143-
return libraryId == null ? null : getPipelineCtx().getSequenceSupport().getCachedGenome(libraryId);
142+
int libraryId = Integer.parseInt(getProvider().getParameterByName(LIBRARY_ID).extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx()));
143+
144+
return libraryId > 0 ? getPipelineCtx().getSequenceSupport().getCachedGenome(libraryId) : null;
144145
}
145146
}

0 commit comments

Comments
 (0)