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
8a1ff38b
Commit
8a1ff38b
authored
10 months ago
by
nina.marthe_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
added a few progress bars
parent
22027111
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GrAnnoT/Functions_output.py
+4
-3
4 additions, 3 deletions
GrAnnoT/Functions_output.py
with
4 additions
and
3 deletions
GrAnnoT/Functions_output.py
+
4
−
3
View file @
8a1ff38b
from
.Graph_gff
import
Segments
,
Features
from
.Functions
import
*
from
tqdm
import
tqdm
# outputs the gff line of the target genome for a feature occurence (a feature can be transfered at several positions)
...
...
@@ -106,7 +107,7 @@ def transfer_on_target(segments_file, out_target_gff, out_var,out_aln,target_gen
reason_features_not_transfered
=
[
0
,
0
,
0
]
# bad_size, absent_features, low_cov_id
diff_size_transfered_features
=
[
0
,
0
]
# [count,sum], to get the average
for
feat
in
list_feature_to_transfer
:
for
feat
in
tqdm
(
list_feature_to_transfer
)
:
feature
=
Features
[
feat
]
if
feature
.
parent
==
""
:
# usually a gene
for
match
in
feature
.
segments_list_target
:
...
...
@@ -149,7 +150,7 @@ def transfer_on_target(segments_file, out_target_gff, out_var,out_aln,target_gen
seg_seq
=
get_segments_sequence
(
segments_file
,
segments_list
)
with
open
(
out_var
,
'
w
'
)
as
file_out_var
:
for
feat
in
list_feature_to_transfer
:
for
feat
in
tqdm
(
list_feature_to_transfer
)
:
feature
=
Features
[
feat
]
if
feature
.
parent
==
""
:
# usually a gene
for
match
in
feature
.
segments_list_target
:
# for all occurences of the gene
...
...
@@ -163,7 +164,7 @@ def transfer_on_target(segments_file, out_target_gff, out_var,out_aln,target_gen
line
=
"
Sequence alignment generated from feature path comparison in pangenome graph. Made with GrAnnoT v1.
\n\n
"
file_out_aln
.
write
(
line
)
for
feat
in
list_feature_to_transfer
:
for
feat
in
tqdm
(
list_feature_to_transfer
)
:
feature
=
Features
[
feat
]
if
feature
.
parent
==
""
:
# usually a gene
for
match
in
feature
.
segments_list_target
:
# for all occurences of the gene
...
...
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