Package com.compomics.util.pride
Class PrideWebService
java.lang.Object
com.compomics.util.pride.PrideWebService
A java representation of the PRIDE web service.
- Author:
- Kenneth Verheggen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetAssayCount(String projectAccession) Returns the assay count for a given project.static uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailgetAssayDetail(String assayAccession) Returns the assay details for a given assay.static uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailListgetAssayDetails(String projectAccession) Returns the assay details for a given project.static intgetAssayFileCount(String assayAccession) Returns a count of file details for a given assay.static uk.ac.ebi.pride.archive.web.service.model.file.FileDetailListgetAssayFileDetails(String assayAccession) Returns a list of file details for a given assay.static intgetProjectCount(String query, PrideFilter... filters) Returns a project count for the given criteria and filters.static uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetailgetProjectDetail(String projectAccession) Returns the project details for a given accession.static intgetProjectFileCount(String projectAccession) Returns a count of file details for a given project.static uk.ac.ebi.pride.archive.web.service.model.file.FileDetailListgetProjectFileDetails(String projectAccession) Returns a list of file details for a given project.static uk.ac.ebi.pride.archive.web.service.model.project.ProjectSummaryListgetProjectSummaryList(String query, PrideFilter... filters) Returns a ProjectSummaryList for the given query and filters.static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailListgetProteinIdentificationByAssay(String assayAccession) Returns a list of protein details for a given assay.static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailListgetProteinIdentificationByProject(String projectAccession) Returns a list of protein details for a given project.static intgetProteinIdentificationCountByAssay(String assayAccession) Returns a count of protein details for a given assay.static intgetProteinIdentificationCountByProject(String projectAccession) Returns a count of protein details for a given project.static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailListgetProteinIdentificationsByProjectAndProtein(String projectAccession, String proteinAccesion) Returns a list of protein details for a given project and a given protein accession.static intgetProteinIdentificationsCountByProjectAndProtein(String projectAccession, String proteinAccession) Returns a count of protein details for a given project and a given protein accession.static intgetPSMCountByAssay(String assayAccession) Returns a count of PSM details for a given assay.static intgetPSMCountByAssayAndSequence(String assayAccession, String sequence) Returns a count of PSM details for a given assay and a given peptide sequence.static intgetPSMCountByProject(String projectAccession) Returns a count of PSM details for a given project.static intgetPSMCountByProjectAndSequence(String projectAccession, String sequence) Returns a count of PSM details for a given project and a given peptide sequence.static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailListgetPSMsByAssay(String assayAccession) Returns a list of PSM details for a given assay.static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailListgetPSMsByAssayAndSequence(String assayAccession, String sequence) Returns a list of PSM details for a given assay and a given peptide sequence.static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailListgetPSMsByProject(String projectAccession) Returns a list of PSM details for a given project.static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailListgetPSMsByProjectAndSequence(String projectAccession, String sequence) Returns a list of PSM details for a given project and a given peptide sequence.
-
Constructor Details
-
PrideWebService
public PrideWebService()Empty default constructor
-
-
Method Details
-
getProjectSummaryList
public static uk.ac.ebi.pride.archive.web.service.model.project.ProjectSummaryList getProjectSummaryList(String query, PrideFilter... filters) throws IOException Returns a ProjectSummaryList for the given query and filters.- Parameters:
query- the criteria for a searchfilters- the filters for a search- Returns:
- a ProjectSummaryList for the given query and filters
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProjectCount
Returns a project count for the given criteria and filters.- Parameters:
query- the criteria for the searchfilters- the filters for the search- Returns:
- a project count for the given criteria and filters
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProjectDetail
public static uk.ac.ebi.pride.archive.web.service.model.project.ProjectDetail getProjectDetail(String projectAccession) throws IOException Returns the project details for a given accession.- Parameters:
projectAccession- the project accession- Returns:
- the project details for a given accession
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getAssayDetails
public static uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetailList getAssayDetails(String projectAccession) throws IOException Returns the assay details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- the assay details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getAssayCount
Returns the assay count for a given project.- Parameters:
projectAccession- the project accession- Returns:
- the assay count for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getAssayDetail
public static uk.ac.ebi.pride.archive.web.service.model.assay.AssayDetail getAssayDetail(String assayAccession) throws IOException Returns the assay details for a given assay.- Parameters:
assayAccession- the project assayAccession- Returns:
- the assay details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProjectFileDetails
public static uk.ac.ebi.pride.archive.web.service.model.file.FileDetailList getProjectFileDetails(String projectAccession) throws IOException Returns a list of file details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a list of file details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProjectFileCount
Returns a count of file details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a count of file details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getAssayFileDetails
public static uk.ac.ebi.pride.archive.web.service.model.file.FileDetailList getAssayFileDetails(String assayAccession) throws IOException Returns a list of file details for a given assay.- Parameters:
assayAccession- the assay accession- Returns:
- a list of file details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getAssayFileCount
Returns a count of file details for a given assay.- Parameters:
assayAccession- the assay accession- Returns:
- a count of file details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationByProject
public static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailList getProteinIdentificationByProject(String projectAccession) throws IOException Returns a list of protein details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a list of protein details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationCountByProject
public static int getProteinIdentificationCountByProject(String projectAccession) throws IOException Returns a count of protein details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a count of protein details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationsByProjectAndProtein
public static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailList getProteinIdentificationsByProjectAndProtein(String projectAccession, String proteinAccesion) throws IOException Returns a list of protein details for a given project and a given protein accession.- Parameters:
projectAccession- the project accessionproteinAccesion- the protein accession- Returns:
- a list of protein details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationsCountByProjectAndProtein
public static int getProteinIdentificationsCountByProjectAndProtein(String projectAccession, String proteinAccession) throws IOException Returns a count of protein details for a given project and a given protein accession.- Parameters:
projectAccession- the project accessionproteinAccession- the protein accession- Returns:
- a count of protein details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationByAssay
public static uk.ac.ebi.pride.archive.web.service.model.protein.ProteinDetailList getProteinIdentificationByAssay(String assayAccession) throws IOException Returns a list of protein details for a given assay.- Parameters:
assayAccession- the assay accession- Returns:
- a list of protein details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getProteinIdentificationCountByAssay
Returns a count of protein details for a given assay.- Parameters:
assayAccession- the assay accession- Returns:
- a count of protein details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMsByProject
public static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList getPSMsByProject(String projectAccession) throws IOException Returns a list of PSM details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a list of protein details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMCountByProject
Returns a count of PSM details for a given project.- Parameters:
projectAccession- the project accession- Returns:
- a count of PSM details for a given project
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMsByProjectAndSequence
public static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList getPSMsByProjectAndSequence(String projectAccession, String sequence) throws IOException Returns a list of PSM details for a given project and a given peptide sequence.- Parameters:
projectAccession- the project accessionsequence- the peptide sequence- Returns:
- a list of PSM details for a given project and a given peptide sequence
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMCountByProjectAndSequence
public static int getPSMCountByProjectAndSequence(String projectAccession, String sequence) throws IOException Returns a count of PSM details for a given project and a given peptide sequence.- Parameters:
projectAccession- the project accessionsequence- the peptide sequence- Returns:
- a count of PSM details for a given project and a given peptide sequence
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMsByAssay
public static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList getPSMsByAssay(String assayAccession) throws IOException Returns a list of PSM details for a given assay.- Parameters:
assayAccession- the project accession- Returns:
- a list of PSM details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMCountByAssay
Returns a count of PSM details for a given assay.- Parameters:
assayAccession- the project accession- Returns:
- a count of PSM details for a given assay
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMsByAssayAndSequence
public static uk.ac.ebi.pride.archive.web.service.model.peptide.PsmDetailList getPSMsByAssayAndSequence(String assayAccession, String sequence) throws IOException Returns a list of PSM details for a given assay and a given peptide sequence.- Parameters:
assayAccession- the project accessionsequence- the peptide sequence- Returns:
- a list of PSM details for a given assay and a given peptide sequence
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-
getPSMCountByAssayAndSequence
public static int getPSMCountByAssayAndSequence(String assayAccession, String sequence) throws IOException Returns a count of PSM details for a given assay and a given peptide sequence.- Parameters:
assayAccession- the project accessionsequence- the peptide sequence- Returns:
- a count of PSM details for a given assay and a given peptide sequence
- Throws:
IOException- thrown if the webservice is down or the json response was invalid
-