response = client.send(request, bodyHandler);
- String message = response.body();
-
- LOG.info("LabKey response to analysis {} completion: \"{}\"", analysisId, message);
- }
- catch (Throwable t)
- {
- LOG.error("Exception while completing {}", file.toNioPathForRead().toAbsolutePath(), t);
- }
- finally
- {
- _pendingCompletionFiles.remove(file);
- }
- }
- }
- }
- }
- }
-}
diff --git a/genotyping/src/org/labkey/genotyping/view/analyze.jsp b/genotyping/src/org/labkey/genotyping/view/analyze.jsp
deleted file mode 100644
index 0bc9e449..00000000
--- a/genotyping/src/org/labkey/genotyping/view/analyze.jsp
+++ /dev/null
@@ -1,195 +0,0 @@
-<%
-/*
- * Copyright (c) 2010-2016 LabKey Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-<%@ page import="org.labkey.api.query.CustomView" %>
-<%@ page import="org.labkey.api.util.Pair" %>
-<%@ page import="org.labkey.api.view.template.ClientDependencies" %>
-<%@ page import="org.labkey.genotyping.GenotypingController" %>
-<%@ page import="org.labkey.genotyping.GenotypingController.AnalyzeBean" %>
-<%@ page import="java.io.IOException" %>
-<%@ page import="java.util.Map" %>
-<%@ page import="java.util.SortedSet" %>
-<%@ taglib prefix="labkey" uri="http://www.labkey.org/taglib" %>
-<%@ page extends="org.labkey.api.jsp.JspBase" %>
-<%!
- @Override
- public void addClientDependencies(ClientDependencies dependencies)
- {
- dependencies.add("clientapi/ext3");
- }
-%>
-<%
- AnalyzeBean bean = (AnalyzeBean)getModelBean();
-
-// ext-all.css hard-codes a white background, we want transparent instead %>
-
-
-
-
-
diff --git a/genotyping/src/org/labkey/genotyping/view/configure.jsp b/genotyping/src/org/labkey/genotyping/view/configure.jsp
index 8b002b7c..8cffe2e2 100644
--- a/genotyping/src/org/labkey/genotyping/view/configure.jsp
+++ b/genotyping/src/org/labkey/genotyping/view/configure.jsp
@@ -116,9 +116,6 @@
| <%=h(form.getMessage())%> |
| |
<% } %>
- | Configure Galaxy |
- | Galaxy server home page URL | |
- | |
| Configure Genotyping Queries |
| External source of DNA reference sequences |
diff --git a/genotyping/src/org/labkey/genotyping/view/importReads.jsp b/genotyping/src/org/labkey/genotyping/view/importReads.jsp
index 66ec423d..9be3bdea 100644
--- a/genotyping/src/org/labkey/genotyping/view/importReads.jsp
+++ b/genotyping/src/org/labkey/genotyping/view/importReads.jsp
@@ -71,7 +71,6 @@
-
| <%= button("Import Reads").submit(true) %>
<%=platform == SEQUENCE_PLATFORMS.LS454 ? button("Import Reads And Analyze").submit(true).onClick("document.importReads.analyze.value=1;") : HtmlString.EMPTY_STRING%>
diff --git a/genotyping/src/org/labkey/genotyping/view/mySettings.jsp b/genotyping/src/org/labkey/genotyping/view/mySettings.jsp
deleted file mode 100644
index c54465f9..00000000
--- a/genotyping/src/org/labkey/genotyping/view/mySettings.jsp
+++ /dev/null
@@ -1,53 +0,0 @@
-<%
-/*
- * Copyright (c) 2010-2014 LabKey Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-<%@ page import="org.labkey.api.util.URLHelper"%>
-<%@ page import="org.labkey.genotyping.GenotypingController" %>
-<%@ page import="org.labkey.genotyping.GenotypingController.MySettingsAction" %>
-<%@ page import="org.labkey.genotyping.galaxy.GalaxyFolderSettings" %>
-<%@ page import="org.labkey.genotyping.galaxy.GalaxyManager" %>
-<%@ taglib prefix="labkey" uri="http://www.labkey.org/taglib" %>
-<%@ page extends="org.labkey.api.jsp.JspBase" %>
-<%
- GenotypingController.MySettingsForm form = (GenotypingController.MySettingsForm)getModelBean();
- GalaxyFolderSettings settings = GalaxyManager.get().getSettings(getContainer());
- String serverURL = settings.getGalaxyURL();
- String preferencesHTML = "the API Keys page";
-
- // Make it a link if admin has set the Galaxy URL
- if (null != serverURL)
- {
- URLHelper userURL = new URLHelper((serverURL.endsWith("/") ? serverURL : serverURL + "/") + "user/api_keys");
- preferencesHTML = "" + preferencesHTML + "";
- }
-%>
-
-
-
diff --git a/genotyping/src/org/labkey/genotyping/view/overview.jsp b/genotyping/src/org/labkey/genotyping/view/overview.jsp
index d9fec53a..ec3c4fae 100644
--- a/genotyping/src/org/labkey/genotyping/view/overview.jsp
+++ b/genotyping/src/org/labkey/genotyping/view/overview.jsp
@@ -99,8 +99,7 @@
|
| Settings |
- |
- | <%=link("My Settings", GenotypingController.getMySettingsURL(c, getActionURL()))%> |
<%
+ |
<%
if (c.hasPermission(user, AdminPermission.class))
{
%>
diff --git a/genotyping/test/src/org/labkey/test/tests/GenotypingBaseTest.java b/genotyping/test/src/org/labkey/test/tests/GenotypingBaseTest.java
index 61e065b4..815f3c2f 100644
--- a/genotyping/test/src/org/labkey/test/tests/GenotypingBaseTest.java
+++ b/genotyping/test/src/org/labkey/test/tests/GenotypingBaseTest.java
@@ -90,17 +90,11 @@ protected void configureAdmin(boolean configureSequences)
_extHelper.waitForExt3MaskToDisappear(WAIT_FOR_JAVASCRIPT);
}
}
+ clickButton("Submit");
if (configureSequences)
{
- setFormElement(Locator.name("galaxyURL"), "http://galaxy.labkey.org:8080");
- clickButton("Submit");
clickButton("Load Sequences");
-
- log("Configure Galaxy Server Key");
- clickAndWait(Locator.linkWithText("My Settings"));
- setFormElement(Locator.name("galaxyKey"), "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
}
- clickButton("Submit");
}
@Override
diff --git a/genotyping/test/src/org/labkey/test/tests/GenotypingTest.java b/genotyping/test/src/org/labkey/test/tests/GenotypingTest.java
index 32d6c074..f7d3e09c 100644
--- a/genotyping/test/src/org/labkey/test/tests/GenotypingTest.java
+++ b/genotyping/test/src/org/labkey/test/tests/GenotypingTest.java
@@ -25,8 +25,6 @@
import org.labkey.test.categories.OConnor;
import org.openqa.selenium.NoSuchElementException;
-import java.io.File;
-
@Category({CustomModules.class, OConnor.class})
@BaseWebDriverTest.ClassTimeout(minutes = 9)
public class GenotypingTest extends GenotypingBaseTest
@@ -34,8 +32,6 @@ public class GenotypingTest extends GenotypingBaseTest
public static final String first454importNum = "207";
public static final String second454importNum = "208";
- protected int runNum = 0; //this is globally unique, so we need to retrieve it every time.
-
@Override
protected String getProjectName()
{
@@ -65,9 +61,7 @@ public void testSteps()
{
//TODO: need to fix 454/genotyping tests
importRunTest();
- runAnalysisTest();
importSecondRunTest();
- verifyAnalysis();
}
private void importSecondRunTest()
@@ -95,65 +89,6 @@ private void importRunAgainTest()
}
}
- private void runAnalysisTest()
- {
- sendDataToGalaxyServer();
- receiveDataFromGalaxyServer();
- }
-
- private void verifyAnalysis()
- {
- goToProjectHome();
-
- clickAndWait(Locator.linkWithText("View Analyses"));
- clickAndWait(Locator.linkWithText("" + getRunNumber())); // TODO: This is probably still too permissive... need a more specific way to get the run link
-
- assertTextPresent("Reads", "Sample Id", "Percent", "TEST09");
- assertElementPresent(Locator.paginationText(1, 100, 1410));
- }
-
- private void receiveDataFromGalaxyServer()
- {
- String[] filesToCopy = {"matches.txt", "analysis_complete.txt"};
- String analysisFolder = "analysis_" + getRunNumber();
- for (String file: filesToCopy)
- {
- copyFile(new File(getPipelineLoc(), file), new File(getPipelineLoc(), analysisFolder + "/" + file));
- }
- refresh();
- waitForPipelineJobsToComplete(++pipelineJobCount, "Import genotyping analysis", false);
- }
-
- private int getRunNumber()
- {
- return runNum;
- }
-
- private void sendDataToGalaxyServer()
- {
- clickButton("Add Analysis");
- _extHelper.selectComboBoxItem("Reference Sequences:", "[default]"); //TODO: this should be cyno
- clickButton("Submit");
- waitForPipelineJobsToComplete(++pipelineJobCount, "Submit genotyping analysis", false);
- findAndSetAnalysisNumber();
-
- }
-
- private void findAndSetAnalysisNumber()
- {
- Locator l = Locator.tagContainingText("td", "Submit genotyping analysis");
- isElementPresent(l);
- getText(l);
- String[] temp = getText(l).split(" ");
- setAnalysisNumber(Integer.parseInt(temp[temp.length-1]));
-
- }
-
- private void setAnalysisNumber(int i)
- {
- runNum = i;
- }
-
private void importRunTest()
{
log("import genotyping run");
@@ -183,6 +118,5 @@ private void startImportRun(String file, String importAction, String associatedR
_fileBrowserHelper.importFile(file, importAction);
selectOptionByText(Locator.name("run"), associatedRun);
clickButton("Import Reads");
-
}
}