diff options
author | BonfaceKilz | 2020-08-19 03:45:49 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-19 03:45:49 +0300 |
commit | 3aaa28ea762c496eeb84e09e45194e3fd2a51673 (patch) | |
tree | a572b34f4237fefd02eaba12bbe1aeac74d77497 /scripts/maintenance/readProbeSetMean_v7.py | |
parent | 9d5dff44fb4d07f926659dde0c6205bf12a1ca5b (diff) | |
download | genenetwork2-3aaa28ea762c496eeb84e09e45194e3fd2a51673.tar.gz |
Make Python more idiomatic
Run `2to3-3.8 -f idioms -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
Diffstat (limited to 'scripts/maintenance/readProbeSetMean_v7.py')
-rwxr-xr-x | scripts/maintenance/readProbeSetMean_v7.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/maintenance/readProbeSetMean_v7.py b/scripts/maintenance/readProbeSetMean_v7.py index 97767715..864b4e08 100755 --- a/scripts/maintenance/readProbeSetMean_v7.py +++ b/scripts/maintenance/readProbeSetMean_v7.py @@ -80,8 +80,7 @@ while line: if kj%100000 == 0: print(('checked ',kj,' lines')) -GeneList = list(map(string.lower, GeneList)) -GeneList.sort() +GeneList = sorted(map(string.lower, GeneList)) if isCont==0: sys.exit(0) @@ -148,9 +147,8 @@ for item in results: print(Names) -Names = list(map(string.lower, Names)) +Names = sorted(map(string.lower, Names)) -Names.sort() # -- Fixed the lower case problem of ProbeSets affx-mur_b2_at doesn't exist --# ##---- compare genelist with names ----## |