A function to convert raw ASCII files obtained from the Bruker SolariX XR (eXtreme Resolution) FT-ICR Mass Spectrometer.

read_ascii(filename)

Arguments

filename

character; The filepath to the local .ascii data that is to be converted.

Value

Returns an object of class data.frame with two numeric columns: "mass" and "intensity"

References

https://github.com/wesleyburr/subMaldi

Author

Sophie Castel <sophie.castel@ontariotechu.net>

Examples

## Converting sample ASCII file 'raw_ascii.ascii' to 'data.frame' file_loc <- system.file("extdata", "raw_test_file.ascii", package = "subMALDI") converted <- read_ascii(filename = file_loc)