# expected data point 1 |--------------------------------| 154
#
l=df.iloc[-1,1]-df.iloc[0,1]+1# l is the length of chain from nt_resnum point of view.
ifl!=len(df['index_chain']):# if some residues are missing, len(df['index_chain']) < l
diff=set(range(l)).difference(df['nt_resnum']-resnum_start)# the rowIDs the missing nucleotides would have (rowID = index_chain - 1 = nt_resnum - resnum_start)
warn(f"Error while parsing DSSR's json output:\n{e}\n\tignoring {self.chain_label}\t\t\t\t",error=True)
self.delete_me=True
self.error_messages=f"Error while parsing DSSR's json output:\n{e}"
return
return1
# Now load data from the CSV file
self.seq="".join(sql_ask_database(conn,f"SELECT nt_code from nucleotide WHERE chain_id = '{self.db_chain_id}' ORDER BY index_chain ASC;"))
self.seq_to_align="".join(sql_ask_database(conn,f"SELECT nt_align_code from nucleotide WHERE chain_id = '{self.db_chain_id}' ORDER BY index_chain ASC;"))
self.seq="".join([x[0]forxinsql_ask_database(conn,f"SELECT nt_code from nucleotide WHERE chain_id = {self.db_chain_id} ORDER BY index_chain ASC;")])
self.seq_to_align="".join([x[0]forxinsql_ask_database(conn,f"SELECT nt_align_code from nucleotide WHERE chain_id = {self.db_chain_id} ORDER BY index_chain ASC;")])