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