Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #157 from agraubert/hotfix
Browse files Browse the repository at this point in the history
Hotfix 3.1.0
  • Loading branch information
agraubert committed Jun 20, 2018
2 parents 1506914 + 4889594 commit 519caa8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 3.1.0

**Deprecation Warning:**

* The `maf2bed` utility, and its associated code, are now deprecated and will be
removed in a future release

## 3.0.1

* Fixed `setup.py` to allow source builds on pip 10
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A collection of python utilities

__Version:__ 3.0.1
__Version:__ 3.1.0

###### Tools:
* search_range (A utility for manipulating numerical ranges)
Expand All @@ -14,7 +14,9 @@ __Version:__ 3.0.1

The __bio__ package:

* maf2bed (A command line utility for parsing a .maf file and converting coordinates from 1-based (maf standard) to 0-based (bed standard))
* ~~maf2bed (A command line utility for parsing a .maf file and converting coordinates from 1-based (maf standard) to 0-based (bed standard))~~

**Deprecated: Will be removed in a future release**

The __io__ package:

Expand Down
8 changes: 8 additions & 0 deletions agutil/bio/maf2bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@


def bedkey(args):
print(
"Deprecation Warning: maf2bed is now deprecated and will be removed in"
" a future release"
)
args.keys = set(args.keys)
output = []
reader = csv.DictReader(args.input, delimiter='\t')
Expand All @@ -20,6 +24,10 @@ def bedkey(args):


def maf2bed(args):
print(
"Deprecation Warning: maf2bed is now deprecated and will be removed in"
" a future release"
)
if args.v and sys.platform == "win32":
reader = open(args.input.name, mode='r')
args.v = len([False for row in reader])
Expand Down
4 changes: 4 additions & 0 deletions tests/test_maf2bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def test_compilation(self):
self.assertTrue(compiled_path)

# @unittest.skipIf(sys.platform.startswith("win"), "Tempfile doesn't work in this manner on windows")
@unittest.skip("maf2bed is now deprecated")
def test_output(self):
import agutil.bio.maf2bed
output_dir = tempfile.TemporaryDirectory()
Expand Down Expand Up @@ -103,6 +104,7 @@ def test_output(self):
output_dir.cleanup()

# @unittest.skipIf(sys.platform.startswith("win"), "Tempfile doesn't work in this manner on windows")
@unittest.skip("maf2bed is now deprecated")
def test_output_noSilents(self):
import agutil.bio.maf2bed
output_dir = tempfile.TemporaryDirectory()
Expand Down Expand Up @@ -163,6 +165,7 @@ def test_output_noSilents(self):
output_dir.cleanup()

# @unittest.skipIf(sys.platform.startswith("win"), "Tempfile doesn't work in this manner on windows")
@unittest.skip("maf2bed is now deprecated")
def test_output_noKeyfile(self):
import agutil.bio.maf2bed
output_file = tempname()
Expand All @@ -186,6 +189,7 @@ def test_output_noKeyfile(self):
os.remove(output_file)

# @unittest.skipIf(sys.platform.startswith("win"), "Tempfile doesn't work in this manner on windows")
@unittest.skip("maf2bed is now deprecated")
def test_output_noSilents_noKeyfile(self):
import agutil.bio.maf2bed
output_file = tempname()
Expand Down

0 comments on commit 519caa8

Please sign in to comment.