Skip to content

Commit

Permalink
fixed pandas error due to v0.23 update of the apply function
Browse files Browse the repository at this point in the history
  • Loading branch information
rfarouni committed Sep 22, 2018
1 parent c8dcfa9 commit 2d4feb3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion haystack/find_hotspots.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ def find_hpr_coordinates(df_chip,
# we remove the regions "without" signal in any of the cell types
coordinates_bin.dropna(inplace=True)

df_chip_hpr_zscore = df_chip_not_empty.loc[hpr_idxs, :].apply(zscore, axis=1)
df_chip_hpr_zscore = df_chip_not_empty.loc[hpr_idxs, :].apply(zscore, axis=1,
result_type ='broadcast')


###plot selection
Expand Down Expand Up @@ -905,6 +906,15 @@ def create_igv_track_file(hpr_iod_scores,

def main(input_args=None):

# input_args = ["/home/rfarouni/Documents/haystack_bio/haystack/haystack_data/test_data/samples_names_hotspots.txt",
# "hg19",
# '--blacklist',
# "hg19",
# '--output_directory',
# "/home/rfarouni/haystack_test_output/HAYSTACK_PIPELINE_RESULTS2",
# "--chrom_exclude",
# 'chr(?!21)']
# input_args.append('--keep_intermediate_files')

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

0 comments on commit 2d4feb3

Please sign in to comment.