Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
swig pickle motifs error
Browse files Browse the repository at this point in the history
  • Loading branch information
msbentsen committed Apr 29, 2019
1 parent 04ea5f7 commit 3c1bd97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tobias/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.1"
3 changes: 1 addition & 2 deletions tobias/footprinting/bindetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 3c1bd97

Please sign in to comment.