Skip to content

Commit

Permalink
minor warning for empty list fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
umahsn committed Mar 15, 2023
1 parent 060e3bd commit f860680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nanocaller_src/generate_SNP_pileups.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def ex_bed(tree, pos):

pos_list=output.keys()
current_depth=[]
depth=0
output_pos,output_ref,output_mat,output_dp,output_freq=[],[],[],[],[]
if pos_list:

Expand Down Expand Up @@ -232,5 +233,6 @@ def ex_bed(tree, pos):

output_dp=np.array(output_dp)
output_freq=np.array(output_freq)
depth=np.mean(current_depth)

return (output_pos,output_ref,output_mat,output_dp,output_freq,np.mean(current_depth))
return (output_pos,output_ref,output_mat,output_dp,output_freq,depth)

0 comments on commit f860680

Please sign in to comment.