Perl Help to find orf
0
0
Entering edit mode
8.0 years ago
ksi216 ▴ 80

Create a new subroutine that accepts a reference to an array containing multiple sequences and returns the first reading frame for each sequence

perl orf • 1.8k views
ADD COMMENT
0
Entering edit mode

Hello ksi216!

We believe that this post does not fit the main topic of this site.

This sounds like literal copy paste of homework, what have you tried?

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLY
0
Entering edit mode

It is a homework assignment, but I'm having trouble. I'm a bioinformatics student. This is what I tried

use strict;
use warnings;

sub revcomp{
    my($DNAin) = @_;
    my($DNAout) = reverse($DNAin);
    $DNAout =~ tr/ACGT/TGCA/;
    return $DNAout;

    my $DNA= "CCTCACACGCCCTGTTCTGGTGTCTGGTCGGATGTGTTGGTCGTGCGCAGATTGGTGCTC"; #declare scalar for seq
    my $rcDNA=recvomp($DNA);
    print "rcDNA\n";
}
ADD REPLY
0
Entering edit mode

This looks like code from your previous assignment but is unrelated to the new assignment, you haven't even created a new subroutine. Unfortunately this format is not really suitable to teach programming from scratch, and I don't want to do your homework completely. I think you have to try harder here, means post some code that is at least close to what is asked for. Hint: what is an "(open) reading frame", does it need to be translated at all? How do you declare a subroutine?

ADD REPLY

Login before adding your answer.

Traffic: 1876 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6