moose-classifier 0.10__tar.gz → 0.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moose_classifier-0.10 → moose_classifier-0.12}/PKG-INFO +3 -2
- {moose_classifier-0.10 → moose_classifier-0.12}/pyproject.toml +1 -1
- {moose_classifier-0.10 → moose_classifier-0.12}/src/classify.py +7 -9
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/PKG-INFO +3 -2
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/SOURCES.txt +1 -1
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/top_level.txt +1 -1
- moose_classifier-0.10/src/__init__.py → moose_classifier-0.12/src/version.py +1 -1
- {moose_classifier-0.10 → moose_classifier-0.12}/tests/test_classify.py +1 -1
- {moose_classifier-0.10 → moose_classifier-0.12}/LICENSE +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/README.md +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/setup.cfg +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/src/lineages.py +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/dependency_links.txt +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/entry_points.txt +0 -0
- {moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/requires.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: moose_classifier
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12
|
|
4
4
|
Summary: Alignment based taxonomic classifier
|
|
5
5
|
Author: Chris Rosenthal
|
|
6
6
|
Author-email: crosenth@gmail.com
|
|
@@ -690,6 +690,7 @@ Requires-Python: >=3.7
|
|
|
690
690
|
Description-Content-Type: text/markdown
|
|
691
691
|
License-File: LICENSE
|
|
692
692
|
Requires-Dist: pandas>=2.0.2
|
|
693
|
+
Dynamic: license-file
|
|
693
694
|
|
|
694
695
|
# moose
|
|
695
696
|
|
|
@@ -132,7 +132,7 @@ import bz2
|
|
|
132
132
|
import csv
|
|
133
133
|
import gzip
|
|
134
134
|
import itertools
|
|
135
|
-
|
|
135
|
+
import lineages
|
|
136
136
|
import logging
|
|
137
137
|
import lzma
|
|
138
138
|
import math
|
|
@@ -142,6 +142,7 @@ import operator
|
|
|
142
142
|
import os
|
|
143
143
|
import sys
|
|
144
144
|
import tarfile
|
|
145
|
+
import version
|
|
145
146
|
|
|
146
147
|
ASSIGNMENT_TAX_ID = 'assignment_tax_id'
|
|
147
148
|
|
|
@@ -411,7 +412,8 @@ def action(args):
|
|
|
411
412
|
'threshold_level', 'assignment_level',
|
|
412
413
|
'threshold_level_threshold', 'assignment_level_threshold']
|
|
413
414
|
return_cols = ['assignment_threshold', 'best_hit']
|
|
414
|
-
best_hits[return_cols] = spec_group[sub_cols].apply(
|
|
415
|
+
best_hits.loc[:, return_cols] = spec_group[sub_cols].apply(
|
|
416
|
+
select_best_hits)
|
|
415
417
|
best_hits = best_hits[best_hits['best_hit']]
|
|
416
418
|
|
|
417
419
|
if args.hits_below_threshold:
|
|
@@ -505,20 +507,16 @@ def action(args):
|
|
|
505
507
|
qseqids['assignment_hash'] = 0
|
|
506
508
|
qseqids['assignment_tax_name'] = ''
|
|
507
509
|
qseqids['assignment_rank'] = ''
|
|
510
|
+
qseqids['assignment_rank'] = qseqids['assignment_rank'].astype(cat_ranks)
|
|
508
511
|
qseqids['assignment_threshold'] = numpy.nan
|
|
509
512
|
qseqids['condensed_id'] = ''
|
|
510
513
|
qseqids['condensed_rank'] = ''
|
|
514
|
+
qseqids['condensed_rank'] = qseqids['condensed_rank'].astype(cat_ranks)
|
|
511
515
|
qseqids['starred'] = ''
|
|
512
516
|
|
|
513
|
-
if aligns.empty:
|
|
514
|
-
dtypes = qseqids.dtypes
|
|
515
|
-
else:
|
|
516
|
-
dtypes = aligns.dtypes
|
|
517
|
-
|
|
518
517
|
# add back qseqids that have no hits back into aligns
|
|
519
518
|
if not qseqids.empty:
|
|
520
519
|
aligns = pd.concat([aligns, qseqids])
|
|
521
|
-
aligns = aligns.astype(dtypes)
|
|
522
520
|
|
|
523
521
|
# concludes our alignment details, on to output summary
|
|
524
522
|
logging.info('summarizing output')
|
|
@@ -713,7 +711,7 @@ def build_parser():
|
|
|
713
711
|
package_parser.add_argument(
|
|
714
712
|
'-V', '--version',
|
|
715
713
|
action='version',
|
|
716
|
-
version=__version__,
|
|
714
|
+
version=version.__version__,
|
|
717
715
|
help='Print the version number and exit')
|
|
718
716
|
package_parser.add_argument(
|
|
719
717
|
'-l', '--log',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: moose_classifier
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12
|
|
4
4
|
Summary: Alignment based taxonomic classifier
|
|
5
5
|
Author: Chris Rosenthal
|
|
6
6
|
Author-email: crosenth@gmail.com
|
|
@@ -690,6 +690,7 @@ Requires-Python: >=3.7
|
|
|
690
690
|
Description-Content-Type: text/markdown
|
|
691
691
|
License-File: LICENSE
|
|
692
692
|
Requires-Dist: pandas>=2.0.2
|
|
693
|
+
Dynamic: license-file
|
|
693
694
|
|
|
694
695
|
# moose
|
|
695
696
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{moose_classifier-0.10 → moose_classifier-0.12}/src/moose_classifier.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|