Open FloodLin opened 2 years ago
I use bedVis function to visualize one bed file, then get the error information:
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : scan() expected 'an integer', got '3.73213'
The head of my bed file is like this:
chr1 4775573 4775972 WT_peak_1 105 . 3.73213 13.25978 10.59059 242 chr1 4797754 4798394 WT_peak_2 164 . 4.20615 19.30075 16.48146 251 chr1 4809514 4810091 WT_peak_3 311 . 12.56667 34.25089 31.17891 317 chr1 4847498 4848077 WT_peak_4 49 . 2.48809 7.46506 4.99742 374 chr1 5073121 5073643 WT_peak_5 110 . 3.51703 13.71696 11.02801 259 chr1 6066674 6067153 WT_peak_6 227 . 10.44661 25.68395 22.74105 238 chr1 6178367 6178964 WT_peak_7 262 . 11.38886 29.28292 26.28402 300 chr1 6204495 6205300 WT_peak_8 751 . 7.09568 78.66492 75.10851 475 chr1 6208645 6209045 WT_peak_9 178 . 8.44836 20.65767 17.81106 158 chr1 7078709 7079817 WT_peak_10 2330 . 23.69970 237.78990 233.01427 495 chr1 7090632 7091096 WT_peak_11 81 . 5.73536 10.70292 8.10375 201 chr1 7095194 7095466 WT_peak_12 55 . 4.79311 8.00039 5.50045 69 chr1 7129136 7130021 WT_peak_13 336 . 13.27336 36.80184 33.69252 256 chr1 7388001 7388544 WT_peak_14 177 . 5.95984 20.64198 17.79554 260 chr1 9554531 9554805 WT_peak_15 72 . 5.49979 9.77715 7.21489 162 chr1 9690612 9691103 WT_peak_16 353 . 9.17097 38.45177 35.32200 198 chr1 9737968 9738285 WT_peak_17 45 . 2.31349 6.94844 4.50601 127 chr1 9738438 9738811 WT_peak_18 110 . 3.51703 13.71696 11.02801 143 chr1 9787749 9788113 WT_peak_19 94 . 4.72288 12.08248 9.44393 200 chr1 9788206 9788737 WT_peak_20 661 . 13.29334 69.59077 66.11775 241 chr1 9812758 9813316 WT_peak_21 441 . 15.62899 47.40500 44.16190 308 chr1 9871097 9871448 WT_peak_22 109 . 6.67761 13.61469 10.92817 180
你代码是什么?
bedVis(bdFile = "aaa.bed", chr = "chr1", region.min = 12, region.max = 16178964)
I met a same problem
I use bedVis function to visualize one bed file, then get the error information:
The head of my bed file is like this: