Class: Mspire::Mzml::ProcessingMethod

Inherits:
Object
  • Object
show all
Includes:
CV::Paramable
Defined in:
lib/mspire/mzml/processing_method.rb

Overview

MAY supply a child term of MS:1000630 (data processing parameter) one or more times

e.g.: MS:1000629 (low intensity threshold)
e.g.: MS:1000631 (high intensity threshold)
e.g.: MS:1000747 (completion time)
e.g.: MS:1000787 (inclusive low intensity threshold)
e.g.: MS:1000788 (inclusive high intensity threshold)

MUST supply a child term of MS:1000452 (data transformation) one or more times

e.g.: MS:1000033 (deisotoping)
e.g.: MS:1000034 (charge deconvolution)
e.g.: MS:1000544 (Conversion to mzML)
e.g.: MS:1000545 (Conversion to mzXML)
e.g.: MS:1000546 (Conversion to mzData)
e.g.: MS:1000593 (baseline reduction)
e.g.: MS:1000594 (low intensity data point removal)
e.g.: MS:1000741 (Conversion to dta)
e.g.: MS:1000745 (retention time alignment)
e.g.: MS:1000746 (high intensity data point removal)

Instance Attribute Summary collapse

Attributes included from CV::Paramable

#cv_params, #ref_param_groups, #user_params

Instance Method Summary collapse

Methods included from CV::Paramable

#accessionable_params, #describe!, #describe_from_xml!, #describe_many!, #describe_self_from_xml!, #each_accessionable_param, #each_param, #fetch, #fetch_by_accession, #param?, #param_by_accession, #params, #params?, #reject!, #replace!, #replace_many!

Constructor Details

#initialize(software) ⇒ ProcessingMethod

Returns a new instance of ProcessingMethod.



29
30
31
32
33
34
35
# File 'lib/mspire/mzml/processing_method.rb', line 29

def initialize(software)
  @software = software
  params_init
  if block_given?
    yield self 
  end
end

Instance Attribute Details

#softwareObject

Returns the value of attribute software.



27
28
29
# File 'lib/mspire/mzml/processing_method.rb', line 27

def software
  @software
end

Instance Method Details

#to_xml(builder, order) ⇒ Object



37
38
39
40
41
42
# File 'lib/mspire/mzml/processing_method.rb', line 37

def to_xml(builder, order)
  builder.processingMethod(order: order, softwareRef: software.id) do |pm_n|
    super(pm_n) # params
  end
  builder
end