diff damid_deseq2_to_peaks.py @ 1:edca422b6cd6 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/damid_deseq2_to_peaks commit 77e1df794a4bceebf80dc0d800c18577c531a277
author mvdbeek
date Tue, 08 Jan 2019 04:01:54 -0500
parents 3fd7995da4fd
children
line wrap: on
line diff
--- a/damid_deseq2_to_peaks.py	Mon Jan 07 12:58:55 2019 -0500
+++ b/damid_deseq2_to_peaks.py	Tue Jan 08 04:01:54 2019 -0500
@@ -26,7 +26,7 @@
 def significant_gatcs_to_peaks(df, p_value_cutoff):
     # Add `pass` column for sig. GATCs
     df['pass'] = 0
-    df.loc[df[6] < p_value_cutoff, 'pass'] = 1
+    df.loc[(df[6] < p_value_cutoff) & (df[2] > 0), 'pass'] = 1
     # Create pass_id column for consecutive pass or no-pass GATCs
     # True whenever there is a value change (from previous value):
     df['pass_id'] = df.groupby('chr')['pass'].diff().ne(0).cumsum()