Skip to content

strainscan_build failing due to hclsMap_95.txt file having extra lines #24

@kheber

Description

@kheber

In creating a custom database using strainscan_build version 1.0.14 from bioconda, I get the following error:

2024-09-21 18:22:29,037 - Constructing matrix with dashing (jaccard index)
2024-09-21 18:22:33,708 - Hierarchical clustering
Traceback (most recent call last):
  File "/data/shared_resources/conda_local/envs/strainscan/bin/strainscan_build", line 10, in <module>
    sys.exit(main())
  File "/data/shared_resources/conda_local/envs/strainscan/lib/python3.7/site-packages/StrainScan/StrainScan_build.py", line 117, in main
    cls_file, cls_res)
  File "/data/shared_resources/conda_local/envs/strainscan/lib/python3.7/site-packages/StrainScan/library/select_rep.py", line 44, in pick_rep
    clsa.append(int(ele[0]))
ValueError: invalid literal for int() with base 10: 'WARNING:'

Looking at the tail of hclsMap_95.txt, I see the following:

1	1	MIKI-NS13
2	1	MIKI-NS15
WARNING:	0	
ignoring	0	
environment	0	
value	0	
of	0	
R_HOME	0

I think this is what is causing the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions