use of org.baderlab.csplugins.enrichmentmap.commands.EMBuildCommandTask in project EnrichmentMapApp by BaderLab.
the class Protocol1Test method testProtocol1.
@Test
public void testProtocol1() throws Exception {
EMBuildCommandTask task = injector.getInstance(EMBuildCommandTask.class);
File enrichmentFile = TestUtils.createTempFile(PATH, "gprofiler_results_mesenonly_ordered_computedinR.txt");
assertTrue(enrichmentFile.exists());
task.analysisType.setSelectedValue(EnrichmentMapParameters.method_generic);
task.coeffecients.setSelectedValue(EnrichmentMapParameters.SM_JACCARD);
task.enrichmentsDataset1 = enrichmentFile;
task.pvalue = 1.0;
task.qvalue = 0.00001;
task.similaritycutoff = 0.25;
SerialTestTaskManager taskManager = new SerialTestTaskManager();
taskManager.execute(new TaskIterator(task));
// Assert the network was created
CyNetwork generatedNetwork = assertAndGetOnlyNetwork();
CyNetwork expectedNetwork = importNetworkFromFile(PATH, "protocol_1_expected.xgmml");
Set<String> columnsToIgnore = ImmutableSet.of("EM1_ENR_SET", "EM1_ENRICHMENT_SET", "EM1_Data Set");
assertNetworksEqual(expectedNetwork, generatedNetwork, columnsToIgnore);
}
Aggregations