-
Notifications
You must be signed in to change notification settings - Fork 11
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
'bins' Error while running miRge3.0 #100
Comments
Hi @ChenSchiff, Looks like one or more samples doesn't comply with adapter/Qiagen UMI pattern, this would occur if the reads are not trimmed correctly and the value for plotting histogram with parameters bins is negative leading to this error. Can you try the following things:
Let me know if this works. I strongly recommend the last method, and you can also find if any of the sample file is corrupt during your batch runs. Thank you, |
Hi @ChenSchiff, I thought of something we changed in miRge, and the new release is not public yet. Before you try the previous suggestions, can you replace the Then you can run all 150 samples at once and let me know if that works. If not try the previous suggestion (running in batches). Thank you, |
Hi @arunhpatil, Thank you for the options you suggested! I'm using mirge3 with Singularity, which prevents me from directly accessing the code. I have another question regarding the output of the pipeline. After the pipeline completes, one of the output files is the tRF matrix counts. Is there a way to prevent the automatic conversion of tRNA names from their full gene names to the "comb" names? This conversion is based on the human tRF merges file included in the annotation libraries. Thank you for your help, |
Hi @ChenSchiff, Great. Regarding the tRNA, the quick answer is to rename the merges file and create an empty merges in the library folder.
This will trick the miRge and provide you the full names. Give it a go and let me know how if this is helpful. Thank you, |
Hello,
I ran the following command:
miRge3.0 --adapter AACTGTAGGCACCATCAAT --mir-DB miRBase --samples july_fastq_list.txt --libraries-path mirge3_lib/ --organism-name human --tRNA-frag --qiagenumi -umi 0,12 --crThreshold 0.01 --threads 85 --AtoI --outDir output_qiagen_umi_2 -udd
I have 150 samples with umi (qiagen kit).
When trying to run this command on 10 samples it worked, but with 150 samples I got the following error:
...
Matrix creation finished in 206.1682 second(s)
Traceback (most recent call last):
File "/usr/local/bin/miRge3.0", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/mirge/main.py", line 140, in main
pdDataFrame,sampleReadCounts,trimmedReadCounts,trimmedReadCountsUnique = baking(args, fastq_fullPath, base_names, workDir)
File "/usr/local/lib/python3.10/site-packages/mirge/libs/digest.py", line 282, in baking
hist, bins = np.histogram(val, bins=(maxVal-minVal))
File "<array_function internals>", line 200, in histogram
File "/usr/local/lib/python3.10/site-packages/numpy/lib/histograms.py", line 780, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)
File "/usr/local/lib/python3.10/site-packages/numpy/lib/histograms.py", line 424, in _get_bin_edges
raise ValueError('
bins
must be positive, when an integer')ValueError:
bins
must be positive, when an integerAny idea of how to solve that?
Thank you
The text was updated successfully, but these errors were encountered: