readF.massvector {mscalib} | R Documentation |
Reads massvector written with the function writeF.massvector
## S3 method for class 'massvector': readF(object,path,file=info(object),ext="txt",...)
... |
|
ext |
file extension; default |
file |
file name; default |
object |
object of class massvector. Use constructor massvector() |
path |
path to file. |
The read and write functions for all the different peak-list formats are not provided by the package. This is because there are oodles of different formats. I will try to collect read-write functions for as many as possible peak-list format's in an add on package which you can find at http://www.molgen.mpg.de/~wolski/mscalib/IO/. The file format of the file to be read must be: >0_A1_1SRef:1,1
842.4257236 650.66
987.3931319 180.3
... ...
The char between > and : is read into the info field and used as a key in the massvectorlist. So it must be unique. After the double colon the coordinates have to written. The first column are the masses. The second column are the intensities.
Witold Wolski wolski@molgen.mpg.de
data(mv1) writeF(mv1,".") readF(massvector(info(mv1)),".") file.remove(paste(info(mv1),".txt",sep=""))