Skip to content

Commit

Permalink
Merge branch 'master' of github.com:3D-e-Chem/knime-sstea
Browse files Browse the repository at this point in the history
Bump to v1.0.4
  • Loading branch information
sverhoeven committed Jun 3, 2016
2 parents 60906f7 + b2b80ad commit 5897c67
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 12 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.0.2] - 2016-06-03
## [1.0.4] - 2016-06-03

### Changed

* Improved node documentation (#3)

## [1.0.3] - 2015-05-19

### Fixed

* Throw exception when sequence is empty

## [1.0.2] - 2015-05-19

### Fixed

* exception when sequences are not same length (#2)

## [1.0.1] - 2015-05-04

Initial release
Expand Down
2 changes: 1 addition & 1 deletion feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="nl.esciencecenter.e3dchem.sstea.feature"
label="ss-TEA"
version="1.0.2"
version="1.0.4"
provider-name="Netherlands eScience Center">

<description url="https://github.com/3D-e-Chem/knime-sstea">
Expand Down
2 changes: 1 addition & 1 deletion feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>nl.esciencecenter.e3dchem.sstea</groupId>
<artifactId>nl.esciencecenter.e3dchem.sstea</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>

<artifactId>nl.esciencecenter.e3dchem.sstea.feature</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions p2/category.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/nl.esciencecenter.e3dchem.sstea.feature-1.0.2.jar" id="nl.esciencecenter.e3dchem.sstea.feature" version="1.0.2">
<feature url="features/nl.esciencecenter.e3dchem.sstea.feature-1.0.4.jar" id="nl.esciencecenter.e3dchem.sstea.feature" version="1.0.4">
<category name="nl.esciencecenter.3D-e-Chem"/>
</feature>
<feature url="features/nl.esciencecenter.e3dchem.sstea.feature.source_1.0.2.jar" id="nl.esciencecenter.e3dchem.sstea.feature.source" version="1.0.2">
<feature url="features/nl.esciencecenter.e3dchem.sstea.feature.source_1.0.4.jar" id="nl.esciencecenter.e3dchem.sstea.feature.source" version="1.0.4">
<category name="nl.esciencecenter.3D-e-Chem.sources"/>
</feature>
<category-def name="nl.esciencecenter.3D-e-Chem" label="KNIME 3D-e-Chem Contributions">
Expand Down
2 changes: 1 addition & 1 deletion p2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>nl.esciencecenter.e3dchem.sstea</artifactId>
<groupId>nl.esciencecenter.e3dchem.sstea</groupId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>
<artifactId>nl.esciencecenter.e3dchem.sstea.p2</artifactId>
<packaging>eclipse-repository</packaging>
Expand Down
2 changes: 1 addition & 1 deletion plugin/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Subfamily specific two entropy analysis score
Bundle-SymbolicName: nl.esciencecenter.e3dchem.sstea.plugin;singleton:=true
Bundle-Version: 1.0.2
Bundle-Version: 1.0.4
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.knime.core;bundle-version="[3.1.0,4.0.0)",
org.knime.base;bundle-version="[3.1.0,4.0.0)"
Expand Down
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>nl.esciencecenter.e3dchem.sstea</groupId>
<artifactId>nl.esciencecenter.e3dchem.sstea</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>
<artifactId>nl.esciencecenter.e3dchem.sstea.plugin</artifactId>
<packaging>eclipse-plugin</packaging>
Expand Down
5 changes: 4 additions & 1 deletion plugin/src/nl/esciencecenter/e3dchem/sstea/Scorer.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public List<Score> scoreit(Map<String, String> sequences, Set<String> subfamily_
throw new KeySelectorException("Not all subfamily_members are in keys of sequences");
}

int minimumSequenceLength = Collections.max(sequences.values()).length();
int minimumSequenceLength = Collections.min(sequences.values()).length();
if (minimumSequenceLength == 0) {
throw new IllegalArgumentException("Empty sequence");
}
int outSideNr = sequences.size() - subfamily_members.size();
int inSideNr = subfamily_members.size();

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nl.esciencecenter.e3dchem.sstea</groupId>
<artifactId>nl.esciencecenter.e3dchem.sstea</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
<packaging>pom</packaging>

<organization>
Expand Down
2 changes: 1 addition & 1 deletion tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: nl.esciencecenter.e3dchem.sstea.tests
Bundle-Version: 1.0.2
Bundle-Version: 1.0.4
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.junit;bundle-version="4.12.0",
org.knime.core;bundle-version="[3.1.0,4.0.0)",
Expand Down
2 changes: 1 addition & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<parent>
<groupId>nl.esciencecenter.e3dchem.sstea</groupId>
<artifactId>nl.esciencecenter.e3dchem.sstea</artifactId>
<version>1.0.2</version>
<version>1.0.4</version>
</parent>

<artifactId>nl.esciencecenter.e3dchem.sstea.tests</artifactId>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/nl/esciencecenter/e3dchem/sstea/ScorerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,24 @@ public void conserved75_subfamily() throws KeySelectorException {
assertEquals(expected, scores);
}

@Test
public void jaggedSequence() throws KeySelectorException {
sequences.put("seq10", "ICK");
Set<String> subfamily_members = new HashSet<String>();
subfamily_members.add("seq1");
List<Score> scores = scorer.scoreit(sequences, subfamily_members);
assertEquals(scores.size(), 1);
}

@Test
public void emptySequence() throws KeySelectorException {
sequences.put("seq10", "");
Set<String> subfamily_members = new HashSet<String>();
subfamily_members.add("seq1");

thrown.expect(IllegalArgumentException.class);

scorer.scoreit(sequences, subfamily_members);
}

}

0 comments on commit 5897c67

Please sign in to comment.