Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GrAnnoT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DIADE
dynadiv
GrAnnoT
Commits
18259c64
Commit
18259c64
authored
1 year ago
by
nina.marthe_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
modified output form
parent
af142979
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inference.py
+3
-4
3 additions, 4 deletions
inference.py
with
3 additions
and
4 deletions
inference.py
+
3
−
4
View file @
18259c64
...
@@ -259,11 +259,12 @@ for feature in Features.values(): # add the sequence of all features
...
@@ -259,11 +259,12 @@ for feature in Features.values(): # add the sequence of all features
# analysing the variations for all the mrna :
# analysing the variations for all the mrna :
for
mrna_id
in
mrna_var
.
keys
():
for
mrna_id
in
mrna_var
.
keys
():
print
(
"
analysis of the variations in the mRNA
"
,
mrna_id
,
"
:
\n
"
)
cds_var
=
mrna_var
[
mrna_id
]
cds_var
=
mrna_var
[
mrna_id
]
for
cds_id
in
cds_var
:
for
cds_id
in
cds_var
:
cds
=
Features
[
cds_id
]
cds
=
Features
[
cds_id
]
print
(
"
analysis of the variations in the
CDS
"
,
cds_id
,
"
:
\n
"
)
print
(
"
\n
CDS
"
,
cds_id
,
"
:
"
)
frameshift
=
0
frameshift
=
0
for
index
,
var
in
enumerate
(
cds_var
[
cds_id
]):
# for each variation in the current cds :
for
index
,
var
in
enumerate
(
cds_var
[
cds_id
]):
# for each variation in the current cds :
type_var
=
var
[
8
]
type_var
=
var
[
8
]
...
@@ -280,7 +281,7 @@ for mrna_id in mrna_var.keys():
...
@@ -280,7 +281,7 @@ for mrna_id in mrna_var.keys():
else
:
else
:
length_alt
=
len
(
var
[
10
])
length_alt
=
len
(
var
[
10
])
print
(
"
variation
"
,
index
+
1
,
"
:
"
)
print
(
"
\n
variation
"
,
index
+
1
,
"
:
"
)
if
posVar
[
0
]
<
3
:
if
posVar
[
0
]
<
3
:
print
(
"
variation of the start codon, mRNA most likely wont be translated
"
)
print
(
"
variation of the start codon, mRNA most likely wont be translated
"
)
...
@@ -354,5 +355,3 @@ for mrna_id in mrna_var.keys():
...
@@ -354,5 +355,3 @@ for mrna_id in mrna_var.keys():
# possible that it prints too many variations : for ex if we have a snp on the first and the last base of a codon,
# possible that it prints too many variations : for ex if we have a snp on the first and the last base of a codon,
# while printing the effect of the first snp we aso use the second one.
# while printing the effect of the first snp we aso use the second one.
print
(
"
\n
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment