MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / writeTo

Method writeTo

src/openms/source/FORMAT/HANDLERS/MzQuantMLHandler.cpp:690–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688 }
689
690 void MzQuantMLHandler::writeTo(std::ostream& os)
691 {
692 //~ TODO logger_.startProgress(0,exp.size(),"storing mzQuantML file");
693 String line; //everyone walk the line!!!
694
695 //---header---
696 os << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
697 os << R"(<MzQuantML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://psidev.info/psi/pi/mzQuantML/1.0.0-rc3 ../../schema/mzQuantML_1_0_0-rc3.xsd" xmlns="http://psidev.info/psi/pi/mzQuantML/1.0.0-rc3" id="OpenMS_)" << String(UniqueIdGenerator::getUniqueId()) << R"(" version="1.0.0")" << " creationDate=\"" << DateTime::now().get() << "\">\n";
698
699 //---CVList---
700 os << "<CvList>\n";
701 os << " \t<Cv id=\"PSI-MS\" fullName=\"Proteomics Standards Initiative Mass Spectrometry Vocabularies\" uri=\"http://psidev.cvs.sourceforge.net/viewvc/*checkout*/psidev/psi/psi-ms/mzML/controlledVocabulary/psi-ms.obo\" version=\"3.41.0\"/>\n";
702 os << "\t<Cv id=\"PSI-MOD\" fullName=\"Proteomics Standards Initiative Protein Modifications Vocabularies\" uri=\"http://psidev.cvs.sourceforge.net/psidev/psi/mod/data/PSI-MOD.obo\" version=\"1.2\"/>\n";
703 os << "\t<Cv id=\"UO\" fullName=\"Unit Ontology\" uri=\"http://obo.cvs.sourceforge.net/*checkout*/obo/obo/ontology/phenotype/unit.obo\"/>\n";
704 os << "</CvList>\n";
705
706 //---AnalysisSummary---
707 os << "\t<AnalysisSummary>\n";
708 // cmsq_->getAnalysisSummary().quant_type_;
709 //~ os << "\t\t<userParam name=\"QuantType\" value=\"";
710 //~ os << String(MSQuantifications::NamesOfQuantTypes[cmsq_->getAnalysisSummary().quant_type_]);
711 switch (cmsq_->getAnalysisSummary().quant_type_)
712 {
713 case 0:
714 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002018\" name=\"MS1 label-based analysis\"/>\n";
715 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1001837\" name=\"SILAC quantitation analysis\"/>\n";
716 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002001\" name=\"MS1 label-based raw feature quantitation\" value=\"true\"/>\n";
717 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002002\" name=\"MS1 label-based peptide level quantitation\" value=\"true\"/>\n";
718 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002003\" name=\"MS1 label-based protein level quantitation\" value=\"false\"/>\n";
719 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002004\" name=\"MS1 label-based proteingroup level quantitation\" value=\"false\"/>\n";
720 break;
721
722 case 1:
723 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002023\" name=\"MS2 tag-based analysis\"/>\n";
724 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002024\" name=\"MS2 tag-based analysis feature level quantitation\" value=\"true\"/>\n";
725 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002025\" name=\"MS2 tag-based peptide level quantitation\" value=\"true\"/>\n";
726 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002026\" name=\"MS2 tag-based analysis protein level quantitation\" value=\"false\"/>\n";
727 os << "\t\t<cvParam cvRef=\"PSI-MS\" accession=\"MS:1002027\" name=\"MS2 tag-based analysis protein group level quantitation\" value=\"false\"/>\n";
728 break;
729
730 case 2:
731 os << "\t\t<cvParam accession=\"MS:1001834\" cvRef=\"PSI-MS\" name=\"LC-MS label-free quantitation analysis\"/>\n";
732 os << "\t\t<cvParam accession=\"MS:1002019\" cvRef=\"PSI-MS\" value=\"false\" name=\"label-free raw feature quantitation\"/>\n";
733 os << "\t\t<cvParam accession=\"MS:1002020\" cvRef=\"PSI-MS\" value=\"true\" name=\"label-free peptide level quantitation\"/>\n";
734 //~ TODO
735 //~ os << "\t\t<cvParam accession=\"MS:1002021\" cvRef=\"PSI-MS\" value=\"true\" name=\"label-free protein level quantitation\"/>\n";
736 //~ os << "\t\t<cvParam accession=\"MS:1002022\" cvRef=\"PSI-MS\" value=\"false\" name=\"label-free proteingroup level quantitation\"/>\n";
737 break;
738
739 case 3:
740 break; //why SIZE_OF_QUANT_TYPES anyway?
741 }
742 //~ writeUserParam_(dataprocessinglist_tag, cmsq_->getAnalysisSummary().getUserParams(), UInt(2));
743 //~ writeCVParams_(dataprocessinglist_tag, (cmsq_->getAnalysisSummary().getCVTerms(), UInt(2));
744 os << "\n\t</AnalysisSummary>\n";
745 //---AnalysisSummary---
746
747 //---Software & DataProcessing---

Callers

nothing calls this directly

Calls 15

getUniqueIdFunction · 0.85
concatenateFunction · 0.85
getDataProcessingListMethod · 0.80
frontMethod · 0.80
getMetaValueMethod · 0.80
getRatiosMethod · 0.80
getFeaturesMethod · 0.80
backMethod · 0.80
getUniqueIdMethod · 0.80
toUnmodifiedStringMethod · 0.80
getSequenceMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected