XspecT 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

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.

Potentially problematic release.


This version of XspecT might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: XspecT
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Tool to monitor and characterize pathogens using Bloom filters.
5
5
  License: MIT License
6
6
 
@@ -1,7 +1,7 @@
1
1
  xspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  xspect/definitions.py,sha256=gg6NvT8ypNzlnJvMMo3nHsyh8DHFFu41lOfnILkRDpE,1215
3
3
  xspect/download_filters.py,sha256=ByE7Oggx-AyJ02Wirk_wcJHNdRDrJMfjwhmUe5tgWbE,741
4
- xspect/fastapi.py,sha256=UuUr3eQUL0tCcB2d_ZKMToqreNLSNRKpCKK3-lwAzVo,3208
4
+ xspect/fastapi.py,sha256=C8pBBiqM6UdedLZgzfL_YYRuy98aPj8dcw_CLFrtMMc,3260
5
5
  xspect/file_io.py,sha256=zKhl6Fd9KZAYiD8YgIyje5TbDYk5lxMp1WUrNkGSBo8,2779
6
6
  xspect/main.py,sha256=rFoHKBC9UANlZh3TccZAJbOZ6023BnQaGEoPjjJjW0A,3572
7
7
  xspect/model_management.py,sha256=w0aqjLUoixCokyKTYrcN1vih5IoLYLJG9p8aeYdVc8Y,3560
@@ -22,9 +22,9 @@ xspect/train_filter/ncbi_api/download_assemblies.py,sha256=MB_mxSjCTL05DqIt1WQem
22
22
  xspect/train_filter/ncbi_api/ncbi_assembly_metadata.py,sha256=puzDIws-yyBAEHwSAIYUM7g8FpLFmvOKh5xH1EsY8ZE,3830
23
23
  xspect/train_filter/ncbi_api/ncbi_children_tree.py,sha256=_8puOsnsKp5lsMV2gZY1ijkfD_BZKG9eXZCX09qph5E,1819
24
24
  xspect/train_filter/ncbi_api/ncbi_taxon_metadata.py,sha256=O6JDXC4E6AYaf7NPnb34eSJyZhMB8r--bjoVF_ZsEdA,1868
25
- XspecT-0.2.0.dist-info/LICENSE,sha256=bhBGDKIRUVwYIHGOGO5hshzuVHyqFJajvSOA3XXOLKI,1094
26
- XspecT-0.2.0.dist-info/METADATA,sha256=efT3SkWV55firuZJh1gHCN7061Fxda7teuFLeZHvJQ0,4826
27
- XspecT-0.2.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
28
- XspecT-0.2.0.dist-info/entry_points.txt,sha256=L7qliX3pIuwupQxpuOSsrBJCSHYPOPNEzH8KZKQGGUw,43
29
- XspecT-0.2.0.dist-info/top_level.txt,sha256=hdoa4cnBv6OVzpyhMmyxpJxEydH5n2lDciy8urc1paE,7
30
- XspecT-0.2.0.dist-info/RECORD,,
25
+ XspecT-0.2.2.dist-info/LICENSE,sha256=bhBGDKIRUVwYIHGOGO5hshzuVHyqFJajvSOA3XXOLKI,1094
26
+ XspecT-0.2.2.dist-info/METADATA,sha256=iwBQ-BRc2bfZ3NNSNKbrLkC6hz5i6rAVjRRZBDjZiJ8,4826
27
+ XspecT-0.2.2.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
28
+ XspecT-0.2.2.dist-info/entry_points.txt,sha256=L7qliX3pIuwupQxpuOSsrBJCSHYPOPNEzH8KZKQGGUw,43
29
+ XspecT-0.2.2.dist-info/top_level.txt,sha256=hdoa4cnBv6OVzpyhMmyxpJxEydH5n2lDciy8urc1paE,7
30
+ XspecT-0.2.2.dist-info/RECORD,,
xspect/fastapi.py CHANGED
@@ -27,12 +27,16 @@ def classify(genus: str, file: str, meta: bool = False, step: int = 500):
27
27
  path = get_xspect_upload_path() / file
28
28
 
29
29
  pipeline = Pipeline(genus + " classification", "Test Author", "test@example.com")
30
- species_execution = ModelExecution(genus + "-species", sparse_sampling_step=step)
30
+ species_execution = ModelExecution(
31
+ genus.lower() + "-species", sparse_sampling_step=step
32
+ )
31
33
  if meta:
32
34
  species_filtering_step = PipelineStep(
33
35
  StepType.FILTERING, genus, 0.7, species_execution
34
36
  )
35
- genus_execution = ModelExecution(genus + "-genus", sparse_sampling_step=step)
37
+ genus_execution = ModelExecution(
38
+ genus.lower() + "-genus", sparse_sampling_step=step
39
+ )
36
40
  genus_execution.add_pipeline_step(species_filtering_step)
37
41
  pipeline.add_pipeline_step(genus_execution)
38
42
  else:
File without changes