SCZip | R Documentation |
Represents the zip mass spec file
Represents the zip mass spec file
This reference class represents the zip mass spec file. It does this by providing objects for the zip file, the metadata, as well as various bits underneath such as the mzml data and peak lists, and their associated metadata. Although it is possible to work with the SCZip object directly, it is heavily recommended to use the SCCharacterizePeaks object for carrying out the various steps of an analysis, including peak finding.
zip_file
the actual zip file
zip_metadata
the metadata about the zip file
metadata
the metadata itself
metadata_file
the metadata file
sc_mzml
the mzML data object.
peaks
??
sc_peak_region_finder
the peak finder object
json_summary
jsonized summary of the peak characterization
id
the identifier of the sample
out_file
where to put the final file
temp_directory
where we keep everything until peak characterization is done
load_mzml()
Loads the mzML file
SCZip$load_mzml()
load_sc_peak_region_finder()
Loads the SCPeakRegionFinder object
SCZip$load_sc_peak_region_finder()
save_json()
Save the jsonized summary out to actual json files
SCZip$save_json()
save_sc_peak_region_finder()
Saves the SCPeakRegionFinder binary object
SCZip$save_sc_peak_region_finder()
load_peak_list()
loads just the peak list data-frame instead of peak region finder
SCZip$load_peak_list()
compare_mzml_corresponded_densities()
compare peak densities
SCZip$compare_mzml_corresponded_densities( mz_range = c(150, 1600), window = 1, delta = 0.1 )
mz_range
the mz range to work over
window
the window size in m/z
delta
how much to move the window
new()
Create a new SCZip object.
SCZip$new( in_file, mzml_meta_file = NULL, out_file = NULL, load_mzml = TRUE, load_peak_list = TRUE, temp_loc = tempfile("scpcms") )
in_file
the mzML file to load
mzml_meta_file
an optional metadata file
out_file
where to save the final file
load_mzml
should the mzML file actually be loaded into an SCMzml object?
load_peak_list
should the peak list be loaded if this is previously characterized?
temp_loc
where to make the temp file while working with the data
show_temp_dir()
Show the temp directory where everything is being worked with
SCZip$show_temp_dir()
write_zip()
Write the zip file
SCZip$write_zip(out_file = NULL)
out_file
where to save the zip file
cleanup()
delete the temp directory
SCZip$cleanup()
finalize()
delete when things are done
SCZip$finalize()
add_peak_list()
Add peak list data to the temp directory
SCZip$add_peak_list(peak_list_data)
peak_list_data
the peak list data
clone()
The objects of this class are cloneable with this method.
SCZip$clone(deep = FALSE)
deep
Whether to make a deep clone.
SCMzml
SCPeakRegionFinder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.