コード例 #1
0
def Generate_Ontology_File(Term):
    ndex_server = 'http://public.ndexbio.org'
    go_human = Ontology.from_ndex(
        'http://public.ndexbio.org/v2/network/16565851-4bfc-11e9-9f06-0ac135e8bacf'
    )
    ont = go_human.focus(Term)
    ont.to_table('custom_ontology.txt')
    return ont
コード例 #2
0
def GO_Focus(Term):
    ndex_server = 'http://public.ndexbio.org'
    ndex_user, ndex_pass = '******', 'Synapse'
    go_human = Ontology.from_ndex(
        'http://public.ndexbio.org/v2/network/16565851-4bfc-11e9-9f06-0ac135e8bacf'
    )
    go_genes = go_human.genes
    subont = go_human.focus(Term)
    subont_genes = subont.genes
    return go_genes, subont_genes
コード例 #3
0
def find_GO_score_matrix():
	ndex_server ='http://public.ndexbio.org' 
	ndex_user, ndex_pass = '******', 'Synapse'
	go_human = Ontology.from_ndex('http://public.ndexbio.org/v2/network/16565851-4bfc-11e9-9f06-0ac135e8bacf')

	print (go_human)
	sim, genes=go_human.flatten()

	sim_df = pd.DataFrame(sim, index=genes, columns=genes)
	return sim_df