Skip to content

Commit 2d4feb3

Browse files
committed
fixed pandas error due to v0.23 update of the apply function
1 parent c8dcfa9 commit 2d4feb3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

haystack/find_hotspots.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ def find_hpr_coordinates(df_chip,
661661
# we remove the regions "without" signal in any of the cell types
662662
coordinates_bin.dropna(inplace=True)
663663

664-
df_chip_hpr_zscore = df_chip_not_empty.loc[hpr_idxs, :].apply(zscore, axis=1)
664+
df_chip_hpr_zscore = df_chip_not_empty.loc[hpr_idxs, :].apply(zscore, axis=1,
665+
result_type ='broadcast')
665666

666667

667668
###plot selection
@@ -905,6 +906,15 @@ def create_igv_track_file(hpr_iod_scores,
905906

906907
def main(input_args=None):
907908

909+
# input_args = ["/home/rfarouni/Documents/haystack_bio/haystack/haystack_data/test_data/samples_names_hotspots.txt",
910+
# "hg19",
911+
# '--blacklist',
912+
# "hg19",
913+
# '--output_directory',
914+
# "/home/rfarouni/haystack_test_output/HAYSTACK_PIPELINE_RESULTS2",
915+
# "--chrom_exclude",
916+
# 'chr(?!21)']
917+
# input_args.append('--keep_intermediate_files')
908918

909919
print '\n[H A Y S T A C K H O T S P O T]'
910920
print('\n-SELECTION OF VARIABLE REGIONS-\n')

0 commit comments

Comments
 (0)