I've got little problem here which is I want to remove the edge between 2 sample of nucleic acid "CYS 6 N", "ASP 40 OD2" by using the motif argument.
from grandiso import find_motifs
import networkx as nx
host = nx.read_adjlist('number_2 copy_1.csv', delimiter = ",")
motif = nx.Graph()
motif.add_edge("CYS 6 N", "ASP 40 OD2")
list(find_motifs(motif, host))
The output of my command is:
'CYS 6 N': 'ARG 2 NE', 'ASP 40 OD2': 'HOH 1083 O'
How am I suppose to get rid the 'ARG 2 NE' and 'HOH 1083 O' and just show only
"CYS 6 N", "ASP 40 OD2"
as my output?