-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing distance.cmp into R #77
Comments
hi @UniAlberta, you'll want to use the Here's some example code: https://sourmash.readthedocs.io/en/latest/other-languages.html#r-code-for-working-with-compare-output |
Thanks for your reply. I have all my .files and when I try to run sourmash compare *.sig --csv distance.cmp.csv, I get an error of ModuleNotFoundError: No module named 'numpy'. Could you please help to fix it? |
that's weird - what command did you use to install sourmash? In any case, after activating the conda environment, you should be able to use
or
|
I follow this for installation https://sourmash.readthedocs.io/en/latest/tutorial-install.html. I run conda install numpy and then when I`m in smash environment, I run sourmash compare *.sig --csv distance.cmp.csv and it gives me the same error. ModuleNotFoundError: No module named 'numpy'. |
Nope, no updates. And in any case that wouldn't have broken your conda environment! I'm wondering if maybe your conda environment activation is somehow messed up - try logging in again/starting a new shell, and then activating the smash environment again. |
I tried pip3 install numpy and it worked. Thanks for your help. |
fantastic! please feel free to ask for help here or elsewhere - more people monitor https://github.com/dib-lab/sourmash/issues so that's a good place to go :) |
Hi, I ran sourmash sketch dna ~/*.fastq.gz on my fasta files and then
sourmash compare *.sig -o distances.cmp -k 31. Now I have distance.cmp output file and I want to use it in R to plot ordination. I`m not sure how I can import .cmp file into R. Is there any code for that?
Thanks
The text was updated successfully, but these errors were encountered: