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
c6236928
Commit
c6236928
authored
1 year ago
by
nina.marthe_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
modified the setting of the parameter max_diff
parent
1c66ed6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Functions_output.py
+1
-2
1 addition, 2 deletions
Functions_output.py
main.py
+2
-1
2 additions, 1 deletion
main.py
with
3 additions
and
3 deletions
Functions_output.py
+
1
−
2
View file @
c6236928
...
@@ -51,7 +51,7 @@ def gff_one(first_seg,last_seg,feature_id,list_seg,max_diff):
...
@@ -51,7 +51,7 @@ def gff_one(first_seg,last_seg,feature_id,list_seg,max_diff):
# writes the gff of azucena using the gff of the graph
# writes the gff of azucena using the gff of the graph
def
genome_gff
(
pos_seg
,
gff
,
gfa
,
out_once
,
out_detail
,
out_var
,
target_genome_name
):
def
genome_gff
(
pos_seg
,
gff
,
gfa
,
out_once
,
out_detail
,
out_var
,
target_genome_name
,
max_diff
):
print
(
"
generation of the genome
'
s gff
"
)
print
(
"
generation of the genome
'
s gff
"
)
# create variables and open files
# create variables and open files
...
@@ -94,7 +94,6 @@ def genome_gff(pos_seg, gff, gfa, out_once, out_detail, out_var,target_genome_na
...
@@ -94,7 +94,6 @@ def genome_gff(pos_seg, gff, gfa, out_once, out_detail, out_var,target_genome_na
# outputs the feature once in a gff, from the first to the last segment present on the new genome
# outputs the feature once in a gff, from the first to the last segment present on the new genome
if
once
:
if
once
:
max_diff
=
2
# maximum difference size (n times bigger of smaller)
transfer_stat
=
gff_one
(
first_seg
,
last_seg
,
feat
,
list_seg
,
max_diff
)
# insertion not considered !!!
transfer_stat
=
gff_one
(
first_seg
,
last_seg
,
feat
,
list_seg
,
max_diff
)
# insertion not considered !!!
if
transfer_stat
==
"
bad_size
"
:
if
transfer_stat
==
"
bad_size
"
:
bad_size_features
+=
1
bad_size_features
+=
1
...
...
This diff is collapsed.
Click to expand it.
main.py
+
2
−
1
View file @
c6236928
...
@@ -42,7 +42,8 @@ if run=="command_line":
...
@@ -42,7 +42,8 @@ if run=="command_line":
graph_gaf
(
out_gaf
,
gfa
)
graph_gaf
(
out_gaf
,
gfa
)
# outputs the gff of a genome for the chr10
# outputs the gff of a genome for the chr10
genome_gff
(
pos_seg
,
out_gff
,
gfa
,
out_once
,
out_detail
,
out_var
,
target_genome_name
)
max_diff
=
2
# maximum size difference (n times bigger or smaller) between the gene on the reference genome and the gene on the target genome for the gene to be transfered.
genome_gff
(
pos_seg
,
out_gff
,
gfa
,
out_once
,
out_detail
,
out_var
,
target_genome_name
,
max_diff
)
...
...
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