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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DIADE
dynadiv
GrAnnoT
Commits
99b32fd0
Commit
99b32fd0
authored
Apr 24, 2024
by
nina.marthe_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
the dict seg_size is now built from the function get_segments_lengths in main
parent
cf3c3229
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+3
-10
3 additions, 10 deletions
main.py
with
3 additions
and
10 deletions
main.py
+
3
−
10
View file @
99b32fd0
...
@@ -54,16 +54,9 @@ if args.annotation or args.variation or args.alignment:
...
@@ -54,16 +54,9 @@ if args.annotation or args.variation or args.alignment:
seg_size
=
{}
seg_size
=
{}
if
args
.
annotation
:
if
args
.
annotation
:
segments_file
=
open
(
segments
,
'
r
'
)
# get a dictionnary with the segment sizes
lines
=
segments_file
.
readlines
()
seg_size
=
get_segments_length
(
segments
)
segments_file
.
close
()
# build a dictionnary with the segment sizes
for
line
in
lines
:
line
=
line
.
split
()
seg_id
=
'
s
'
+
line
[
1
]
segment_size
=
len
(
line
[
2
])
seg_size
[
seg_id
]
=
segment_size
genome_index
=
0
genome_index
=
0
for
target_genome
in
args
.
target
:
for
target_genome
in
args
.
target
:
...
...
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
sign in
to comment