Code Monkey home page Code Monkey logo

Comments (5)

mnshgl0110 avatar mnshgl0110 commented on August 13, 2024

Hi.
Can you please add print(a2) between the current line 103 and 104 in the chroder script and share the output with me? I have an idea about why you get this error, but would like to check the value of a2 to be sure.

from syri.

Yung-Chien avatar Yung-Chien commented on August 13, 2024

Okay, thanks for your reply. I added the code into chroder, and got this :

[]
Traceback (most recent call last):
File "/home1/lyj/software/syri/syri/bin/chroder", line 730, in
scaf(args)
File "/home1/lyj/software/syri/syri/bin/chroder", line 338, in scaf
refdata = getdata(reflength, refid, refdir)
File "/home1/lyj/software/syri/syri/bin/chroder", line 105, in getdata
a2 = a2[a2[:, 0].argsort()]
IndexError: too many indices for array

It seems that a2 was not assigned, so I got confused. Thanks and waiting for your idea :-D.

Yung-Chien

from syri.

mnshgl0110 avatar mnshgl0110 commented on August 13, 2024

Hi. Sorry for a late reply. Normally, a2 should not be empty. This seems to be a result of non-ideal input or some uncaught exception. Could you please try to remove smaller contigs (<15000kb), and try to run the analysis again? I will try to find what could have caused this error.

from syri.

Yung-Chien avatar Yung-Chien commented on August 13, 2024

Hi,
Ummm It was still the same result when I removed the smaller contigs,

[]
Traceback (most recent call last):
File "/home1/lyj/software/syri/syri/bin/chroder", line 730, in
scaf(args)
File "/home1/lyj/software/syri/syri/bin/chroder", line 338, in scaf
refdata = getdata(reflength, refid, refdir)
File "/home1/lyj/software/syri/syri/bin/chroder", line 105, in getdata
a2 = a2[a2[:, 0].argsort()]
IndexError: too many indices for array

Could you explain more details about the reason why it's always reported the same error? Maybe my input files were too big ? The two input files are 700MB and 600MB .Thanks for your patience.

Yung-Chien

from syri.

mnshgl0110 avatar mnshgl0110 commented on August 13, 2024

Hi,
For now, I am not sure exactly why this error is coming up, however, I would not suspect that the input files size would be an issue.
What version of python are you using? I recently found out that few of the libraries used by SyRI have been modified for the newer version of python which is resulting in errors with SyRI. I recommend that you use python3.5 for running SyRI, and that might solve the error.
Another possible cause of error could be that there are highly repetitive contigs for which it was not possible to select any contig in the other genome which align to this repetitive contig better than the other contigs. As a result, it was not possible to select any matches for the original repetitive contig (resulting in empty a2).
What is your use case? Are you creating pseudo-genome using a chromosome-level reference genome or are both of your assemblies incomplete?
Best
Manish

from syri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.