|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biopax.paxtools.io.gsea.GSEAConverter
public class GSEAConverter
Converts a BioPAX model to GSEA (GMT format).
Creates GSEA entries from the protein references's xrefs contained in the BioPAX model. One entry (id-list) per pathway per organism. If there are no pathways, then simply - per organism (i.e., all available protein types are considered). - One identifier per protein reference (not guaranteed to be the primary one). All identifiers can only be of the same type, e.g., UniProt, and the converter does not do any id-mapping; so a protein without the required identifier type will not be listed. Note, to effectively enforce cross-species violation, bio-sources must be annotated (have a unification xref) with "taxonomy" database name and id, and pathways's, protein references's "organism" property - not empty. Note, this code assumes that the model has successfully been validated and normalized (e.g., using the BioPAX Validator for Level3 data). L1 and L2 models are first converted to L3 (this however does not fix BioPAX errors, if any present, but possibly adds new)
| Constructor Summary | |
|---|---|
GSEAConverter()
Constructor. |
|
GSEAConverter(String database,
boolean crossSpeciesCheckEnabled)
Constructor. |
|
| Method Summary | |
|---|---|
Collection<org.biopax.paxtools.io.gsea.GSEAEntry> |
convert(Model model)
Creates GSEA entries from the pathways contained in the model. |
void |
writeToGSEA(Model model,
OutputStream out)
Converts model to GSEA and writes to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSEAConverter()
public GSEAConverter(String database,
boolean crossSpeciesCheckEnabled)
database - String: the database/xref to use for grabbing participantscrossSpeciesCheckEnabled - - if true, enforces no cross species participants in output| Method Detail |
|---|
public void writeToGSEA(Model model,
OutputStream out)
throws IOException
model - Model
IOExceptionpublic Collection<org.biopax.paxtools.io.gsea.GSEAEntry> convert(Model model)
model - Model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||