Skip to content
Snippets Groups Projects
Commit 99b32fd0 authored by nina.marthe_ird.fr's avatar nina.marthe_ird.fr
Browse files

the dict seg_size is now built from the function get_segments_lengths in main

parent cf3c3229
Branches
No related tags found
No related merge requests found
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment