Mercurial > repos > romaingred > pirna_pipeline
comparison bin/html.pm @ 30:a8a6e346893f draft
Uploaded
author | romaingred |
---|---|
date | Tue, 28 Nov 2017 08:54:34 -0500 |
parents | 16c3c1b0362a |
children | 0cffda6c3d1a |
comparison
equal
deleted
inserted
replaced
29:0a47c6cf912d | 30:a8a6e346893f |
---|---|
38 close $h; | 38 close $h; |
39 } | 39 } |
40 | 40 |
41 sub details_pages | 41 sub details_pages |
42 { | 42 { |
43 my ( $dir_details, $prefix, $list_mainTabP, $current, $misTE, $dir_root ) = @_; | 43 my ( $dir_details, $prefix, $list_mainTabP, $current, $misTE, $dir_root, $ppp ) = @_; |
44 my ($Hex, $HTE, $HG, $NonUniTE, $NonUniG, $UniG ) = get_subgroups( $dir_details, $current, $misTE, $dir_root ); | 44 my ($Hex, $HTE, $HG, $NonUniTE, $NonUniG, $UniG ) = get_subgroups( $dir_details, $current, $misTE, $dir_root ); |
45 | 45 |
46 my $html_ref = $1.'-PPP.html' if $prefix =~ /$dir_root(.*)/; | 46 my $html_ref = $1.'-PPP.html' if $prefix =~ /$dir_root(.*)/; |
47 open my $h, '>', $prefix.'-TEs.html' || die "cannot create $prefix-TEs.html $!\n"; | 47 open my $h, '>', $prefix.'-TEs.html' || die "cannot create $prefix-TEs.html $!\n"; |
48 header($h); | 48 header($h); |
49 navbar ( $h, $list_mainTabP, $current ); | 49 navbar ( $h, $list_mainTabP, $current ); |
50 if ( $prefix =~ /bonafide_reads$/ ) | 50 if ( $prefix =~ /piRNAs$/ && $ppp eq 'true' ) |
51 { | 51 { |
52 print $h " <div class=\"container\">"; | 52 print $h " <div class=\"container\">"; |
53 print $h " <p><a class=\"btn\" href=\"$html_ref\">Ping Pong Partners</a></p>\n"; | 53 print $h " <p><a class=\"btn\" href=\"$html_ref\">Ping Pong Partners</a></p>\n"; |
54 print $h "</div>"; | 54 print $h "</div>"; |
55 } | 55 } |