Question: error to tabix bed file
0
gravatar for cristina_sabiers
2.6 years ago by
Spain
cristina_sabiers40 wrote:

Hi! Im back! XD didnt have so much time lately

I made an excel file with chr, and chrmstart-end and gen name like this

chr1    11873   14409   DDX11L1

chr1    14361   29370   WASH7P

chr1    17368   17436   MIR6859-1

chr1    17368   17436   MIR6859-2

chr1    17368   17436   MIR6859-3

chr1    17368   17436   MIR6859-4

chr1    30365   30503   MIR1302-2

chr1    30365   30503   MIR1302-9

chr1    30365   30503   MIR1302-10

chr1    30365   30503   MIR1302-11

chr1    34610   36081   FAM138A
......

I rename my xls file to bed, then I zip the file with this command

bgzip gen.bed

and when I try to tabbix I get this error message

tabix -p bed gen.bed.gz
[E::get_intv] failed to parse TBX_GENERIC, was wrong -p [type] used?
The offending line was: "��ࡱ�"
Segmentation fault (core dumped)

what I do wrong?

Thanks!

bed • 1.2k views
ADD COMMENTlink modified 2.6 years ago by Pierre Lindenbaum116k • written 2.6 years ago by cristina_sabiers40
1
gravatar for genomax
2.6 years ago by
genomax62k
United States
genomax62k wrote:

Make sure you save the file as tab-delimited text out of Excel (which would make it BED format). You can't use xls formatted file as is.

ADD COMMENTlink modified 2.6 years ago • written 2.6 years ago by genomax62k

thanks

then I read wrong , I could just rename it.... ^^"

ADD REPLYlink written 2.6 years ago by cristina_sabiers40
1
gravatar for Pierre Lindenbaum
2.6 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum116k wrote:

I think you saved your file as a native excel file. (show me the output of

$ file gen.bed

) There is no magic: nothing is changed by just hanging the suffix for xls to bed .

Sort on chr/start, export the file as CSV/TSV using tab as delimiter and no "escape string". Change the suffix from csv to bed. compress with bgzip and index with tabix.

ADD COMMENTlink modified 2.6 years ago • written 2.6 years ago by Pierre Lindenbaum116k

thanks Pierre!

I was misunderstanding I could just rename my xls file

ADD REPLYlink written 2.6 years ago by cristina_sabiers40
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2191 users visited in the last hour