-
Notifications
You must be signed in to change notification settings - Fork 189
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
AttributeError: 'LayoutLine' object has no attribute 'order' #735
Comments
Please post your layout.txt file and the head of seqids.txt |
Check that the BED files referred to in your layout file are formatted like this example. They should be tab delimited with 7 cols. |
$ cat seqids.txt $ cat layout.txt y, xstart, xend, rotation, color, label, va, bed.6, .1, .9, 0, , Cdes, top, Cdes.bed edgese, 0, 1, Cdes.Peds.anchors.simple |
$ cat -A Cdes.bed |head $ cat -A Peds.bed |head |
It seems that this BED sample has only six columns. I tried both seven-column and six-column formats, but I still get the same error. |
Thank you for your help. This was a careless mistake on my part. I have identified the problem: it was caused by an unintended blank line at the start of the layout.txt file, which occurred when using the echo command. echo " y, xstart, xend, rotation, color, label, va, bed.6, .1, .9, 0, red, C. delicatus, top, Cdes.bed edgese, 0, 1, Cdes.Peds.anchors.simple" > layout.txt |
Dear Support,
I hope this message finds you well. I have encountered an issue and would greatly appreciate your assistance.
python -m jcvi.graphics.karyotype seqids.txt layout.txt
[23:40:42] INFO Note: NumExpr detected 56 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. utils.py:148
INFO NumExpr defaulting to 8 threads. utils.py:160
[23:40:43] ERROR Set text.usetex=False. Font styles may be inconsistent. base.py:393
DEBUG Load file layout.txt base.py:37
DEBUG Load file Cdes.bed base.py:37
[23:40:44] DEBUG Load file Peds.bed base.py:37
Traceback (most recent call last):
File "/pub/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/pub/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/pub/anaconda3/lib/python3.8/site-packages/jcvi/graphics/karyotype.py", line 447, in
main()
File "/pub/anaconda3/lib/python3.8/site-packages/jcvi/graphics/karyotype.py", line 427, in main
Karyotype(
File "/pub/anaconda3/lib/python3.8/site-packages/jcvi/graphics/karyotype.py", line 346, in init
layout = Layout(layoutfile, generank=generank)
File "/pub/anaconda3/lib/python3.8/site-packages/jcvi/graphics/karyotype.py", line 78, in init
blocks = self.parse_blocks(fn, i)
File "/pub/anaconda3/lib/python3.8/site-packages/jcvi/graphics/karyotype.py", line 86, in parse_blocks
order = self[i].order
AttributeError: 'LayoutLine' object has no attribute 'order'
head Peds.bed
Ped07D 1762 5299 EVM0015331.1 0 - 1762 5299 255,0,0 5 193,38,68,93,88 0,2591,2665,2928,3449
Ped07D 12578 16711 EVM0022403.1 0 + 12635 16242 255,0,0 10 57,110,58,264,138,52,80,60,81,562 0,700,910,1609,1974,2191,2322,2709,3327,3571
Ped07D 20057 32716 EVM0009251.1 0 - 20057 32716 255,0,0 2 405,210 0,12449
Ped07D 136305 143834 EVM0016564.1 0 + 136429 143311 255,0,0 5 124,116,244,1524,703 0,471,4752,5220,6826
Ped07D 159903 161676 EVM0009065.1 0 + 159903 161676 255,0,0 1 1773 0
Looking forward to your prompt reply.
The text was updated successfully, but these errors were encountered: