jtamames / SqueezeMeta

A complete pipeline for metagenomic analysis
GNU General Public License v3.0
366 stars 79 forks source link

[Regarding SQMtools] Error in loadSQM......: An error occurred while running sqm2tables.py #170

Closed ShailNair closed 3 years ago

ShailNair commented 3 years ago

Hi, I have finished the squeezemeta pipeline with binning on my lab server. Next, to analyze in SQMtools, I compressed the sqmtools directory from "install path/SqueezeMeta/lib/SQMtools" and installed it In Rstudio on my personal PC with all the dependencies (as on the server I do not have sudo rights). Next, I copied the whole squeezemeta created project (named as original_bottle) except the temp, data, and raw fastq files directory to the desired location on my personal PC (i.e. /home/ahail/Documents/squeezemeta_analysis/original_bottle),

When I run (in Rstudio), Hadza = loadSQM('/home/ahail/Documents/squeezemeta_analysis/original_bottle')

I get the following error:

Error in loadSQM("/home/ahail/Documents/squeezemeta_analysis/original_bottle") : An error occurred while running sqm2tables.py 2.stop("An error occurred while running sqm2tables.py") 1.loadSQM("/home/ahail/Documents/squeezemeta_analysis/original_bottle")

I did not find the sqm2tables.py in sqmtools R package (to debug the problem).

Here, is the list of all files in my squeezementa project (original_bottle) copied to my personal PC original_bottle.txt

fpusan commented 3 years ago

Hi!

ShailNair commented 3 years ago

Thanks, for the prompt reply. That's, the point I missed regarding first running sqm2tables.py. Yes, for Installing SQMtools itself doesn't require administrative privileges, but the dependency package Pathview requires XML package to be installed which prerequisites some Linux files (libtool-ltdl) which require root/sudo access to install (somehow our lab server do not have this files. i will talk with the server manager and next time can directly use sqmtools on the server).

Thanks:thumbsup::thumbsup::thumbsup:

fpusan commented 3 years ago

Alternatively, if you install SqueezeMeta via conda SQMtools should be ready to go, all libraries included. If it isn't, then let me know!

ShailNair commented 3 years ago

Thanks. Now, it is working. A few query though: 1) Is there an option to make .biom file (with taxa, abundance and sample info )from the results? 2) Is there any way, that I can change the width of the bar plots in plot taxonomy, ploTbARS function. The manual have following arguments: plotBars( data, label_x = "Samples", label_y = "Abundances", label_fill = "Features", color = NULL, base_size = 11, max_scale_value = NULL ) But no width and gap adjustment. As it is a ggplot2 function, I used "width=N". but it doesn't work here.

I have tested two samples, so the plot looks weird. capture-20201011-090018

fpusan commented 3 years ago
  1. No, and it is not planned on the short term. I'm not familiar with the biom format myself, what would it be needed?
  2. plotTaxonomy is not a ggplot2 function, just a wrapper around a ggplot function. So if you want custom plots you'll have to make them yourself. However we slowly add more customization options, custom widths might as well be the next one. Maybe next week we can squeeze (heh) some time for that.
ShailNair commented 3 years ago

That's awesome, looking forward to the next update. Thanks. RAegarding biom file..It is not that necessary. ..some R visualization packages start with biom file. But I can make it if necessary ,as sqeezemeta have already provided with nice taxa tables.