hi im writing this code to determine number of start codons after but I keep getting an error, this is the following code
RNAseq = split('', $RNA);
$nstart = 0; #number of start codons
$start = 'AUG';
for ($i=0; $i<$mlength -2; $i ++)
{
@codon = @RNAseq[$i, $i+1, $i+2];
$cod = join('', @codon);
if ($cod eq $start)
{
$start[$nstart]= $i;
$nstart ++;
}
}
print "\n Number of start codons is: $nstart";
I get an error saying name "Main:mlength" used only once and a possible typo at that line. Any help please?
RNAseq = split('', $RNA);
$nstart = 0; #number of start codons
$start = 'AUG';
for ($i=0; $i<$mlength -2; $i ++)
{
@codon = @RNAseq[$i, $i+1, $i+2];
$cod = join('', @codon);
if ($cod eq $start)
{
$start[$nstart]= $i;
$nstart ++;
}
}
print "\n Number of start codons is: $nstart";
I get an error saying name "Main:mlength" used only once and a possible typo at that line. Any help please?