moose-classifier 0.11__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.11 → moose_classifier-0.12}/PKG-INFO +3 -2
- {moose_classifier-0.11 → moose_classifier-0.12}/pyproject.toml +1 -1
- {moose_classifier-0.11 → moose_classifier-0.12}/src/classify.py +4 -7
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/PKG-INFO +3 -2
- {moose_classifier-0.11 → moose_classifier-0.12}/LICENSE +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/README.md +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/setup.cfg +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/lineages.py +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/SOURCES.txt +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/dependency_links.txt +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/entry_points.txt +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/requires.txt +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/top_level.txt +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/src/version.py +0 -0
- {moose_classifier-0.11 → moose_classifier-0.12}/tests/test_classify.py +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
|
|
|
@@ -412,7 +412,8 @@ def action(args):
|
|
|
412
412
|
'threshold_level', 'assignment_level',
|
|
413
413
|
'threshold_level_threshold', 'assignment_level_threshold']
|
|
414
414
|
return_cols = ['assignment_threshold', 'best_hit']
|
|
415
|
-
best_hits[return_cols] = spec_group[sub_cols].apply(
|
|
415
|
+
best_hits.loc[:, return_cols] = spec_group[sub_cols].apply(
|
|
416
|
+
select_best_hits)
|
|
416
417
|
best_hits = best_hits[best_hits['best_hit']]
|
|
417
418
|
|
|
418
419
|
if args.hits_below_threshold:
|
|
@@ -506,20 +507,16 @@ def action(args):
|
|
|
506
507
|
qseqids['assignment_hash'] = 0
|
|
507
508
|
qseqids['assignment_tax_name'] = ''
|
|
508
509
|
qseqids['assignment_rank'] = ''
|
|
510
|
+
qseqids['assignment_rank'] = qseqids['assignment_rank'].astype(cat_ranks)
|
|
509
511
|
qseqids['assignment_threshold'] = numpy.nan
|
|
510
512
|
qseqids['condensed_id'] = ''
|
|
511
513
|
qseqids['condensed_rank'] = ''
|
|
514
|
+
qseqids['condensed_rank'] = qseqids['condensed_rank'].astype(cat_ranks)
|
|
512
515
|
qseqids['starred'] = ''
|
|
513
516
|
|
|
514
|
-
if aligns.empty:
|
|
515
|
-
dtypes = qseqids.dtypes
|
|
516
|
-
else:
|
|
517
|
-
dtypes = aligns.dtypes
|
|
518
|
-
|
|
519
517
|
# add back qseqids that have no hits back into aligns
|
|
520
518
|
if not qseqids.empty:
|
|
521
519
|
aligns = pd.concat([aligns, qseqids])
|
|
522
|
-
aligns = aligns.astype(dtypes)
|
|
523
520
|
|
|
524
521
|
# concludes our alignment details, on to output summary
|
|
525
522
|
logging.info('summarizing output')
|
|
@@ -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
|
|
File without changes
|
{moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{moose_classifier-0.11 → moose_classifier-0.12}/src/moose_classifier.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|