I have a .wig file with three columns (Columns: Pos, Positive Strand, Negative Strand). I am trying to use import.wig into R, however I get the error "data length [1545] is not a sub-multiple or multiple of the number of rows [2]". When opening the wig in R, the columns are shifted and incorrectly filled. How can I import this strand information and maintain the integrity of the columns?
How was the wig file generated?
The .wig file was generated using igvtools, exporting "counts" coverage information from a BAM file into the three columns.