Closed sbridgett closed 1 year ago
Hi @sbridgett, thanks for flagging this! I recently noticed that issue myself, but of course didn't flag it anywhere useful! I had been trying to figure out what would desired behaviour be- a blank plot or just an error message to handle having no SNPs to show.
Hi @aineniamh, That's good you've already noticed this too, and that's a good question about what is best way to deal with it - perhaps could do both - print a warning message on stderr, and on the plot could write eg: "No SNP's found" or "No SNP's to show between these samples", then users would know why no SNPs were plotted even if they hadn't checked the message written stderr.
I just ran into this too. I think it would be more consistent to produce a blank plot.
Thanks for the code!
Fixed now
A couple of times snipit has failed with the following error:
I think this occurs when the samples in the multi-fasta input file all have the same SNP's. I can send an example fasta file containing two fasta sequences that produced this error. If this is the reason, then perhaps could just output a "No SNP's found message."
I'm using MAFFT v7.487 with the "linsi" option (eg: "mafft-linsi input_fasta > aligned_fasta"), and using miniconda with conda 4.10.3, and Python 3.8.10, and Snipit version 1.0.3:
$ pip show snipit Name: snipit Version: 1.0.3 Summary: snipit Home-page: https://github.com/aineniamh/snipit etc...