Skip to content

Commit

Permalink
Minor tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
pfh committed Jul 4, 2020
1 parent 2a9b6fa commit 0a3f204
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion nesoni/CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

0.134 - Updated usage of samtools sort
0.134 - Updated usage of samtools sort.
Less picky installation check.

0.133 - Able to load counts file with no genes in R.
Able to load counts file with one gene in R.
Expand Down
2 changes: 1 addition & 1 deletion nesoni/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION='0.134dev'
VERSION='0.134'
#^ Note: this first line is read by the setup.py script to get the version

import sys
Expand Down
12 changes: 5 additions & 7 deletions nesoni/grace.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,19 @@ def report(line):
if ok[0]:
try:
runr.run_script(
'library(nesoni)\n'
'stopifnot(nesoni_version() == version)',
'library(nesoni)\n',
silent=True,version=nesoni.VERSION)
except AssertionError:
path = os.path.join(os.path.dirname(__file__),'nesoni-r')
report('Nesoni R module not installed or wrong version. To install:')
report(' R CMD INSTALL '+path)
report('Nesoni R module not installed.')

try: require_samtools()
except Error:
report('samtools not installed.')

try: require_shrimp_2()
except Error:
report('SHRiMP not installed.')
#try: require_shrimp_2()
#except Error:
# report('SHRiMP not installed.')

return ok

Expand Down

0 comments on commit 0a3f204

Please sign in to comment.