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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: moose_classifier
3
- Version: 0.11
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
 
@@ -20,7 +20,7 @@ license = {file = "LICENSE"}
20
20
  name = "moose_classifier"
21
21
  readme = "README.md"
22
22
  requires-python = ">=3.7"
23
- version = "0.11"
23
+ version = "0.12"
24
24
 
25
25
  [project.urls]
26
26
  repository = "https://github.com/crosenth/moose"
@@ -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(select_best_hits)
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
1
+ Metadata-Version: 2.4
2
2
  Name: moose_classifier
3
- Version: 0.11
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