Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI + refactoring of SignatureDatasetFromSDF
* Refactored to use IDataset implementation * Implemented GUI dialog for creating dataset from SDF
- Loading branch information
Showing
10 changed files
with
489 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
...s.signatures/src/net/bioclipse/ds/signatures/handlers/ChiralSignaturesDatasetFromSDF.java
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...ds.signatures/src/net/bioclipse/ds/signatures/handlers/DenseSignaturesDatasetFromSDF.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* ***************************************************************************** | ||
* Copyright (c) 2011 Ola Spjuth | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Ola Spjuth - initial API and implementation | ||
******************************************************************************/ | ||
package net.bioclipse.ds.signatures.handlers; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.core.runtime.IProgressMonitor; | ||
|
||
import net.bioclipse.cdk.domain.ICDKMolecule; | ||
import net.bioclipse.core.domain.IDataset; | ||
import net.bioclipse.ds.signatures.business.ISignaturesManager; | ||
|
||
/** | ||
* | ||
* @author ola | ||
*/ | ||
public class DenseSignaturesDatasetFromSDF extends AbstractSignaturesDatasetFromSDF{ | ||
|
||
@Override | ||
protected IDataset generateDataset(List<ICDKMolecule> mols, int height, | ||
String nameProperty, String responseProperty, | ||
IProgressMonitor monitor) { | ||
|
||
ISignaturesManager signatures=net.bioclipse.ds.signatures.Activator.getDefault().getJavaSignaturesManager(); | ||
return signatures.generateDataset(mols, height, nameProperty, responseProperty, monitor); | ||
|
||
} | ||
|
||
@Override | ||
protected String getFileExtension() { | ||
return "csv"; | ||
} | ||
} |
Oops, something went wrong.