Data Integrator (Python API)
|
Public Member Functions | |
def | __init__ (s) |
def | Read (s, ffn, ac) |
Reads in an GO annotation file and stores its (filtered) content into an annotation corpus. More... | |
def | SetFilter (s, which=GAF_FILTER_NONE) |
Set a filter group by its token. More... | |
def | SetFilterCodes (s, codes=GAF_FILTER_NONE) |
Set the list of accepted evidence codes. More... | |
def | plot (graph, ffn) |
Static Public Attributes | |
list | apo |
string | base = "/Users/chris/progs/dint/data/go/"; |
string | goaffn = base + "treetest.goa.tsv"; |
string | graphffn = base + "treetest.graphml"; |
g = ig.load(graphffn); | |
bp = CAnnotationCorpus("biological_process"); | |
r = CGAFReader(); | |
def cls.GAFReader.CGAFReader.__init__ | ( | s | ) |
def cls.GAFReader.CGAFReader.plot | ( | graph, | |
ffn | |||
) |
def cls.GAFReader.CGAFReader.Read | ( | s, | |
ffn, | |||
ac | |||
) |
Reads in an GO annotation file and stores its (filtered) content into an annotation corpus.
ffn | Full file name of the GOA file. @parma ac Instance of cls.AnnotationCorpus.AnnotationCorpus. |
True
, everything ok; False
, problem with the file, an error message has been issued. def cls.GAFReader.CGAFReader.SetFilter | ( | s, | |
which = GAF_FILTER_NONE |
|||
) |
Set a filter group by its token.
@param which Any of the @c GAF_* tokens defined at the beginning. If the parameter is left to @c None, filtering is skipped and all annotations are read.
def cls.GAFReader.CGAFReader.SetFilterCodes | ( | s, | |
codes = GAF_FILTER_NONE |
|||
) |
Set the list of accepted evidence codes.
@param codes (@c List, @c Tuple) Evidence code @c Strings that are accepted by the reader. Annotations with codes that are not in this list are rejected. If parameter is left to @c None, the filtering is stopped and everything is read. Evidence codes are not checked for compliance with GO definitions. @return @c True, all went ok. @c False, supply of improper codes. No filtering is done.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |