Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ORG.Annotate
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ORG.Asm
ORG.Annotate
Commits
26d91366
Commit
26d91366
authored
Oct 06, 2016
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the management of pseudogenes
parent
e30a53b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
28 deletions
+37
-28
detectors/cds/lib/toEmbl.awk
detectors/cds/lib/toEmbl.awk
+37
-28
No files found.
detectors/cds/lib/toEmbl.awk
View file @
26d91366
...
...
@@ -95,6 +95,7 @@ function Unk(s) {
/^c begin_entry/
{
Nexon
=
0
FrameShift
=
0
delete
Exon
next
}
...
...
@@ -107,6 +108,9 @@ function Unk(s) {
Exon
[
Nexon
][
"indels"
]
=
$9
"+"
$12
modif
=
$15
;
gsub
(
"\""
,
""
,
modif
)
Exon
[
Nexon
][
"modif"
]
=
modif
if
(
$0
~
/frameshifts +
[
0-9
]
+/
)
FrameShift
=
1
next
}
...
...
@@ -123,34 +127,39 @@ function Unk(s) {
/^c end_entry/
{
GeneName
=
Unk
(
GeneName
)
PassType
=
Unk
(
PassType
)
gname
=
(
Ngene
==
1
?
GeneName
:
GeneName
"_"
++
Igene
)
locus
=
""
Feature
(
"gene"
,
GeneLocation
())
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
Feature
(
"CDS"
,
CdsLocation
())
SQualifier
(
"codon_start"
,
1
)
SQualifier
(
"transl_table"
,
11
)
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
QQualifier
(
"product"
,
Product
)
QQualifier
(
"inference"
,
"similar to DNA sequence:"
Simil
)
QQualifier
(
"inference"
,
"org.annot -- detect pass:"
PassType
":"
PassInfo
)
QQualifier
(
"translation"
,
Translat
)
if
(
Nexon
>
1
)
{
for
(
i
=
1
;
i
<=
Nexon
;
i
++
)
{
Feature
(
"exon"
,
ExonLocation
(
i
))
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
SQualifier
(
"number"
,
Exon
[
1
][
"strand"
]
==
"+"
?
i
:
Nexon
-
i
+
1
)
}
}
GeneName
=
Unk
(
GeneName
)
PassType
=
Unk
(
PassType
)
gname
=
(
Ngene
==
1
?
GeneName
:
GeneName
"_"
++
Igene
)
locus
=
""
Feature
(
"gene"
,
GeneLocation
())
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
if
(
FrameShift
)
QQualifier
(
"pseudogene"
,
"unknown"
)
Feature
(
"CDS"
,
CdsLocation
())
SQualifier
(
"codon_start"
,
1
)
SQualifier
(
"transl_table"
,
11
)
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
if
(
FrameShift
)
QQualifier
(
"pseudogene"
,
"unknown"
)
QQualifier
(
"product"
,
Product
)
QQualifier
(
"inference"
,
"similar to DNA sequence:"
Simil
)
QQualifier
(
"inference"
,
"org.annot -- detect pass:"
PassType
":"
PassInfo
)
if
(
FrameShift
==
0
)
QQualifier
(
"translation"
,
Translat
)
if
(
Nexon
>
1
)
{
for
(
i
=
1
;
i
<=
Nexon
;
i
++
)
{
Feature
(
"exon"
,
ExonLocation
(
i
))
QQualifier
(
"gene"
,
gname
)
QQualifier
(
"locus_tag"
,
locus
)
SQualifier
(
"number"
,
Exon
[
1
][
"strand"
]
==
"+"
?
i
:
Nexon
-
i
+
1
)
}
}
}
Write
Preview
Markdown
is supported
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