You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing your script to parse RM output. I just used it as part of the FastTE pipeline - very useful!
I went through the R script more or less line by line today as I wanted to change the output format slightly and then noticed a bug. I traced this back to the way you are reading in the RM output in line 26. Basically, if the first column (sw_score) does not start with a white space, all of the columns of that line are shifted to the left and the resulting data frame is incorrect. I found a fix to get around this issue, see below.
Hi Christopher,
Thanks for sharing your script to parse RM output. I just used it as part of the FastTE pipeline - very useful!
I went through the R script more or less line by line today as I wanted to change the output format slightly and then noticed a bug. I traced this back to the way you are reading in the RM output in line 26. Basically, if the first column (sw_score) does not start with a white space, all of the columns of that line are shifted to the left and the resulting data frame is incorrect. I found a fix to get around this issue, see below.
Lines in raw RM output:
Original representation in the R data frame (first row should start with 27245, but all columns are shifted to the left):
R data frame after fixing:
This is how I fixed it (replace line 26 with these two lines of code):
Hope this is useful to others as well.
Best wishes,
Jasmin
The text was updated successfully, but these errors were encountered: