nim.write {aCGH.Spline} | R Documentation |
Function used to replace intensity values and log ratio values within a Nimblegen input file.
nim.write(file, x)
file |
- a Nimblegen input file to use as a template (ideally this should be the Nimblegen file from which the data came from). |
x |
- a ".temp" formatted dataframe containing the intensity values and log2 ratio to be written. |
Using a combination of "nim.read" and "nim.write" it is easy to modifying Nimblegen data and output results back to the orignal format.
This outputs a new Nimblegen file having exactly the same filename except it will start with "S".
The new FE file will contain the intensity values, log ratio and flags from the ".temp" format input stucture(x).
NB. If the input filename starts with an "S" the file will be overwritten.
This function draws on methods contained within the "Jspline" class.
Tomas William Fitzgerald
# Read "Nimfile.txt", flag all data points and write out in Nimblgen format. # data <- nim.read("FEfile.txt", raw=TRUE) # data[,8] = 1 # nim.write("FEfile.txt", data)