File tree 1 file changed +15
-0
lines changed 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -900,6 +900,11 @@ def fourier_transform(
900
900
"""
901
901
fourier_scores = {}
902
902
global_counts = []
903
+ read_lengths = [i for i in read_lengths if i in metagene_profile ['start' ].keys ()]
904
+
905
+ if not read_lengths :
906
+ read_lengths = metagene_profile ['start' ].keys ()
907
+
903
908
for read_len in read_lengths :
904
909
if not global_counts :
905
910
global_counts = list (metagene_profile ['start' ][read_len ].values ())
@@ -976,6 +981,11 @@ def multitaper(
976
981
"""
977
982
multitaper_scores = {}
978
983
global_counts = []
984
+ read_lengths = [i for i in read_lengths if i in metagene_profile ['start' ].keys ()]
985
+
986
+ if not read_lengths :
987
+ read_lengths = metagene_profile ['start' ].keys ()
988
+
979
989
for read_len in read_lengths :
980
990
if not global_counts :
981
991
global_counts = list (metagene_profile ['start' ][read_len ].values ())
@@ -1022,6 +1032,11 @@ def wavelet_transform(
1022
1032
"""
1023
1033
wavelet_scores = {}
1024
1034
global_counts = []
1035
+ read_lengths = [i for i in read_lengths if i in metagene_profile ['start' ].keys ()]
1036
+
1037
+ if not read_lengths :
1038
+ read_lengths = metagene_profile ['start' ].keys ()
1039
+
1025
1040
for read_len in read_lengths :
1026
1041
if not global_counts :
1027
1042
global_counts = list (metagene_profile ['start' ][read_len ].values ())
You can’t perform that action at this time.
0 commit comments