* @throws SAXException
*
*/
public void update( final File mzDataFile ) throws JAXBException, IOException, SAXException
{
final MzData mzData = MzDataFormatter.read( mzDataFile );
final CvLookupType cvLookupType = new CvLookupType();
cvLookupType.setCvLabel( "PSI" ); //$NON-NLS-1$
cvLookupType.setFullName( "The PSI Ontology" ); //$NON-NLS-1$
cvLookupType.setVersion( "1.0.0" ); //$NON-NLS-1$
cvLookupType.setAddress( "http://psidev.sourceforge.net/ontology/" ); //$NON-NLS-1$
mzData.getCvLookup().add( cvLookupType );
final DescriptionType description = mzData.getDescription().getAdmin().getSampleDescription();
final List<Object> descriptionCvParamOrUserParam = description.getCvParamOrUserParam();
descriptionCvParamOrUserParam.add( PrideParamFactory.getCvParam( "NEWT", "4932", "Saccharomyces cerevisiae (Baker's yeast)", "SUBSAMPLE_1" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
descriptionCvParamOrUserParam.add( PrideParamFactory.getCvParam( "PRIDE", "PRIDE:0000205", "Heavy stable isotope label", "SUBSAMPLE_2" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
descriptionCvParamOrUserParam.add( PrideParamFactory.getCvParam( "MOD", "MOD:00544", "6x(13)C labeled residue", "SUBSAMPLE_2" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
descriptionCvParamOrUserParam.add( PrideParamFactory.getUserParam( "SUBSAMPLE_1", "Sample" ) ); //$NON-NLS-1$ //$NON-NLS-2$
descriptionCvParamOrUserParam.add( PrideParamFactory.getUserParam( "SUBSAMPLE_2", "QconCAT" ) ); //$NON-NLS-1$ //$NON-NLS-2$
SourceFileType sourceFileType = mzData.getDescription().getAdmin().getSourceFile();
if( sourceFileType == null )
{
sourceFileType = new SourceFileType();
}
sourceFileType.setPathToFile( mzDataFile.getParentFile().toURI().toURL().toString() );
sourceFileType.setNameOfFile( mzDataFile.getName().replace( ".mzData", ".raw" ) ); //$NON-NLS-1$ //$NON-NLS-2$
final String sampleName = mzData.getDescription().getAdmin().getSampleName();
Integer replicateCountInteger = sampleNameToReplicateCount.get( sampleName );
int replicateCount = 1;
if( replicateCountInteger != null )
{