Skip to content

Commit

Permalink
fix missing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Apr 12, 2022
1 parent f509d91 commit 3fa2b53
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.rst
Expand Up @@ -8,8 +8,6 @@ BioSniff
.. image:: https://github.com/cokelaer/biosniff/actions/workflows/main.yml/badge.svg?branch=main
:target: https://github.com/cokelaer/biosniff/actions/workflows/main.yml



.. image:: https://coveralls.io/repos/github/cokelaer/biosniff/badge.svg?branch=main
:target: https://coveralls.io/github/cokelaer/biosniff?branch=main

Expand Down Expand Up @@ -53,6 +51,7 @@ Changelog
========= ====================================================================
Version Description
========= ====================================================================
0.4.0 * additional test and fix missing click requirements
0.3.0 * add missing MANIFEST and applied black
0.2.0 * more tests (80% coverage) and some simplifications
0.1.0 * first commit
Expand Down
8 changes: 4 additions & 4 deletions biosniff/sniffer.py
Expand Up @@ -98,7 +98,7 @@ def sniff(self, filename):
return None
elif len(candidates) == 1:
return candidates[0]
else:
else: #pragma: no cover
_log.warning("Sniffer found several candidates: {}".format(candidates))

return candidates
Expand Down Expand Up @@ -137,7 +137,7 @@ def is_abi(self, filename):
buff = data.read(4)
if buff[0:4].decode() == "ABIF":
return True
except:
except: #pragma: no cover
return False

def is_bam(self, filename):
Expand All @@ -154,14 +154,14 @@ def is_bai(self, filename):
return True
else:
return False
except:
except: #pragma: no cover
return False

def is_bcf(self, filename):
try:
d = pysam.VariantFile(filename)
return d.is_bcf
except:
except: #pragma: no cover
return False

def is_binary_bed(self, filename):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,3 +1,4 @@
click
pysam
pandas
pyyaml
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages

_MAJOR = 0
_MINOR = 3
_MINOR = 4
_MICRO = 0
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release = '%d.%d' % (_MAJOR, _MINOR)
Expand Down

0 comments on commit 3fa2b53

Please sign in to comment.