Closed nutrimol closed 1 year ago
Thanks for the detailed report. This indeed seems like a bug.
For now, you can plot the bins of interest directly, without the need for running subsetBins
.
HiBinNames = rownames(SQM$bins$table)[SQM$bins$table$Completeness>90 & SQM$bins$table$Contamination<10]
plotBins(SQM, bins=HiBinNames, count="cpm")
Any chance you could share your project with me to see if I can reproduce the bug?
I don't need everything, just get inside the project directory and copy the SqueezeMeta_conf.pl
file, and the results
and intermediate
directories.
Thank you Fernando. Of course I will share it with you. What is the best way to do that? I have already compressed them but still they are to heavy to upload them here..
Wetransfer or google drive usually work
Dear Fernando, I sent you an email (fernando.puente.sanchez@slu.se) with the link to the data. I am not sure if you could access the data. Thank you, Virginia
Yes, I'll look into it later
Can reproduce
Try to add the option engine="data.frame"
when loading the project with loadSQM
. This should get you the right counts after sub-setting.
Excellent! It works! Thank you so much!!!
Dear developers,
First of all, I apologize for this long long post.
I am facing some issues with subsetBins function in SQMtools (v1.6) that I do not understand. I run a Squeezemeta project with three metagenomic and three metatranscriptomic samples. I run the command in co-assembly mode but I supplied an external assembly and in samples.samples file I specified nobinning option for the metatranscriptomic samples. Now, in SQMtools, if I look for the coverage in a particular contig, I get this output:
I am trying to explore the binning results in SQMtools. When I subset the SQM object to keep the high quality bins with subsetBins function, I miss the coverage values, but only in c40_Ld3 and C40_Ld11 samples (two metagenome samples). In the first metagenome sample (c40_Id0) and the three MTX samples (metatranscriptomes) the values are the same as in the SQM object:
And the same applies to $bases and $cpm values:
Interestingly, when I look for the contig in bins$table of the subset, the coverage values are there for all the samples.
Unfortunately, the plotBins function seems to take the values from object$bin$cov and object$bin$cpm to plot the bins, so I cannot get good representations of these data unless I select "abund" or "percent" as the variable for plotting.
I am a newbie in R, and I am having a hard time with this. Please, could you help me to understand what is going on? probably I am messing things up... Another big unclear point for me is whether is it normal to get some output in the metatranscriptomic (MTX) samples considering that I specified nobinning in samples.samples file?
Thank you in advance for your time. All the best, Virginia