public class GeneSetTerms extends Object
GeneAnnotations
,
which represents the actual annotations (and Gene and Probes also keep track of their own)
,
which provides convenient methods to work with the sets themselves.
,
which helps deal with ones the user has stored separately from GO
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static String |
NO_ASPECT_AVAILABLE
Name for aspect when none is defined.
|
static String |
USER_DEFINED
Name for root of tree representing user-defined gene sets.
|
Constructor and Description |
---|
GeneSetTerms(Collection<GeneSetTerm> terms)
Create based only on 'user defined', without reading in GO.
|
GeneSetTerms(InputStream inputStream) |
GeneSetTerms(InputStream i,
boolean oldFormat) |
GeneSetTerms(String fileName,
boolean oldFormat) |
GeneSetTerms(String fileName,
Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected GeneSetTerm |
get(String geneSetId)
Note that it is probably preferable to use findTerm from GeneAnnotations; this is used while setting that up.
|
Set<GeneSetTerm> |
getAllChildren(GeneSetTerm term) |
Collection<GeneSetTerm> |
getAllParents(GeneSetTerm id) |
Set<GeneSetTerm> |
getChildren(GeneSetTerm id) |
Set<GeneSetTerm> |
getGeneSets() |
DirectedGraph<String,GeneSetTerm> |
getGraph() |
Collection<GeneSetTerm> |
getParents(GeneSetTerm id) |
Collection<GeneSetTerm> |
getTerms() |
DefaultTreeModel |
getTreeModel() |
boolean |
isLeaf(GeneSetTerm id) |
boolean |
isParent(GeneSetTerm p,
GeneSetTerm c) |
protected void |
removeUserDefined(GeneSetTerm id) |
public static final String NO_ASPECT_AVAILABLE
public static final String USER_DEFINED
protected static final org.apache.commons.logging.Log log
public GeneSetTerms(InputStream inputStream) throws IOException, SAXException
inputStream
- assumed to be in recent format.IOException
SAXException
public GeneSetTerms(String fileName, Settings settings) throws SAXException, IOException
fileNamefilename
- String
The XML file containing class to name mappings.SAXException
IOException
public GeneSetTerms(String fileName, boolean oldFormat) throws SAXException, IOException
filename
- String
The XML file containing class to name mappings.oldFormat
- set to true to indicate that the RDF is 'old style' (pre ~2008)IOException
SAXException
public GeneSetTerms(Collection<GeneSetTerm> terms)
terms
- public GeneSetTerms(InputStream i, boolean oldFormat) throws SAXException, IOException
SAXException
IOException
protected void removeUserDefined(GeneSetTerm id)
id
- protected GeneSetTerm get(String geneSetId)
geneSetId
- public boolean isLeaf(GeneSetTerm id)
id
- public Set<GeneSetTerm> getChildren(GeneSetTerm id)
id
- public Set<GeneSetTerm> getGeneSets()
public DirectedGraph<String,GeneSetTerm> getGraph()
public Collection<GeneSetTerm> getParents(GeneSetTerm id)
id
- GO idpublic Collection<GeneSetTerm> getAllParents(GeneSetTerm id)
id
- public Collection<GeneSetTerm> getTerms()
public DefaultTreeModel getTreeModel()
public Set<GeneSetTerm> getAllChildren(GeneSetTerm term)
term
- public boolean isParent(GeneSetTerm p, GeneSetTerm c)
p
- c
- Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.