This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Converting csv file to genomic ranges file

I have used the following line of code before to convert my .csv file to GRanges:

#Converting csv to GRanges 
gr <- makeGRangesFromDataFrame(Test, keep.extra.columns=TRUE)

Weirdly enough, this line is still working for an older file but no more for the new file. Here is the error that I see:

Error in .Call2("C_solve_user_SEW0", start, end, width, PACKAGE = "IRanges") :
  In range 20498: at least two out of 'start', 'end', and 'width', must
  be supplied.

I made sure the columns are same as the old file (that works).

annotation granges makegrangesfromdataframe

Please provide some example data, right now we have no idea what Test even is. Something like head(Test) for example.

0 answers

No answers yet.

Log in to answer this question.