Singh121 has asked for the wisdom of the Perl Monks concerning the following question:
Then the second part of my code to display my results is this:#writing the results into an output HTML file. $outputfile = 'html_assignment.html'; open (OUTFILE, ">$outputfile"); print OUTFILE "<html> <head> <title> Applied Bioinformatics Assignment 1 </title> </body> </html>"; # user entry of DNA sequence prompt asking if DNA will be manually ent +ered or a file uploaded #manual input will allow a check to occur to ensure correct entry. print "To upload a file containing your DNA sequence press 1, or alter +nativly press 2 to manually enter your DNA sequence \n\n"; $usrinput = <STDIN>; chomp $usrinput;
The question's I have are:#start the string from position 0 $revprotein3 = substr($dna,3); #Translate the DNA to protein $revprotein3 = dna2peptide($revprotein3); #Print the sequence in lines of 50 characters long print "\n\n<----------------Reverse compliment peptide frame 3-------- +--------> \n\n"; print_sequence ($revprotein3,50); # printing data sequences to HTML print OUTFILE "<table boarder = 0 width = 25> <tr><td> Peptide sequence frame 1</td></tr> <tr></tr> <tr><td> $protein </td></tr> <tr></tr> <tr><td> Peptide sequence frame 2 </td></tr> <tr></tr> <tr><td> $protein2 </td></tr> <tr></tr> <tr><td> Peptide sequence frame 3 </td></tr> <tr></tr> <tr><td> $protein3 </td></tr> <tr></tr> <tr><td> Peptide reverse compliment sequence Frame 1 </tr></td> <tr></tr> <tr><td> $revprotein </td></tr> <tr></tr> <tr><td> Peptide reverse compliment sequence Frame 2 </tr></td> <tr></tr> <tr><td> $revprotein2 </td></tr> <tr></tr> <tr><td> Peptide reverse compliment sequence Frame 2 </tr></td> <tr></tr> <tr><td> $revprotein3 </td></tr>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL HTML HELP
by blue_cowdawg (Monsignor) on Oct 19, 2012 at 15:53 UTC | |
by Singh121 (Initiate) on Oct 20, 2012 at 11:01 UTC | |
|
Re: PERL HTML HELP
by flexvault (Monsignor) on Oct 19, 2012 at 15:50 UTC | |
by Singh121 (Initiate) on Oct 20, 2012 at 10:58 UTC | |
|
Re: PERL HTML HELP
by tobyink (Canon) on Oct 19, 2012 at 15:58 UTC | |
by Singh121 (Initiate) on Oct 20, 2012 at 11:02 UTC | |
by Singh121 (Initiate) on Oct 20, 2012 at 18:37 UTC | |
by ww (Archbishop) on Oct 21, 2012 at 19:22 UTC | |
|
WHAT YOU SAY?
by LanX (Saint) on Oct 19, 2012 at 15:58 UTC |