annotate html_miRPlant.pl @ 0:87fe81de0931 draft default tip

Uploaded
author bigrna
date Sun, 04 Jan 2015 02:47:25 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
1 #!/usr/bin/perl -w
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
2 #Filename:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
3 #Author: Tian Dongmei
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
4 #Email: tiandm@big.ac.cn
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
5 #Date: 2014-5-29
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
6 #Modified:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
7 #Description:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
8 my $version=1.00;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
9
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
10 use strict;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
11 use Getopt::Long;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
12 use File::Basename;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
13
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
14 my %opts;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
15 GetOptions(\%opts,"i=s","format=s","o=s","h");
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
16 if (!(defined $opts{o} and defined $opts{format} and defined $opts{i} ) || defined $opts{h}) { #necessary arguments
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
17 &usage;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
18 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
19 my ($config,$prepath,$rfampath,$knownpath,$genomepath,$novelpath);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
20 my ($predir,$rfamdir,$knowndir,$genomedir,$noveldir);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
21 open IN,"<$opts{i}";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
22 $config=<IN>; chomp $config;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
23 $prepath=<IN>; chomp $prepath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
24 $knownpath=<IN>; chomp $knownpath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
25 $rfampath=<IN>;chomp $rfampath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
26 $genomepath=<IN>; chomp $genomepath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
27 $novelpath=<IN>; chomp $novelpath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
28 close IN;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
29 my @tmp=split/\//,$prepath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
30 $predir=$tmp[-1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
31 @tmp=split/\//,$rfampath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
32 $rfamdir=$tmp[-1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
33 @tmp=split/\//,$knownpath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
34 $knowndir=$tmp[-1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
35 @tmp=split/\//,$genomepath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
36 $genomedir=$tmp[-1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
37 @tmp=split/\//,$novelpath;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
38 $noveldir=$tmp[-1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
39
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
40 my $dir=dirname($opts{'o'});
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
41
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
42 open OUT ,">$opts{'o'}";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
43 print OUT "<HTML>\n <HEAD>\n <TITLE> Analysis Report </TITLE>\n </HEAD>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
44 <BODY bgcolor=\"lightgray\">\n <h1 align=\"center\">\n <font face=\"ºÚÌå\">\n <b>Small RNA Analysis Report</b>\n </font>\n </h1>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
45 <h2>1. Sequence No. and quality</h2>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
46 <h3>1.1 Sequece No.</h3>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
47 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
48
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
49 ### raw data no
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
50 open IN,"<$config";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
51 my @files;my @marks; my @rawNo;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
52 while (my $aline=<IN>) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
53 chomp $aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
54 my @tmp=split/\t/,$aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
55 push @files,$tmp[0];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
56
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
57 my $no=`less $tmp[0] |wc -l `;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
58 chomp $no;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
59 if ($opts{'format'} eq "fq" || $opts{'format'} eq "fastq") {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
60 $no=$no/4;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
61 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
62 else{
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
63 $no=$no/2;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
64 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
65 push @rawNo,$no;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
66
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
67 push @marks,$tmp[1];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
68 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
69 close IN;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
70
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
71 ### preprocess
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
72 unless ($prepath=~/\/$/) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
73 $prepath .="/";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
74 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
75
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
76 my @trimNo;my @collapse;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
77 my $collapsefile=$prepath."collapse_reads.fa";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
78 open IN,"<$collapsefile";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
79 while (my $aline=<IN>) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
80 chomp $aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
81 <IN>;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
82 $aline=~/:([\d|_]+)_x(\d+)$/;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
83 my @lng=split/_/,$1;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
84 for (my $i=0;$i<@lng;$i++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
85 if ($lng[$i]>0) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
86 $trimNo[$i] +=$lng[$i];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
87 $collapse[$i] ++;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
88 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
89 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
90 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
91 close IN;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
92
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
93 my @cleanR;my @cleanT;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
94 my $clean=$prepath."collapse_reads_19_28.fa";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
95 open IN,"<$clean";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
96 while (my $aline=<IN>) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
97 chomp $aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
98 <IN>;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
99 $aline=~/:([\d|_]+)_x(\d+)$/;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
100 my @lng=split/_/,$1;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
101 for (my $i=0;$i<@lng;$i++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
102 if ($lng[$i]>0) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
103 $cleanR[$i] +=$lng[$i];
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
104 $cleanT[$i] ++;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
105 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
106 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
107 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
108 close IN;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
109
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
110 print OUT "<table border=\"1\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
111 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
112 <th>&nbsp;</th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
113 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
114 foreach (@marks) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
115 print OUT "<th> $_ </th>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
116 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
117 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
118 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
119 <th align=\"left\">Raw Reads No. </th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
120 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
121 foreach (@rawNo) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
122 print OUT "<td> $_ </td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
123 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
124 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
125 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
126 <th align=\"left\">Reads No. After Trimed 3\' adapter </th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
127 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
128 foreach (@trimNo) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
129 print OUT "<td> $_ </td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
130 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
131 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
132 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
133 <th align=\"left\">Unique Tags No. </th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
134 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
135 foreach (@collapse) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
136 print OUT "<td> $_ </td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
137 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
138 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
139 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
140 <th align=\"left\">Clean Reads No. </th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
141 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
142 foreach (@cleanR) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
143 print OUT "<td> $_ </td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
144 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
145 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
146 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
147 <th align=\"left\">Clean Tags No. </th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
148 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
149 foreach (@cleanT) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
150 print OUT "<td> $_ </td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
151 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
152 print OUT "</tr>\n</table>";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
153 print OUT "<p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
154 Note:<br />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
155 The raw data file path is: <b>$files[0]</b><br />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
156 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
157 for (my $i=1;$i<@files;$i++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
158 print OUT "&nbsp;&nbsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<b>$files[$i]</b><br />";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
159 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
160 print OUT "The collapsed file path is: <b>$collapsefile</b><br />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
161 The clean data file path is: <b>$clean</b><br />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
162 </p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
163 <h2> 1. Sequence length count</h2>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
164 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
165 print OUT "\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
166
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
167 my $length=$prepath."length.html";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
168 open IN,"<$length";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
169 while (my $aline=<IN>) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
170 chomp $aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
171 print OUT "$aline\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
172 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
173
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
174 print OUT "<p> Note:<br />The sequence length data: <a href=\"./$predir/reads_length_distribution.txt\"> length file</a>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
175 </p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
176 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
177
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
178 #### rfam
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
179 unless ($rfampath=~/\/$/) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
180 $rfampath .="/";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
181 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
182 print OUT "<h2>2. Rfam non-miRNA annotation</h2>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
183 <h3>2.1 Reads count</h3>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
184 <table border=\"1\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
185 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
186 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
187
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
188 my @rfamR; my @rfamT;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
189 my $tag=1;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
190 open IN,"<$dir/rfam_non-miRNA_annotation.txt";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
191 while (my $aline=<IN>) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
192 chomp $aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
193 $tag=0 if($aline=~/tags\s+number/);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
194 next if($aline=~/^\#/);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
195 next if($aline=~/^\s*$/);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
196 my @tmp=split/\s+/,$aline;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
197 if($tag == 1){push @rfamR,[@tmp];}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
198 else{push @rfamT,[@tmp];}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
199 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
200 close IN;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
201
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
202
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
203 print OUT "<th>RNA Name</th>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
204 foreach (@marks) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
205 print OUT "<th> $_ </th>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
206 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
207 for (my $i=0;$i<@rfamR;$i++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
208 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
209 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
210 <th align=\"left\">$rfamR[$i][0]</th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
211 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
212 for (my $j=1;$j<@{$rfamR[$i]} ;$j++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
213 print OUT "<td> $rfamR[$i][$j]</td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
214 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
215 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
216
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
217 print OUT "</tr>\n</table>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
218 <h3>2.2 Tags count</h3>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
219 <table border=\"1\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
220 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
221 <th>RNA Name</th>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
222 foreach (@marks) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
223 print OUT "<th> $_ </th>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
224 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
225 for (my $i=0;$i<@rfamT;$i++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
226 print OUT "</tr>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
227 <tr align=\"center\">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
228 <th align=\"left\">$rfamT[$i][0]</th>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
229 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
230 for (my $j=1;$j<@{$rfamT[$i]} ;$j++) {
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
231 print OUT "<td> $rfamT[$i][$j]</td>\n";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
232 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
233 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
234 print OUT "</tr>\n</table>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
235 <p>Note:<br />The rfam mapping results is: <b>$rfampath</b>";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
236 print OUT "<b>rfam_mapped.bwt</b></p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
237 <h2>3. MicroRNA result</h2>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
238 <h3>3.1 known microRNA</h3>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
239 <p>The known microRNA express list: <a href=\"./known_microRNA_express.txt\"> known_microRNA_express.txt</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
240 The known microRNA alngment file: <a href=\"./known_microRNA_express.aln\"> known_microRNA_express.aln</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
241 The known moRs file: <a href=\"./known_microRNA_express.moRs\"> known_microRNA_express.moRs</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
242 The known microRNA mature sequence file: <a href=\"./known_microRNA_mature.fa\"> known_microRNA_mature.fa</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
243 The knowm microRNA precursor sequence file: <a href=\"./known_microRNA_precursor.fa\"> known_microRNA_precursor.fa</a>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
244 </p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
245
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
246 <h3>3.2 novel microRNA</h3>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
247 <p>The novel microRNA prediction file:<a href=\"./microRNA_prediction.mrd\"> microRNA_prediction.mrd</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
248 The novel microRNA express list: <a href=\"./novel_microRNA_express.txt\"> novel_microRNA_express.txt</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
249 The novel microRNA mature sequence file: <a href=\"./novel_microRNA_mature.fa\"> novel_microRNA_mature.fa</a><br/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
250 The novel microRNA precursor sequence file: <a href=\"./novel_microRNA_precursor.fa\"> novel_microRNA_precursor.fa</a>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
251 </p>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
252 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
253
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
254
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
255
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
256 print OUT "
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
257 </BODY>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
258 </HTML>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
259 ";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
260 close OUT;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
261
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
262 sub usage{
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
263 print <<"USAGE";
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
264 Version $version
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
265 Usage:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
266 $0 -o
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
267 options:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
268 -o output file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
269 -h help
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
270 USAGE
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
271 exit(1);
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
272 }
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
273