Menu

#1 geneBody_coverage.py , bedfile split on space

2.0
open
nobody
None
2018-03-23
2016-02-08
No

when running the script geneBody_coverage.py I kept getting the error:
"[NOTE:input bed must be 12-column] skipped this line:"

This was due to the fact that in line 100 of the script:
fields = line.split()
splits on space and not on tab
after replacing the line with:
fields = line.split("\t")

the script worked with my file

Discussion

  • Liguo Wang

    Liguo Wang - 2016-02-08

    This is weird. In Python, "tab" is also considered as "space" (not vice versa).

     
  • malte herold

    malte herold - 2016-02-09

    I had entries in my bed file that also contained spaces, that was the problem

     
  • Zehan Dai

    Zehan Dai - 2016-07-28

    hello,I have the same problem as you do. But the replacement of "fields = line.split()" to "fields = line.split("\t")" does not work for me. I still ecounter lots of "[NOTE:input bed must be 12-column] skipped this line:" while running geneBody_coverage.py

     
  • Fabrice Leclerc

    Fabrice Leclerc - 2018-03-23

    I have the same problem using a UCSC formatted BED file: it contains 8 columns. All the lines are skipped. Any idea ?

     
    • Liguo Wang

      Liguo Wang - 2018-03-23

      The BED fie must have 12-column (standard BED format, https://genome.ucsc.edu/FAQ/FAQformat.html#format1). Otherwise, all non-standard BED lines will be skipped.

       

      Last edit: Liguo Wang 2018-03-23

Log in to post a comment.