mspire 0.6.7 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +5 -0
- data/VERSION +1 -1
- data/lib/cv/param.rb +25 -5
- data/lib/cv/referenceable_param_group_ref.rb +13 -0
- data/lib/cv.rb +3 -1
- data/lib/ms/cv/param.rb +19 -24
- data/lib/ms/cv/paramable.rb +42 -0
- data/lib/ms/mzml/activation.rb +33 -0
- data/lib/ms/mzml/chromatogram.rb +29 -0
- data/lib/ms/mzml/chromatogram_list.rb +26 -0
- data/lib/ms/mzml/component.rb +21 -0
- data/lib/ms/mzml/contact.rb +23 -0
- data/lib/ms/mzml/cv.rb +46 -0
- data/lib/ms/mzml/data_array.rb +65 -0
- data/lib/ms/mzml/data_array_container_like.rb +57 -0
- data/lib/ms/mzml/data_processing.rb +27 -0
- data/lib/ms/mzml/file_content.rb +21 -0
- data/lib/ms/mzml/file_description.rb +47 -0
- data/lib/ms/mzml/instrument_configuration.rb +37 -0
- data/lib/ms/mzml/isolation_window.rb +21 -0
- data/lib/ms/mzml/list.rb +23 -0
- data/lib/ms/mzml/precursor.rb +42 -0
- data/lib/ms/mzml/processing_method.rb +24 -0
- data/lib/ms/mzml/product.rb +22 -0
- data/lib/ms/mzml/referenceable_param_group.rb +40 -0
- data/lib/ms/mzml/run.rb +54 -0
- data/lib/ms/mzml/sample.rb +27 -0
- data/lib/ms/mzml/scan.rb +44 -0
- data/lib/ms/mzml/scan_list.rb +33 -0
- data/lib/ms/mzml/scan_settings.rb +28 -0
- data/lib/ms/mzml/selected_ion.rb +18 -0
- data/lib/ms/mzml/software.rb +28 -0
- data/lib/ms/mzml/source_file.rb +48 -0
- data/lib/ms/mzml/spectrum.rb +91 -0
- data/lib/ms/mzml/spectrum_list.rb +42 -0
- data/lib/ms/mzml.rb +173 -6
- data/lib/ms/quant/qspec/protein_group_comparison.rb +3 -3
- data/lib/ms/quant/qspec.rb +4 -4
- data/lib/ms/spectrum.rb +137 -260
- data/lib/ms/spectrum_like.rb +133 -0
- data/lib/ms/user_param.rb +43 -0
- data/lib/mspire.rb +6 -0
- data/obo/ms.obo +670 -121
- data/obo/unit.obo +23 -1
- data/spec/ms/cv/param_spec.rb +33 -0
- data/spec/ms/mzml/cv_spec.rb +17 -0
- data/spec/ms/mzml/file_content_spec.rb +25 -0
- data/spec/ms/mzml/file_description_spec.rb +34 -0
- data/spec/ms/mzml/referenceable_param_group_spec.rb +33 -0
- data/spec/ms/mzml_spec.rb +65 -4
- data/spec/ms/user_param_spec.rb +51 -0
- data/spec/mspire_spec.rb +9 -0
- data/spec/testfiles/ms/mzml/mspire_simulated.noidx.check.mzML +81 -0
- metadata +57 -21
- data/lib/cv/description.rb +0 -19
- data/lib/ms/cv/description.rb +0 -44
- data/lib/msplat.rb +0 -2
- data/spec/ms/cv/description_spec.rb +0 -60
- data/spec/msplat_spec.rb +0 -24
data/obo/unit.obo
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
format-version: 1.2
|
3
2
|
date: 12:10:2011 11:21
|
4
3
|
saved-by: George Gkoutos
|
@@ -2547,6 +2546,25 @@ is_a: UO:0000054 ! area density unit
|
|
2547
2546
|
created_by: George Gkoutos
|
2548
2547
|
creation_date: 2011-10-12T11:17:08Z
|
2549
2548
|
|
2549
|
+
[Term]
|
2550
|
+
id: UO:0000284
|
2551
|
+
name: count per nanomolar
|
2552
|
+
def: "A rate unit which is equal to one over one nanomolar." [UO:GVG]
|
2553
|
+
subset: unit_slim
|
2554
|
+
synonym: "nM^-1" EXACT []
|
2555
|
+
synonym: "1/nM" EXACT []
|
2556
|
+
is_a: UO:0000280 ! rate unit
|
2557
|
+
|
2558
|
+
[Term]
|
2559
|
+
id: UO:0000285
|
2560
|
+
name: count per molar
|
2561
|
+
def: "A rate unit which is equal to one over one molar." [UO:GVG]
|
2562
|
+
subset: unit_slim
|
2563
|
+
synonym: "M^-1" EXACT []
|
2564
|
+
synonym: "1/M" EXACT []
|
2565
|
+
is_a: UO:0000280 ! rate unit
|
2566
|
+
|
2567
|
+
|
2550
2568
|
[Term]
|
2551
2569
|
id: UO:0000301
|
2552
2570
|
name: microgram per liter
|
@@ -2561,3 +2579,7 @@ id: is_unit_of
|
|
2561
2579
|
name: is_unit_of
|
2562
2580
|
namespace: pato.ontology
|
2563
2581
|
|
2582
|
+
[Typedef]
|
2583
|
+
id: unit_of
|
2584
|
+
name: unit_of
|
2585
|
+
namespace: pato.ontology
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'ms/cv/param'
|
4
|
+
require 'cv/param'
|
5
|
+
|
6
|
+
describe MS::CV::Param do
|
7
|
+
describe 'object creation from class methods' do
|
8
|
+
|
9
|
+
it '::new allows full description' do
|
10
|
+
param1 = MS::CV::Param.new('MS', 'MS:1000052', 'suspension')
|
11
|
+
param1.value.should be_nil
|
12
|
+
# just nonsense: 32 ng suspensions
|
13
|
+
param2 = MS::CV::Param.new('MS', 'MS:1000052', 'suspension', 32, ::CV::Param.new('UO', 'UO:0000024', 'nanogram'))
|
14
|
+
param2.cv_ref.should == 'MS'
|
15
|
+
param2.value.should == 32
|
16
|
+
param2.unit.accession.should == 'UO:0000024'
|
17
|
+
end
|
18
|
+
|
19
|
+
it '::[] requires shortcut accession strings' do
|
20
|
+
param1 = MS::CV::Param['MS:1000052']
|
21
|
+
param1.cv_ref.should == 'MS'
|
22
|
+
param1.value.should be_nil
|
23
|
+
|
24
|
+
# just nonsense: 32 ng suspensions
|
25
|
+
param2 = MS::CV::Param['MS:1000052', 32, 'UO:0000024']
|
26
|
+
param2.cv_ref.should == 'MS'
|
27
|
+
param2.name.should == 'suspension'
|
28
|
+
param2.value.should == 32
|
29
|
+
param2.unit.accession.should == 'UO:0000024'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'builder'
|
3
|
+
require 'ms/mzml/cv'
|
4
|
+
|
5
|
+
describe MS::Mzml::CV do
|
6
|
+
|
7
|
+
it 'can make CVList xml' do
|
8
|
+
cvs = [MS::Mzml::CV::MS, MS::Mzml::CV::UO, MS::Mzml::CV::IMS]
|
9
|
+
b = Builder::XmlMarkup.new(:indent => 2)
|
10
|
+
MS::Mzml::CV.list_xml(cvs, b)
|
11
|
+
xml = b.to_xml
|
12
|
+
[/cvList\s+count=/, /id="MS"/, /id="UO"/, /id="IMS"/, /URI="/].each do |regexp|
|
13
|
+
xml.should match(regexp)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'builder'
|
3
|
+
|
4
|
+
require 'ms/mzml/file_content'
|
5
|
+
|
6
|
+
describe MS::Mzml::FileContent do
|
7
|
+
|
8
|
+
it 'can be initialized with params' do
|
9
|
+
filecontent = MS::Mzml::FileContent.new(:params => ['MS:1000579', ['IMS:1000080', "{9D501BDC-5344-4916-B7E9-7E795B02C856}"]])
|
10
|
+
|
11
|
+
desc = filecontent.params
|
12
|
+
desc.size.should == 2
|
13
|
+
desc.all? {|par| par.class == MS::CV::Param }.should be_true
|
14
|
+
b = Builder::XmlMarkup.new
|
15
|
+
filecontent.to_xml(b)
|
16
|
+
xml = b.to_xml
|
17
|
+
[/<fileContent>/, /cvRef="MS"/, /name="universally/].each do |regexp|
|
18
|
+
xml.should match(regexp)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ms/mzml/file_description'
|
3
|
+
require 'builder'
|
4
|
+
|
5
|
+
describe 'creating mzml xml' do
|
6
|
+
describe 'making fileContent' do
|
7
|
+
|
8
|
+
end
|
9
|
+
|
10
|
+
describe 'making a SourceFile' do
|
11
|
+
it 'can be generated with params and a block' do
|
12
|
+
source_file = MS::Mzml::SourceFile.new("someFileID", "filename.mzML", "/home/jtprince/tmp", params: ['MS:1000584'])
|
13
|
+
|
14
|
+
params = source_file.params
|
15
|
+
params.size.should == 1
|
16
|
+
params.all? {|par| par.class == MS::CV::Param }.should be_true
|
17
|
+
b = Builder::XmlMarkup.new(:indent => 2)
|
18
|
+
source_file.to_xml(b)
|
19
|
+
xml = b.to_xml
|
20
|
+
[/<sourceFile/, /id="some/, /name="filen/, /location="\/home/, /cvRef="MS"/].each do |regexp|
|
21
|
+
xml.should match(regexp)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
describe MS::Mzml::FileDescription do
|
28
|
+
|
29
|
+
it 'creates valid xml' do
|
30
|
+
#MS::Mzml::FileDescription
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'builder'
|
3
|
+
|
4
|
+
require 'ms/mzml/referenceable_param_group'
|
5
|
+
|
6
|
+
describe MS::Mzml::ReferenceableParamGroup do
|
7
|
+
|
8
|
+
it 'is created with an id and params' do
|
9
|
+
# the id is required for these objects
|
10
|
+
# no compression
|
11
|
+
rfgroup1 = MS::Mzml::ReferenceableParamGroup.new("mzArray", params: ['MS:1000576', 'MS:1000514'])
|
12
|
+
rfgroup2 = MS::Mzml::ReferenceableParamGroup.new("intensityArray", params: ['MS:1000576', 'MS:1000515'])
|
13
|
+
|
14
|
+
b = Builder::XmlMarkup.new(:indent => 2)
|
15
|
+
z = MS::Mzml::ReferenceableParamGroup.list_xml([rfgroup1, rfgroup2], b)
|
16
|
+
xml = b.to_xml
|
17
|
+
[/referenceableParamGroupList.*count="2/, /cvParam.*cvRef/, /id="intensityArray"/].each do |regexp|
|
18
|
+
xml.should match(regexp)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
it '#to_xml gives a ReferenceableParamGroupRef' do
|
23
|
+
rfgroup1 = MS::Mzml::ReferenceableParamGroup.new("mzArray", params: ['MS:1000576', 'MS:1000514'])
|
24
|
+
builder = Builder::XmlMarkup.new(:indent => 2)
|
25
|
+
rfgroup1.to_xml(builder)
|
26
|
+
xml = builder.to_xml
|
27
|
+
[/referenceableParamGroupRef/, /ref="mzArray"/].each do |regexp|
|
28
|
+
xml.should match(regexp)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
end
|
data/spec/ms/mzml_spec.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'builder'
|
2
3
|
|
3
4
|
require 'ms/mzml'
|
4
5
|
|
5
|
-
describe
|
6
|
-
|
7
|
-
describe MS::Mzml do
|
6
|
+
describe MS::Mzml do
|
8
7
|
|
8
|
+
describe 'reading an indexed, compressed peaks, mzML file' do
|
9
9
|
describe 'reading a spectrum' do
|
10
10
|
|
11
11
|
before do
|
@@ -42,9 +42,70 @@ describe 'indexed, compressed peaks, mzML file' do
|
|
42
42
|
spec.mzs.size.should == mz_sizes.shift
|
43
43
|
end
|
44
44
|
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'writing mzml' do
|
49
|
+
|
50
|
+
def sanitize_version(string)
|
51
|
+
string.gsub(/"mspire" version="([\.\d]+)"/, %Q{"mspire" version="X.X.X"})
|
52
|
+
end
|
53
|
+
|
54
|
+
it 'reads MS1 spectra and retention times' do
|
55
|
+
|
56
|
+
spec_params = ['MS:1000127', ['MS:1000511', 1]]
|
57
|
+
|
58
|
+
spec1 = MS::Mzml::Spectrum.new('scan=1', params: spec_params) do |spec|
|
59
|
+
spec.data_arrays = [[1,2,3], [4,5,6]]
|
60
|
+
spec.scan_list = MS::Mzml::ScanList.new do |sl|
|
61
|
+
scan = MS::Mzml::Scan.new do |scan|
|
62
|
+
# retention time of 42 seconds
|
63
|
+
scan.describe! ['MS:1000016', 40.0, 'UO:0000010']
|
64
|
+
end
|
65
|
+
sl << scan
|
66
|
+
end
|
67
|
+
end
|
68
|
+
spec2 = MS::Mzml::Spectrum.new('scan=2', params: spec_params) do |spec|
|
69
|
+
spec.data_arrays = [[1,2,3.5], [5,6,5]]
|
70
|
+
spec.scan_list = MS::Mzml::ScanList.new do |sl|
|
71
|
+
scan = MS::Mzml::Scan.new do |scan|
|
72
|
+
# retention time of 42 seconds
|
73
|
+
scan.describe! ['MS:1000016', 45.0, 'UO:0000010']
|
74
|
+
end
|
75
|
+
sl << scan
|
76
|
+
end
|
77
|
+
end
|
45
78
|
|
79
|
+
mzml = MS::Mzml.new do |mzml|
|
80
|
+
mzml.id = 'the_little_one'
|
81
|
+
mzml.cvs = MS::Mzml::CV::DEFAULT_CVS
|
82
|
+
mzml.file_description = MS::Mzml::FileDescription.new do |fd|
|
83
|
+
fd.file_content = MS::Mzml::FileContent.new
|
84
|
+
fd.source_files << MS::Mzml::SourceFile.new
|
85
|
+
end
|
86
|
+
default_instrument_config = MS::Mzml::InstrumentConfiguration.new("IC",[], params: ['MS:1000031'])
|
87
|
+
mzml.instrument_configurations << default_instrument_config
|
88
|
+
software = MS::Mzml::Software.new
|
89
|
+
mzml.software_list << software
|
90
|
+
default_data_processing = MS::Mzml::DataProcessing.new("did_nothing")
|
91
|
+
mzml.data_processing_list << default_data_processing
|
92
|
+
mzml.run = MS::Mzml::Run.new("little_run", default_instrument_config) do |run|
|
93
|
+
spectrum_list = MS::Mzml::SpectrumList.new(default_data_processing)
|
94
|
+
spectrum_list.push(spec1, spec2)
|
95
|
+
run.spectrum_list = spectrum_list
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
check = TESTFILES + '/ms/mzml/mspire_simulated.noidx.check.mzML'
|
100
|
+
tmpfile = TESTFILES + '/ms/mzml/mspire_simulated.TMP.mzML'
|
101
|
+
mzml.to_xml(tmpfile)
|
102
|
+
xml = sanitize_version(IO.read(tmpfile))
|
103
|
+
xml.should be_a(String)
|
104
|
+
sanitize_version(mzml.to_xml).should == xml
|
105
|
+
xml.should == sanitize_version(IO.read(check))
|
106
|
+
xml.should match(/<mzML/)
|
107
|
+
File.unlink(tmpfile)
|
46
108
|
end
|
47
109
|
end
|
48
110
|
end
|
49
111
|
|
50
|
-
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'ms/user_param'
|
4
|
+
require 'ms/cv/param'
|
5
|
+
|
6
|
+
describe MS::UserParam do
|
7
|
+
|
8
|
+
describe 'initializing with various args' do
|
9
|
+
|
10
|
+
it 'can be initialized with the name' do
|
11
|
+
arg = 'special_user_param'
|
12
|
+
param = MS::UserParam.new arg
|
13
|
+
param.name.should == arg
|
14
|
+
param.unit.should be_nil
|
15
|
+
end
|
16
|
+
|
17
|
+
it' can be initialized with an included UO accession' do
|
18
|
+
arg = 'special_user_param'
|
19
|
+
param = MS::UserParam.new arg, 'UO:0000108'
|
20
|
+
param.name.should == arg
|
21
|
+
param.unit.should_not be_nil
|
22
|
+
param.unit.accession.should == 'UO:0000108'
|
23
|
+
end
|
24
|
+
|
25
|
+
it' can be initialized with an included CV::Param (unit)' do
|
26
|
+
arg = 'special_user_param'
|
27
|
+
param = MS::UserParam.new arg, MS::CV::Param['UO:0000108']
|
28
|
+
param.name.should == arg
|
29
|
+
param.unit.should_not be_nil
|
30
|
+
param.unit.accession.should == 'UO:0000108'
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'can be initialized with a name and value (and type)' do
|
34
|
+
args = %w(some_user_param 88 xsd:float)
|
35
|
+
param = MS::UserParam.new *args
|
36
|
+
param.name.should == args[0]
|
37
|
+
param.value.should == args[1]
|
38
|
+
param.type.should == args[2]
|
39
|
+
param.unit.should be_nil
|
40
|
+
|
41
|
+
args = %w(some_user_param 88 xsd:float UO:0000108)
|
42
|
+
param = MS::UserParam.new *args
|
43
|
+
param.name.should == args[0]
|
44
|
+
param.value.should == args[1]
|
45
|
+
param.type.should == args[2]
|
46
|
+
param.unit.accession.should == 'UO:0000108'
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
data/spec/mspire_spec.rb
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<mzML xmlns="http://psi.hupo.org/ms/mzml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.1.0" id="the_little_one">
|
3
|
+
<cvList count="3">
|
4
|
+
<cv id="MS" fullName="Proteomics Standards Initiative Mass Spectrometry Ontology" URI="http://psidev.cvs.sourceforge.net/*checkout*/psidev/psi/psi-ms/mzML/controlledVocabulary/psi-ms.obo" version="3.18.0"/>
|
5
|
+
<cv id="UO" fullName="Unit Ontology" URI="http://obo.cvs.sourceforge.net/*checkout*/obo/obo/ontology/phenotype/unit.obo" version="16:02:2012"/>
|
6
|
+
<cv id="IMS" fullName="Imaging MS Ontology" URI="http://www.maldi-msi.org/download/imzml/imagingMS.obo" version="0.9.1"/>
|
7
|
+
</cvList>
|
8
|
+
<fileDescription>
|
9
|
+
<fileContent>
|
10
|
+
</fileContent>
|
11
|
+
<sourceFileList count="1">
|
12
|
+
<sourceFile id="sourcefile1" name="mspire-simulated" location="file://">
|
13
|
+
</sourceFile>
|
14
|
+
</sourceFileList>
|
15
|
+
</fileDescription>
|
16
|
+
<softwareList count="1">
|
17
|
+
<software id="mspire" version="0.6.7">
|
18
|
+
</software>
|
19
|
+
</softwareList>
|
20
|
+
<instrumentConfigurationList count="1">
|
21
|
+
<instrumentConfiguration id="IC">
|
22
|
+
<cvParam cvRef="MS" accession="MS:1000031" name="instrument model"/>
|
23
|
+
<componentList count="0">
|
24
|
+
</componentList>
|
25
|
+
</instrumentConfiguration>
|
26
|
+
</instrumentConfigurationList>
|
27
|
+
<dataProcessingList count="1">
|
28
|
+
<dataProcessing id="did_nothing">
|
29
|
+
</dataProcessing>
|
30
|
+
</dataProcessingList>
|
31
|
+
<run id="little_run" defaultInstrumentConfigurationRef="IC">
|
32
|
+
<spectrumList count="2" defaultDataProcessingRef="did_nothing">
|
33
|
+
<spectrum id="scan=1" index="0" defaultArrayLength="3">
|
34
|
+
<cvParam cvRef="MS" accession="MS:1000127" name="centroid spectrum"/>
|
35
|
+
<cvParam cvRef="MS" accession="MS:1000511" name="ms level" value="1"/>
|
36
|
+
<scanList count="1">
|
37
|
+
<scan>
|
38
|
+
<cvParam cvRef="MS" accession="MS:1000016" name="scan start time" value="40.0" unitCvRef="UO" unitAccession="UO:0000010" unitName="second"/>
|
39
|
+
</scan>
|
40
|
+
</scanList>
|
41
|
+
<binaryDataArrayList count="2">
|
42
|
+
<binaryDataArray encodedLength="28">
|
43
|
+
<cvParam cvRef="MS" accession="MS:1000523" name="64-bit float"/>
|
44
|
+
<cvParam cvRef="MS" accession="MS:1000574" name="zlib compression"/>
|
45
|
+
<cvParam cvRef="MS" accession="MS:1000514" name="m/z array"/>
|
46
|
+
<binary>eJxjYACBD/YMEOAAoTgcABe3Abg=</binary>
|
47
|
+
</binaryDataArray>
|
48
|
+
<binaryDataArray encodedLength="28">
|
49
|
+
<cvParam cvRef="MS" accession="MS:1000523" name="64-bit float"/>
|
50
|
+
<cvParam cvRef="MS" accession="MS:1000574" name="zlib compression"/>
|
51
|
+
<cvParam cvRef="MS" accession="MS:1000515" name="intensity array"/>
|
52
|
+
<binary>eJxjYAABAQcwxSACpSUcAAjwAP0=</binary>
|
53
|
+
</binaryDataArray>
|
54
|
+
</binaryDataArrayList>
|
55
|
+
</spectrum>
|
56
|
+
<spectrum id="scan=2" index="1" defaultArrayLength="3">
|
57
|
+
<cvParam cvRef="MS" accession="MS:1000127" name="centroid spectrum"/>
|
58
|
+
<cvParam cvRef="MS" accession="MS:1000511" name="ms level" value="1"/>
|
59
|
+
<scanList count="1">
|
60
|
+
<scan>
|
61
|
+
<cvParam cvRef="MS" accession="MS:1000016" name="scan start time" value="45.0" unitCvRef="UO" unitAccession="UO:0000010" unitName="second"/>
|
62
|
+
</scan>
|
63
|
+
</scanList>
|
64
|
+
<binaryDataArrayList count="2">
|
65
|
+
<binaryDataArray encodedLength="28">
|
66
|
+
<cvParam cvRef="MS" accession="MS:1000523" name="64-bit float"/>
|
67
|
+
<cvParam cvRef="MS" accession="MS:1000574" name="zlib compression"/>
|
68
|
+
<cvParam cvRef="MS" accession="MS:1000514" name="m/z array"/>
|
69
|
+
<binary>eJxjYACBD/YMEOAAoXgcABe/Abw=</binary>
|
70
|
+
</binaryDataArray>
|
71
|
+
<binaryDataArray encodedLength="28">
|
72
|
+
<cvParam cvRef="MS" accession="MS:1000523" name="64-bit float"/>
|
73
|
+
<cvParam cvRef="MS" accession="MS:1000574" name="zlib compression"/>
|
74
|
+
<cvParam cvRef="MS" accession="MS:1000515" name="intensity array"/>
|
75
|
+
<binary>eJxjYAABEQcwxSABpUUcAAlYAQE=</binary>
|
76
|
+
</binaryDataArray>
|
77
|
+
</binaryDataArrayList>
|
78
|
+
</spectrum>
|
79
|
+
</spectrumList>
|
80
|
+
</run>
|
81
|
+
</mzML>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mspire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|
17
|
-
requirement: &
|
17
|
+
requirement: &15540200 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '1.5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *15540200
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bsearch
|
28
|
-
requirement: &
|
28
|
+
requirement: &15538300 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *15538300
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: andand
|
39
|
-
requirement: &
|
39
|
+
requirement: &15535660 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 1.3.1
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *15535660
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: obo
|
50
|
-
requirement: &
|
50
|
+
requirement: &15553840 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 0.1.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *15553840
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rspec
|
61
|
-
requirement: &
|
61
|
+
requirement: &15552520 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: '2.6'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *15552520
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: jeweler
|
72
|
-
requirement: &
|
72
|
+
requirement: &15551260 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 1.5.2
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *15551260
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: rcov
|
83
|
-
requirement: &
|
83
|
+
requirement: &15550400 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ! '>='
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
version: '0'
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *15550400
|
92
92
|
description: mass spectrometry proteomics, lipidomics, and tools, a rewrite of mspire,
|
93
93
|
merging of ms-* gems
|
94
94
|
email: jtprince@gmail.com
|
@@ -105,14 +105,14 @@ files:
|
|
105
105
|
- lib/bin.rb
|
106
106
|
- lib/core_ext/array/in_groups.rb
|
107
107
|
- lib/cv.rb
|
108
|
-
- lib/cv/description.rb
|
109
108
|
- lib/cv/param.rb
|
109
|
+
- lib/cv/referenceable_param_group_ref.rb
|
110
110
|
- lib/io/bookmark.rb
|
111
111
|
- lib/merge.rb
|
112
112
|
- lib/ms.rb
|
113
113
|
- lib/ms/cv.rb
|
114
|
-
- lib/ms/cv/description.rb
|
115
114
|
- lib/ms/cv/param.rb
|
115
|
+
- lib/ms/cv/paramable.rb
|
116
116
|
- lib/ms/digester.rb
|
117
117
|
- lib/ms/fasta.rb
|
118
118
|
- lib/ms/ident.rb
|
@@ -140,8 +140,36 @@ files:
|
|
140
140
|
- lib/ms/mass.rb
|
141
141
|
- lib/ms/mass/aa.rb
|
142
142
|
- lib/ms/mzml.rb
|
143
|
+
- lib/ms/mzml/activation.rb
|
144
|
+
- lib/ms/mzml/chromatogram.rb
|
145
|
+
- lib/ms/mzml/chromatogram_list.rb
|
146
|
+
- lib/ms/mzml/component.rb
|
147
|
+
- lib/ms/mzml/contact.rb
|
148
|
+
- lib/ms/mzml/cv.rb
|
149
|
+
- lib/ms/mzml/data_array.rb
|
150
|
+
- lib/ms/mzml/data_array_container_like.rb
|
151
|
+
- lib/ms/mzml/data_processing.rb
|
152
|
+
- lib/ms/mzml/file_content.rb
|
153
|
+
- lib/ms/mzml/file_description.rb
|
143
154
|
- lib/ms/mzml/index_list.rb
|
155
|
+
- lib/ms/mzml/instrument_configuration.rb
|
156
|
+
- lib/ms/mzml/isolation_window.rb
|
157
|
+
- lib/ms/mzml/list.rb
|
144
158
|
- lib/ms/mzml/plms1.rb
|
159
|
+
- lib/ms/mzml/precursor.rb
|
160
|
+
- lib/ms/mzml/processing_method.rb
|
161
|
+
- lib/ms/mzml/product.rb
|
162
|
+
- lib/ms/mzml/referenceable_param_group.rb
|
163
|
+
- lib/ms/mzml/run.rb
|
164
|
+
- lib/ms/mzml/sample.rb
|
165
|
+
- lib/ms/mzml/scan.rb
|
166
|
+
- lib/ms/mzml/scan_list.rb
|
167
|
+
- lib/ms/mzml/scan_settings.rb
|
168
|
+
- lib/ms/mzml/selected_ion.rb
|
169
|
+
- lib/ms/mzml/software.rb
|
170
|
+
- lib/ms/mzml/source_file.rb
|
171
|
+
- lib/ms/mzml/spectrum.rb
|
172
|
+
- lib/ms/mzml/spectrum_list.rb
|
145
173
|
- lib/ms/obo.rb
|
146
174
|
- lib/ms/peak.rb
|
147
175
|
- lib/ms/peak/point.rb
|
@@ -150,7 +178,9 @@ files:
|
|
150
178
|
- lib/ms/quant/qspec/protein_group_comparison.rb
|
151
179
|
- lib/ms/spectrum.rb
|
152
180
|
- lib/ms/spectrum/centroid.rb
|
153
|
-
- lib/
|
181
|
+
- lib/ms/spectrum_like.rb
|
182
|
+
- lib/ms/user_param.rb
|
183
|
+
- lib/mspire.rb
|
154
184
|
- lib/obo/ims.rb
|
155
185
|
- lib/obo/ms.rb
|
156
186
|
- lib/obo/ontology.rb
|
@@ -161,7 +191,7 @@ files:
|
|
161
191
|
- obo/ms.obo
|
162
192
|
- obo/unit.obo
|
163
193
|
- spec/bin_spec.rb
|
164
|
-
- spec/ms/cv/
|
194
|
+
- spec/ms/cv/param_spec.rb
|
165
195
|
- spec/ms/digester_spec.rb
|
166
196
|
- spec/ms/fasta_spec.rb
|
167
197
|
- spec/ms/ident/peptide/db_spec.rb
|
@@ -171,19 +201,25 @@ files:
|
|
171
201
|
- spec/ms/ident/protein_group_spec.rb
|
172
202
|
- spec/ms/isotope/aa_spec.rb
|
173
203
|
- spec/ms/mass_spec.rb
|
204
|
+
- spec/ms/mzml/cv_spec.rb
|
205
|
+
- spec/ms/mzml/file_content_spec.rb
|
206
|
+
- spec/ms/mzml/file_description_spec.rb
|
174
207
|
- spec/ms/mzml/index_list_spec.rb
|
175
208
|
- spec/ms/mzml/plms1_spec.rb
|
209
|
+
- spec/ms/mzml/referenceable_param_group_spec.rb
|
176
210
|
- spec/ms/mzml_spec.rb
|
177
211
|
- spec/ms/peak_spec.rb
|
178
212
|
- spec/ms/plms1_spec.rb
|
179
213
|
- spec/ms/quant/qspec_spec.rb
|
180
214
|
- spec/ms/spectrum_spec.rb
|
181
|
-
- spec/
|
215
|
+
- spec/ms/user_param_spec.rb
|
216
|
+
- spec/mspire_spec.rb
|
182
217
|
- spec/obo_spec.rb
|
183
218
|
- spec/spec_helper.rb
|
184
219
|
- spec/testfiles/ms/ident/peptide/db/uni_11_sp_tr.fasta
|
185
220
|
- spec/testfiles/ms/ident/peptide/db/uni_11_sp_tr.msd_clvg2.min_aaseq4.yml
|
186
221
|
- spec/testfiles/ms/mzml/j24z.idx_comp.3.mzML
|
222
|
+
- spec/testfiles/ms/mzml/mspire_simulated.noidx.check.mzML
|
187
223
|
- spec/testfiles/ms/mzml/openms.noidx_nocomp.12.mzML
|
188
224
|
- spec/testfiles/ms/quant/kill_extra_tabs.rb
|
189
225
|
- spec/testfiles/ms/quant/max_quant_output.provenance.txt
|
data/lib/cv/description.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
|
2
|
-
module CV
|
3
|
-
class Description < Array
|
4
|
-
def initialize(*args, &block)
|
5
|
-
super(args)
|
6
|
-
self.instance_eval &block
|
7
|
-
end
|
8
|
-
|
9
|
-
# pushes a CV::Param object onto the description array
|
10
|
-
def param(*args)
|
11
|
-
push CV::Param.new(*args)
|
12
|
-
end
|
13
|
-
|
14
|
-
# for now, assumes xml is a Nokogiri::XML::Builder object
|
15
|
-
def to_xml(xml)
|
16
|
-
each {|param| param.to_xml(xml) }
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|