@@ -22,15 +22,14 @@ from multiprocessing import Pool
22
22
from Bio import SeqIO
23
23
from glob import glob
24
24
from pathlib import Path
25
- from random import shuffle
26
25
27
26
28
27
import extend as ext
29
28
from tqdm import tqdm
30
29
31
- __version__ = "2.0.0 "
30
+ __version__ = "2.0.1 "
32
31
reroot_tree = True #use --midpoint-reroot
33
- random .seed (42 )
32
+ random_seeded = random .Random (42 )
34
33
35
34
try :
36
35
import dendropy
@@ -1223,7 +1222,7 @@ SETTINGS:
1223
1222
reflen = 0
1224
1223
1225
1224
if ref == "!" :
1226
- ref = random .choice (input_files )
1225
+ ref = random_seeded .choice (input_files )
1227
1226
1228
1227
# Check if reference genome is aligned
1229
1228
reflen = check_ref_genome_aligned (ref )
@@ -1444,6 +1443,7 @@ SETTINGS:
1444
1443
ffo .close ()
1445
1444
ref = auto_ref
1446
1445
1446
+ finalfiles = sorted (finalfiles )
1447
1447
totseqs = len (finalfiles )
1448
1448
1449
1449
#initiate parallelPhiPack tasks
@@ -1614,7 +1614,7 @@ SETTINGS:
1614
1614
1615
1615
full_query_list_path = f"{ outputDir } /config/input-list.txt"
1616
1616
with open (full_query_list_path , 'w' ) as input_list_handle :
1617
- shuffle (finalfiles )
1617
+ random_seeded . shuffle (finalfiles )
1618
1618
for qf in finalfiles :
1619
1619
input_list_handle .write (qf + "\n " )
1620
1620
@@ -1651,7 +1651,7 @@ SETTINGS:
1651
1651
logger .error (f"Partition { cl } failed..." )
1652
1652
good_chunks .remove (cl )
1653
1653
1654
- chunk_labels = list (good_chunks )
1654
+ chunk_labels = sorted ( list (good_chunks ) )
1655
1655
1656
1656
logger .info ("Computing intersection of all partition LCBs..." )
1657
1657
chunk_to_intvervaldict = partition .get_chunked_intervals (partition_output_dir , chunk_labels )
0 commit comments