You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to match the pdb_chain_id to RNA family labels. Is there a dictionary/json with the mapping?
I wasn't able to find it browsing through the repo.
Thank you in advance
Olivia
The text was updated successfully, but these errors were encountered:
If you really wanted this information in a Python dictionary, it is very easy to do this with the Tabular API. You could do something like:
fromrna3db.tabularimportread_tbls_from_dirfromcollectionsimportdefaultdicttbl=read_tbls_from_dir('data/') #NOTE: this is the *directory* containing the .tbl file(s)family_dict=defaultdict(list)
forhitintbl:
family_dict[hit.query_name].append(hit._asdict())
This will create a dictionary that maps the name of the chains to a list of the hits for that chain. Each hit is a dictionary that contains the usual keys (target_name, target_accession, etc.).
Hello,
I am trying to match the pdb_chain_id to RNA family labels. Is there a dictionary/json with the mapping?
I wasn't able to find it browsing through the repo.
Thank you in advance
Olivia
The text was updated successfully, but these errors were encountered: