From 3c1bd976e250f9d235337d03af9be3687665ed3d Mon Sep 17 00:00:00 2001 From: msbentsen Date: Mon, 29 Apr 2019 16:36:23 +0200 Subject: [PATCH] swig pickle motifs error --- CHANGES | 5 ++++- tobias/__init__.py | 2 +- tobias/footprinting/bindetect.py | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 86297b9..46bcb8c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ -## 0.4.0 (2019-04-26) +## 0.4.1 (2019-04-29) +- Fixed weird "can't pickle SwigPyObject objects"-error in bindetect + +## 0.4.0 (2019-04-29) - Added --add_region_columns to TFBScan - Renamed FootprintScores to ScoreBigwig - Added normalization of input score distributions in BINDetect diff --git a/tobias/__init__.py b/tobias/__init__.py index 6a9beea..3d26edf 100644 --- a/tobias/__init__.py +++ b/tobias/__init__.py @@ -1 +1 @@ -__version__ = "0.4.0" +__version__ = "0.4.1" diff --git a/tobias/footprinting/bindetect.py b/tobias/footprinting/bindetect.py index cf93e11..7db350d 100644 --- a/tobias/footprinting/bindetect.py +++ b/tobias/footprinting/bindetect.py @@ -190,7 +190,6 @@ def run_bindetect(args): figure_pdf.savefig(bbox_inches='tight') plt.close() - ################# Peaks / GC in peaks ################ #Read peak and peak_header peaks = RegionList().from_bed(args.peaks) @@ -632,7 +631,7 @@ def run_bindetect(args): base = cond1 + "_" + cond2 #Make copy of motifs and fill in with metadata - comparison_motifs = copy.deepcopy(motif_list) + comparison_motifs = motif_list #copy.deepcopy(motif_list) - swig pickle error, just overwrite motif_list for motif in comparison_motifs: name = motif.prefix motif.change = float(info_table.at[name, base + "_change"])