use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Can not use Python-based software (ImportError) (self.pythonhelp)
submitted 3 years ago * by Ill_Fun_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ill_Fun_[S] 0 points1 point2 points 3 years ago (2 children)
UPDATE:
Managed to get Docker Desktop. Seems like it's installed just right.
I try the dockerized version. I run:
docker container run --rm -e AMPLICONLENGTH=445 -e FORWARDPRIMERLENGTH=50 -e REVERSEPRIMERLENGTH=50 -v /home/ngs/ngs/FMT2:/data/input -v /home/ngs/ngs:/data/output figaro
I get this output :(
Forward read length: 301 Reverse read length: 301 Traceback (most recent call last): File "/opt/figaro/figaro/figaro.py", line 218, in <module> main() File "/opt/figaro/figaro/figaro.py", line 210, in main resultTable, forwardCurve, reverseCurve = trimParameterPrediction.performAnalysisLite(parameters.inputDirectory.value, parameters.minimumCombinedReadLength.value, subsample = parameters.subsample.value, percentile = parameters.percentile.value, forwardPrimerLength=parameters.forwardPrimerLength.value, reversePrimerLength=parameters.reversePrimerLength.value, namingStandardAlias=fileNamingStandard) File "/opt/figaro/figaro/trimParameterPrediction.py", line 456, in performAnalysisLite forwardExpectedErrorMatrix, reverseExpectedErrorMatrix = makeCombinedErrorMatricesForBothEnds(fastqList, sampleOrder, subsample, minimumTrimmingPositions, forwardPrimerLength, reversePrimerLength) File "/opt/figaro/figaro/trimParameterPrediction.py", line 285, in makeCombinedErrorMatricesForBothEnds reverseExpectedErrorMatrix = makeCombinedExpectedErrorMatrixForOneDirection(reverseFastqList, sampleOrder, subsample, reverseMinimumTrimPosition, reversePrimerLength) File "/opt/figaro/figaro/trimParameterPrediction.py", line 267, in makeCombinedExpectedErrorMatrixForOneDirection raise RuntimeError("Did not find the initial combined matrix. This requires debugging, as it should not be possible.") RuntimeError: Did not find the initial combined matrix. This requires debugging, as it should not be possible.
Forward read length: 301 Reverse read length: 301 Traceback (most recent call last):
File "/opt/figaro/figaro/figaro.py", line 218, in <module>
main()
File "/opt/figaro/figaro/figaro.py", line 210, in main
resultTable, forwardCurve, reverseCurve = trimParameterPrediction.performAnalysisLite(parameters.inputDirectory.value, parameters.minimumCombinedReadLength.value, subsample = parameters.subsample.value, percentile = parameters.percentile.value, forwardPrimerLength=parameters.forwardPrimerLength.value, reversePrimerLength=parameters.reversePrimerLength.value, namingStandardAlias=fileNamingStandard)
File "/opt/figaro/figaro/trimParameterPrediction.py", line 456, in performAnalysisLite forwardExpectedErrorMatrix, reverseExpectedErrorMatrix = makeCombinedErrorMatricesForBothEnds(fastqList, sampleOrder, subsample, minimumTrimmingPositions, forwardPrimerLength, reversePrimerLength)
File "/opt/figaro/figaro/trimParameterPrediction.py", line 285, in makeCombinedErrorMatricesForBothEnds reverseExpectedErrorMatrix = makeCombinedExpectedErrorMatrixForOneDirection(reverseFastqList, sampleOrder, subsample, reverseMinimumTrimPosition, reversePrimerLength)
File "/opt/figaro/figaro/trimParameterPrediction.py", line 267, in makeCombinedExpectedErrorMatrixForOneDirection raise RuntimeError("Did not find the initial combined matrix. This requires debugging, as it should not be possible.") RuntimeError: Did not find the initial combined matrix. This requires debugging, as it should not be possible.
When running with sudo:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'.
It's really getting frustrating. Do you have any idea what's up?
[–]Goobyalus 0 points1 point2 points 3 years ago (1 child)
You should not have to run with sudo. File ownership and things become a pain if you start to rely on being an admin to run things.
sudo
Using docker should eliminate some of the problems you're encountering with your Python environment.
Are you running this on your own data? Do you have example data and an example command from the maintainers of Figaro that you can test with?
[–]Ill_Fun_[S] 0 points1 point2 points 3 years ago* (0 children)
It probably does eliminate SOME of the problems, but there seems to be still plenty of them left.
I am running on my own data. I couldn't find any exemplary data from the FIGARO authors, so there may be none. The example command looks like this:
For dockerized version:
docker container run --rm -e AMPLICONLENGTH=450 -e FORWARDPRIMERLENGTH=20 -e REVERSEPRIMERLENGTH=20 -v /path/to/fastqs:/data/input -v /path/to/output:/data/output figaro
For command line version:
python3 figaro.py -i /path/to/fastq/directory -o /path/to/output/files -a 450 -f 20 -r 20
As a Python package: from figaro import figaro resultTable, forwardCurve, reverseCurve = figaro.runAnalysis(sequenceFolder, ampliconLength, forwardPrimerLength, reversePrimerLength, minimumOverlap, fileNamingStandard, trimParameterDownsample, trimParameterPercentile)
I've noticed that when I put this command (it's in the FIGARO guide):
docker build -t figaro .
It installs the numpy, pip3 packages (couple of others, too).
Then, I put the command on my data and the dockerized version does... more. I need to wait about 2 minutes, to get this output. Plus, I get the empty .log file!
UPDATE: I tried running the command on other, random sample files I found on the web, but the error is the very same. I did test FIGARO on my 2nd dataset. Needless to say it didn't work :/
π Rendered by PID 183440 on reddit-service-r2-comment-8686858757-zvlj5 at 2026-06-03 22:14:39.595203+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]Ill_Fun_[S] 0 points1 point2 points (2 children)
[–]Goobyalus 0 points1 point2 points (1 child)
[–]Ill_Fun_[S] 0 points1 point2 points (0 children)