@@ -39,7 +39,7 @@ def cover_dataset(
39
39
40
40
final_reads = set ()
41
41
# sanity check
42
- if span_length / options .fragment_mean < 5 :
42
+ if span_length / fragment_model .fragment_mean < 5 :
43
43
_LOG .warning ("The fragment mean is relatively large compared to the chromosome size. You may need to increase "
44
44
"standard deviation, or decrease fragment mean, if NEAT cannot complete successfully." )
45
45
# precompute how many reads we want
@@ -79,7 +79,7 @@ def cover_dataset(
79
79
# these are equivalent of reads we expect the machine to filter out, but we won't actually use it
80
80
if end - start < options .read_len :
81
81
# add some random flavor to try to keep it to falling into a loop
82
- if options .rng .normal () < 0.5 :
82
+ if fragment_model .rng .normal () < 0.5 :
83
83
fragment_pool .insert (len (fragment_pool )// 2 , fragment )
84
84
else :
85
85
fragment_pool .insert (len (fragment_pool ) - 3 , fragment )
@@ -124,7 +124,7 @@ def cover_dataset(
124
124
# Convert set to final list
125
125
final_reads = list (final_reads )
126
126
# Now we shuffle them to add some randomness
127
- options .rng .shuffle (final_reads )
127
+ fragment_model .rng .shuffle (final_reads )
128
128
# And only return the number we needed
129
129
_LOG .debug (f"Coverage required { loop_count } loops" )
130
130
if options .paired_ended :
0 commit comments