You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some protein signatures with protein, dayhoff, and hp moltypes. In running compare on the protein sigs, I get the following error:
$ sourmash compare --protein --no-dna --no-dayhoff --no-hp -k 11 -o testing smash-testing/gingivalis/protein/sigs/*.sig
== This is sourmash version 2.3.0. ==
== Please cite Brown and Irber (2016), doi:10.21105/joss.00027. ==
loaded 106 signatures total.
downsampling to scaled value of 2000
Traceback (most recent call last):
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/bin/sourmash", line 11, in <module>
sys.exit(main())
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/lib/python3.7/site-packages/sourmash/__main__.py", line 83, in main
cmd(sys.argv[2:])
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/lib/python3.7/site-packages/sourmash/commands.py", line 148, in compare
n_jobs=args.processes)
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/lib/python3.7/site-packages/sourmash/compare.py", line 209, in compare_all_pairs
similarities = compare_serial(siglist, ignore_abundance, downsample)
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/lib/python3.7/site-packages/sourmash/compare.py", line 39, in compare_serial
similarities[i][j] = similarities[j][i] = siglist[i].similarity(siglist[j], ignore_abundance, downsample)
File "/home/ntpierce/2019-protein-work/.snakemake/conda/db49f6a3/lib/python3.7/site-packages/sourmash/signature.py", line 121, in similarity
return self.minhash.similarity(other.minhash, ignore_abundance)
File "sourmash/_minhash.pyx", line 413, in sourmash._minhash.MinHash.similarity
File "sourmash/_minhash.pyx", line 392, in sourmash._minhash.MinHash.jaccard
File "sourmash/_minhash.pyx", line 387, in sourmash._minhash.MinHash.compare
File "sourmash/_minhash.pyx", line 375, in sourmash._minhash.MinHash.intersection
ValueError: DNA/prot minhashes cannot be compared
I have some protein signatures with
protein
,dayhoff
, andhp
moltypes. In running compare on theprotein
sigs, I get the following error:An example signature (note, no dna signatures):
signature:
compute command:
sourmash compute --scaled 2000 -k 7,11,17 smash-testing/gingivalis/protein/GCA_000007585.1_ASM758v1_protein.faa.gz -o smash-testing/gingivalis/protein/sigs/GCA_000007585.1_ASM758v1_protein.sig -p 1 --input-is-protein --protein --dayhoff --hp
Note that dayhoff and hp comparisons do work:
dayhoff example:
sourmash compare --no-protein --no-dna --dayhoff --no-hp -k 11 -o testing smash-testing/gingivalis/protein/sigs/*protein.sig
I got the same error with protein sigs computed with scaled=1.
The text was updated successfully, but these errors were encountered: