-
Notifications
You must be signed in to change notification settings - Fork 36
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
output tsv from show-coords not working on syri #9
Comments
Would it be possible for you to share the input file? Otherwise, it is very difficult to know what caused this. |
Yup I can share the file. |
You can send it to goel@mpipz.mpg.de |
Hi, what was the solution to this issue? I'm having a similar problem. I got .tsv output from a nucmer alignment using show-coords, and am now trying to use the .coords file with the chroder script: python /home/0_PROGRAMS/syri/syri/bin/chroder -o test -noref AlderWillowOut_m_i90_l100.coords GCA_003031625.1_ASM303162v1_genomic.fna EMAL_JTW1653__DATE__800mill.fasta I assume from the manual that the argument for chroder ("Alignment coordinates in a tsv format") was supposed to refer to the .coords file. (Is that correct?). However, when I run the above command I get the following error: " During handling of the above exception, another exception occurred: Traceback (most recent call last): Thanks for the help! |
I cannot remember what actually solved that issue, but I would guess it was due to incompatible Python version. Please try with python3.5, I think that would fix it. |
Wow this was a while ago but it might also have to do with the chromosome name as well? This was from part of the email we exchanged last year
Unless this was fixed in later version? |
Thanks @mnshgl0110 and @cjy8709 for the suggestions! I've gotten chroder to work now without the error. Changing to python3.5 alone had no effect (same error), but indeed one of my assemblies had numeric scaffold ids. When I changed these to character strings, the error disappeared. Thanks! I'm going to document what I did below in case anyone else has the same problem and finds it useful.
That alone didn't work, but I mentioned it as I continued using this python environment when implementing step 2 below.
>14 edges=1 [...] And it should be changed to: >scaffold14 edges=1 [...] I added "scaffold" to the beginning of the scaffold names (e.g., "14" > "scaffold14") using sed: sed 's/>\(.*\)/>scaffold\1/' input.fasta > output.fasta Then, using this new modified fasta, I re-aligned my two assemblies with nucmer and used the .coords file output from nucmer as input into chroder. Now chroder worked for me with no errors. |
Hi
I'm getting an error I'm not sure how to deal with. I got the tsv output with the command
show-coords -THrd OsatJ-OsatB_bas.c500.b500.l50.deltafilter_m_i90_l100.delta > OsatJ-OsatB_bas.c500.b500.l50.deltafilter_m_i90_l100.coords
and used that output for syri but get the below error.
`
syri — WARNING — starting
/home/jyc387/PROGRAMS_AND_SCRIPTS/PROGRAMS/syri/syri/bin/syri:106: FutureWarning: read_table is deprecated, use read_csv instead, passing sep='\t'.
chrlink = startSyri(args)
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jyc387/miniconda2/envs/py3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jyc387/miniconda2/envs/py3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "syri/pyxFiles/synsearchFunctions.pyx", line 208, in syri.pyxFiles.synsearchFunctions.syri
TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('<U21') dtype('<U21') dtype('<U21')
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/jyc387/PROGRAMS_AND_SCRIPTS/PROGRAMS/syri/syri/bin/syri", line 106, in
chrlink = startSyri(args)
File "syri/pyxFiles/synsearchFunctions.pyx", line 193, in syri.pyxFiles.synsearchFunctions.startSyri
File "syri/pyxFiles/synsearchFunctions.pyx", line 194, in syri.pyxFiles.synsearchFunctions.startSyri
File "/home/jyc387/miniconda2/envs/py3/lib/python3.6/multiprocessing/pool.py", line 288, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/jyc387/miniconda2/envs/py3/lib/python3.6/multiprocessing/pool.py", line 670, in get
raise self._value
TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('<U21') dtype('<U21') dtype('<U21')`
The text was updated successfully, but these errors were encountered: