Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastien Moretti
ProtoGene
Commits
3de29348
Commit
3de29348
authored
Aug 08, 2013
by
Sebastien Moretti
Browse files
If * is in the original sequence no need to switch ---
parent
ecb9cedd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProtoGene.pl
View file @
3de29348
...
...
@@ -1274,6 +1274,9 @@ sub buildCDSseq{
my
$locus
= 0;
for(my
$z
=0;
$z
<=length(
$input_seq
);
$z
++){
if (
$z
==length(
$input_seq
) ){
if (
$input_seq
=~ /
\
*$/ ){ # If * is in the original sequence no need to switch ---
$cdsSeq
=~ s{
\
-
\
-
\
-$}{};
}
$locus
++;
if ( exists(
$POSITIONS
{
$locus
}) && (
$POSITIONS
{
$locus
} eq 'TAA' ||
$POSITIONS
{
$locus
} eq 'TAG' ||
$POSITIONS
{
$locus
} eq 'TGA') ){
$cdsSeq
.=
$POSITIONS
{
$locus
};
...
...
@@ -1437,7 +1440,7 @@ sub revtransBuilding{
$final_seq
=
$final_seq
.reverse_trad(
$aa
);
}
$readyname
=~ s{_G_
$NTstatus
_S_
$BLASTstatus
}{_G_revtrans };
my
$CDSreformatedSeq
=
$final_seq
.
"
---\
n
"
; #FIXME
:
For stop codon ???
my
$CDSreformatedSeq
=
$final_seq
.
"
---\
n
"
; #FIXME For stop codon ???
$CDSreformatedSeq
=~ s{([^
\n
]{60})}{$1
\n
}g;
chomp
$CDSreformatedSeq
if (
$CDSreformatedSeq
=~ /
\n
+$/ );
print CDS
"
$readyname
\
n$CDSreformatedSeq
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment