-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to support carrying over specific additional cvPara…
…ms from mzML to mzid. Adding upon request from Matt Chambers to support some IMS-specific CV params.
- Loading branch information
1 parent
049de36
commit c17cdc2
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package edu.ucsd.msjava.msutil; | ||
|
||
/** | ||
* Stored information for a cvParam, for "copying" cvParams from mzML( and potentially other formats) to mzIdentML | ||
* @author Bryson Gibbons | ||
*/ | ||
public class CvParamInfo { | ||
private String accession; | ||
private String name; | ||
private String value; | ||
private String unitAccession; | ||
private String unitName; | ||
private Boolean hasUnit; | ||
|
||
public CvParamInfo(String accession, String name, String value) { | ||
this.accession = accession; | ||
this.name = name; | ||
this.value = value; | ||
} | ||
|
||
public CvParamInfo(String accession, String name, String value, String unitAccession, String unitName) { | ||
this.accession = accession; | ||
this.name = name; | ||
this.value = value; | ||
this.hasUnit = true; | ||
this.unitAccession = unitAccession; | ||
this.unitName = unitName; | ||
} | ||
|
||
public String getAccession() { | ||
return this.accession; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public String getValue() { | ||
return this.value; | ||
} | ||
|
||
public Boolean getHasUnit() { | ||
return this.hasUnit; | ||
} | ||
|
||
public String getUnitAccession() { | ||
return this.unitAccession; | ||
} | ||
|
||
public String getUnitName() { | ||
return this.unitName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters