@@ -838,7 +838,7 @@ void call_peaks() {
838838 if ( get_num_rep() > 1 ) {
839839
840840 // spp
841- if ( ctl_exists() ) {
841+ if ( is_TF_chipseq() && ctl_exists() ) {
842842
843843 spp_pooled_o_dir := mkdir( "$spp_o_dir/pooled_rep" )
844844
@@ -864,7 +864,7 @@ void call_peaks() {
864864 if ( !true_rep ) {
865865
866866 // spp
867- if ( ctl_exists() ) {
867+ if ( is_TF_chipseq() && ctl_exists() ) {
868868 spp_ppr1_o_dir := mkdir( "$spp_o_dir/pooled_pseudo_reps/ppr1" )
869869 spp_ppr2_o_dir := mkdir( "$spp_o_dir/pooled_pseudo_reps/ppr2" )
870870
@@ -912,7 +912,7 @@ void call_peaks() {
912912 for (int rep=1; rep<=get_num_rep(); rep++) {
913913
914914 // spp
915- if ( ctl_exists() ) {
915+ if ( is_TF_chipseq() && ctl_exists() ) {
916916 spp_true_o_dir := mkdir( "$spp_o_dir/rep$rep" )
917917
918918 ( peak{"spp,$rep"}, tmp ) = \
@@ -942,7 +942,7 @@ void call_peaks() {
942942
943943 if ( !no_pseudo_rep ) {
944944
945- if ( ctl_exists() ) {
945+ if ( is_TF_chipseq() && ctl_exists() ) {
946946
947947 spp_pr1_o_dir := mkdir( "$spp_o_dir/pseudo_reps/rep$rep/pr1" )
948948 spp_pr2_o_dir := mkdir( "$spp_o_dir/pseudo_reps/rep$rep/pr2" )
@@ -1326,6 +1326,7 @@ string html_chipseq_tracks() {
13261326 if ( fc_bigwig.hasKey( "pooled" ) ) { trk_types += "bigwig"; trk_names += "$title fc (pooled)"; trk_files += fc_bigwig{"pooled"} }
13271327
13281328 if ( peak_overlap != "" ) { trk_types += "hammock"; trk_names += "$title peak overlap"; trk_files += peak_to_hammock( peak_overlap ) }
1329+ if ( gpeak_overlap != "" ) { trk_types += "hammock"; trk_names += "$title gpeak overlap"; trk_files += peak_to_hammock( gpeak_overlap ) }
13291330
13301331 if ( idr_opt != "" ) { trk_types += "hammock"; trk_names += "$title peak idr (opt. set)"; trk_files += peak_to_hammock( _get_idr_peak_trk( idr_opt ) ) }
13311332 if ( idr_consv != "" ) {trk_types += "hammock"; trk_names += "$title peak idr (cons. set)"; trk_files += peak_to_hammock( _get_idr_peak_trk( idr_consv ) ) }
0 commit comments