Skip to content

Commit 71c5770

Browse files
committed
Merge branch 'release/1.2.2' into 'release/1.2'
Merge release/1.2.2 into release/1.2 See merge request !20
2 parents a507164 + 16beeef commit 71c5770

File tree

11 files changed

+107
-90
lines changed

11 files changed

+107
-90
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to Neptune will be documented in this file.
44

5+
## [1.2.2] - 2016-04-06
6+
7+
This release includes some Galaxy improvements and fixes a signature scoring
8+
problem.
9+
10+
### Changed
11+
- Galaxy XML files have been updated to use different packages of Python.
12+
13+
### Fixed
14+
- A bug confusing inclusion and exclusion has been fixed.
15+
516
## [1.2.1] - 2016-03-23
617

718
This release of Neptune adds support for Galaxy.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ probabilistic models instead of heuristic strategies.
3838
## Release ##
3939
-------------
4040

41-
**Neptune 1.2.1**
41+
**Neptune 1.2.2**
4242

43-
2016 March 23
43+
2016 April 6
4444

45-
This release of Neptune adds support for Galaxy.
45+
This release includes some Galaxy improvements and fixes a signature scoring
46+
problem.
4647

4748
## Requirements ##
4849
------------------

documentation/manual/Manual.pdf

-1.72 KB
Binary file not shown.

documentation/manual/Manual.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
\setlength{\parskip}{0.5em}
6565

6666
%opening
67-
\title{Neptune\\ \normalsize Version 1.2.1}
67+
\title{Neptune\\ \normalsize Version 1.2.2}
6868
\author{Eric Marinier}
6969

7070
\begin{document}
@@ -179,7 +179,7 @@ \subsection{Neptune Installation}
179179

180180
# Ensure installation was successful:
181181
$ neptune --version
182-
> neptune 1.2.1
182+
> neptune 1.2.2
183183
\end{lstlisting}
184184

185185
\newpage

galaxy/neptune/neptune.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
<tool id="neptune" name="Neptune: Signature Discovery" version="1.2.1">
1+
<tool id="neptune" name="Neptune: Signature Discovery" version="1.2.2.0">
22
<description>Neptune identifies genomic signatures using an exact k-mer matching strategy while accommodating k-mer mismatches.</description>
33

44
<requirements>
5-
<requirement type="package" version="1.2.1">neptune</requirement>
6-
<requirement type="package" version="1.64">biopython</requirement>
5+
<requirement type="package" version="1.2.2">neptune</requirement>
6+
<requirement type="package" version="1.66">biopython</requirement>
77
<requirement type="package" version="2.2.28">blast+</requirement>
88
<requirement type="package" version="1.9">numpy</requirement>
99
<requirement type="package" version="0.14">scipy</requirement>
1010
</requirements>
1111

12+
<stdio>
13+
<exit_code range="1:" />
14+
</stdio>
15+
1216
<command>
1317
Neptune.py
1418

galaxy/neptune/tool_dependencies.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0"?>
22
<tool_dependency>
3-
<package name="neptune" version="1.2.1">
3+
<package name="neptune" version="1.2.2">
44
<repository name="package_neptune" owner="nml" prior_installation_required="True"/>
55
</package>
6-
<package name="biopython" version="1.64">
7-
<repository name="package_biopython_1_64" owner="biopython" prior_installation_required="True"/>
6+
<package name="biopython" version="1.66">
7+
<repository name="package_python_2_7_biopython_1_66" owner="ulfschaefer" prior_installation_required="True"/>
88
</package>
99
<package name="numpy" version="1.9">
1010
<repository name="package_python_2_7_numpy_1_9" owner="iuc" prior_installation_required="True"/>
1111
</package>
1212
<package name="scipy" version="0.14">
13-
<repository name="package_scipy_0_14" owner="iuc" prior_installation_required="True"/>
13+
<repository name="package_python_2_7_scipy_0_14" owner="iuc" prior_installation_required="True"/>
1414
</package>
1515
<package name="blast+" version="2.2.28">
1616
<repository name="package_blast_plus_2_2_28" owner="iuc" prior_installation_required="True" />

galaxy/package_neptune/tool_dependencies.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22

33
<tool_dependency>
4-
<package name="neptune" version="1.2.1">
4+
<package name="neptune" version="1.2.2">
55
<install version="1.0">
66

77
<actions>
@@ -60,11 +60,12 @@ probabilistic models instead of heuristic strategies.
6060
## Release ##
6161
-------------
6262

63-
**Neptune 1.2.1**
63+
**Neptune 1.2.2**
6464

65-
2016 March 23
65+
2016 April 6
6666

67-
This release of Neptune adds support for Galaxy.
67+
This release includes some Galaxy improvements and fixes a signature scoring
68+
problem.
6869

6970
## Running Neptune ##
7071
---------------------

neptune/FilterSignatures.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def __init__(
160160

161161
self.filterLength = filterLength # The min filtering size.
162162

163-
self.hitOverallDictionary = {} # The best (hit.ID, X).
164-
self.hitPairDictionary = {} # The best (hit.ID, hit.reference).
163+
self.exclusionOverallDictionary = {} # The best (hit.ID, X).
164+
self.inclusionPairDictionary = {} # The best (hit.ID, hit.reference).
165+
self.exclusionPairDictionary = {} # The best (hit.ID, hit.reference).
165166

166167
self.overallScore = {} # The overall score of a signature.
167168
self.inclusionScore = {} # The inclusion score of a signature.
@@ -184,14 +185,14 @@ def __init__(
184185
[NONE]
185186
186187
POST:
187-
The [self.overallScore] dictionary will be updated.
188+
The [self.exclusionOverallDictionary] dictionary will be updated.
188189
189190
# =========================================================================
190191
"""
191-
def updateHitOverallDictionary(self, hit):
192+
def updateExclusionOverallDictionary(self, hit):
192193

193-
key = hit.ID # The key: ID of the hit.
194-
dictionary = self.hitOverallDictionary # The dictionary to update.
194+
key = hit.ID
195+
dictionary = self.exclusionOverallDictionary
195196

196197
if key not in dictionary:
197198

@@ -204,11 +205,11 @@ def updateHitOverallDictionary(self, hit):
204205
"""
205206
# =========================================================================
206207
207-
UPDATE HIT PAIR DICTIONARY
208+
UPDATE PAIR DICTIONARY
208209
209210
PURPOSE:
210-
The pair score dictionary will be updated with the passed hit. This
211-
function is looking for the best hit for a (hit, reference) pair.
211+
The passed pair score dictionary will be updated with the passed hit.
212+
This function is looking for the best hit for a (hit, reference) pair.
212213
213214
INPUT:
214215
[HIT] [hit] - The hit object associated with the hit.
@@ -217,14 +218,13 @@ def updateHitOverallDictionary(self, hit):
217218
[NONE]
218219
219220
POST:
220-
The [self.hitPairDictionary] object will be updated.
221+
The passed dictionary object will be updated.
221222
222223
# =========================================================================
223224
"""
224-
def updateHitPairDictionary(self, hit):
225+
def updatePairDictionary(self, dictionary, hit):
225226

226227
key = (hit.ID, hit.reference) # The key: ID and reference.
227-
dictionary = self.hitPairDictionary # The dictionary to update.
228228

229229
if key not in dictionary:
230230

@@ -257,13 +257,13 @@ def updateHitPairDictionary(self, hit):
257257
POST:
258258
The exclusion scores and negative component of the overall scores of
259259
[self.overallScore] and [self.exclusionScore] will be updated using the
260-
[self.hitPairDictionary].
260+
[self.exclusionPairDictionary].
261261
262262
# =========================================================================
263263
"""
264264
def updateExclusionScores(self):
265265

266-
dictionary = self.hitPairDictionary # The pair dictionary.
266+
dictionary = self.exclusionPairDictionary # The pair dictionary.
267267

268268
for key in dictionary:
269269

@@ -302,13 +302,13 @@ def updateExclusionScores(self):
302302
POST:
303303
The exclusion scores and negative component of the overall scores of
304304
[self.overallScore] and [self.inclusionScore] will be updated using the
305-
[self.hitPairDictionary].
305+
[self.inclusionPairDictionary].
306306
307307
# =========================================================================
308308
"""
309309
def updateInclusionScores(self):
310310

311-
dictionary = self.hitPairDictionary # The pair dictionary.
311+
dictionary = self.inclusionPairDictionary # The pair dictionary.
312312

313313
for key in dictionary:
314314

@@ -355,7 +355,7 @@ def reportFilteredCandidates(self):
355355
outputFile = open(self.filteredLocation, 'w') # The output.
356356
candidateSignatures = Signature.readSignatures(
357357
self.candidatesLocation) # The input.
358-
dictionary = self.hitOverallDictionary # Overall dictionary.
358+
dictionary = self.exclusionOverallDictionary # Overall dictionary.
359359

360360
for ID in candidateSignatures:
361361

@@ -460,8 +460,8 @@ def reportSignatures(self, exclusionQueryLocation):
460460
for line in exclusionQueryFile:
461461

462462
hit = Database.Hit(line)
463-
self.updateHitOverallDictionary(hit)
464-
self.updateHitPairDictionary(hit)
463+
self.updateExclusionOverallDictionary(hit)
464+
self.updatePairDictionary(self.exclusionPairDictionary, hit)
465465

466466
exclusionQueryFile.close()
467467

@@ -498,7 +498,7 @@ def sortSignatures(self, inclusionQueryLocation):
498498
for line in inclusionQueryFile:
499499

500500
hit = Database.Hit(line)
501-
self.updateHitPairDictionary(hit)
501+
self.updatePairDictionary(self.inclusionPairDictionary, hit)
502502

503503
inclusionQueryFile.close()
504504

neptune/Neptune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# =============================================================================
2727
"""
2828

29-
__version__ = '1.2.1'
29+
__version__ = '1.2.2'
3030

3131
import os
3232
import argparse

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='neptune',
8-
version='1.2.1',
8+
version='1.2.2',
99
url='https://github.com/phac-nml/neptune.git',
1010
license='Apache-2.0',
1111
author='Eric Marinier',

0 commit comments

Comments
 (0)