Skip to content

Commit 5dffac5

Browse files
author
Hongjiu Zhang
committed
fix: convert enforced peaks to numpy arrays
1 parent f3b3d9d commit 5dffac5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastclone/subclone.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def infer_single_sample(mutations, purity):
3939
The mutation assignment to subclones.
4040
"""
4141
if isinstance(purity, str):
42-
peaks = [float(x) for x in purity.split(':')]
42+
peaks = numpy.asarray([float(x) for x in purity.split(':')])
4343
return _assign_mutations_to_subclones(mutations, peaks)
4444
filter_ = ((mutations['major_copy1'] == mutations['minor_copy1']) &
4545
(mutations['state1'] == 1.0))

recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source:
1010

1111
build:
1212
noarch: python
13-
number: 0
13+
number: 1
1414
script: 'python -m pip install . --no-deps -vv'
1515

1616
requirements:

0 commit comments

Comments
 (0)