families=[f.split('.')[1]forfinfiles]# The RFAM families this chain has been mapped onto
# Delete the chain from the database, and the associated nucleotides and re_mappings, using foreign keys
forfaminfamilies:
command=["sqlite3","results/RNANet.db",f"PRAGMA foreign_keys=ON; delete from chain where structure_id=\"{structure}\" and chain_name=\"{chain}\" and rfam_acc=\"{fam}\";"]
ifhomology:
families=[f.split('.')[1]forfinfiles]# The RFAM families this chain has been mapped onto
# Delete the chain from the database, and the associated nucleotides and re_mappings, using foreign keys
forfaminfamilies:
command=["sqlite3","results/RNANet.db",f"PRAGMA foreign_keys=ON; delete from chain where structure_id=\"{structure}\" and chain_name=\"{chain}\" and rfam_acc=\"{fam}\";"]
# Delete the chain from the database, and the associated nucleotides and re_mappings, using foreign keys
command=["sqlite3","results/RNANet.db",f"PRAGMA foreign_keys=ON; delete from chain where structure_id=\"{structure}\" and chain_name=\"{chain}\" and rfam_acc is null;"]