Comments (5)
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.
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.
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.
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.
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)
- Erro in reading BAM file. reference_id -1 out of range HOT 1
- Synteny differs between same set of assemblies HOT 5
- Genome specific sequences HOT 3
- Chromosomes IDs do not match HOT 2
- IndexError: list index out of range (but no error when swapping the reference and query) HOT 7
- generating table output error HOT 2
- Error when using .SAM file HOT 18
- Incorrect CIGAR string found. HOT 6
- unequal chromosomes HOT 3
- empty output of chroder HOT 6
- AttributeError with syri HOT 1
- IndexError: list index out of range HOT 5
- missing parameter HOT 1
- REF and ALT start positions do not match HOT 1
- ERROR - syri:116 - Unequal number of chromosomes in the genomes. HOT 6
- Support of bgzip fasta HOT 1
- Inverted chromosome warning HOT 5
- Why snp file produced by syri is empty and followed by error HOT 1
- Unexpected character `-' in string Chr10 HOT 10
- How can I control where the output files go? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syri.