@staticmethod
def convert_to_n15hsqc_peaks(csdata):
    """
        Converts the output from get_entry into hsqc peak positions
        :param csdata: output from get_entry
        :return: easy to plot hsqc peak positions
        """
    sidechainres = ['ARG', 'GLN', 'ASN', 'HIS', 'TRP', 'LYS']
    sidechains = {'ARG-HH11': ['HH11NH1'], 'ARG-HH12': ['HH12', 'NH1'],
        'ARG-HH21': ['HH21', 'NH2'], 'ARG-HH22': ['HH22', 'NH2'], 'ARG-HE':
        ['HE', 'NE'], 'GLN-HE21': ['HE21', 'NE2'], 'GLN-HE22': ['HE22',
        'NE2'], 'ASN-HD21': ['HD21', 'ND2'], 'ASN-HD22': ['HD22', 'ND2'],
        'HIS-HD1': ['HD1ND1'], 'HIS-HE2': ['HE2', 'NE2'], 'TRP-HE1': ['HE1',
        'NE1'], 'LYS-HZ': ['HZ', 'NZ'], 'LYS-HZ1': ['HZ1', 'NZ'], 'LYS-HZ2':
        ['HZ2', 'NZ'], 'LYS-HZ3': ['HZ3', 'NZ']}
    outdata = [[], [], [], [], []]
    for i in range(len(csdata[0])):
        atomid = '{}-{}-{}-{}-{}'.format(csdata[0][i], csdata[1][i], csdata
            [2][i], csdata[5][i], csdata[7][i])
        if csdata[3][i] == 'H':
            if atomid not in outdata[0]:
                outdata[0].append(atomid)
                outdata[1].append(csdata[6][i])
                outdata[2].append(None)
                outdata[3].append(csdata[3][i])
                outdata[4].append(None)
            else:
                outdata[1][outdata[0].index(atomid)] = csdata[6][i]
                outdata[3][outdata[0].index(atomid)] = csdata[3][i]
        if csdata[3][i] == 'N':
            if atomid not in outdata[0]:
                outdata[0].append(atomid)
                outdata[2].append(csdata[6][i])
                outdata[1].append(None)
                outdata[4].append(csdata[3][i])
                outdata[3].append(None)
            else:
                outdata[2][outdata[0].index(atomid)] = csdata[6][i]
                outdata[4][outdata[0].index(atomid)] = csdata[3][i]
        if csdata[2][i] in sidechainres:
            for k in sidechains.keys():
                if k.split('-')[0] == csdata[2][i]:
                    atomid = '{}-{}-{}-{}-{}'.format(csdata[0][i], csdata[1
                        ][i], k, csdata[5][i], csdata[7][i])
                    if csdata[3][i] in sidechains[k] and csdata[4][i] == 'H':
                        if atomid not in outdata[0]:
                            outdata[0].append(atomid)
                            outdata[1].append(csdata[6][i])
                            outdata[2].append(None)
                            outdata[3].append(csdata[3][i])
                            outdata[4].append(None)
                        else:
                            outdata[1][outdata[0].index(atomid)] = csdata[6][i]
                            outdata[3][outdata[0].index(atomid)] = csdata[3][i]
                    if csdata[3][i] in sidechains[k] and csdata[4][i] == 'N':
                        if atomid not in outdata[0]:
                            outdata[0].append(atomid)
                            outdata[2].append(csdata[6][i])
                            outdata[1].append(None)
                            outdata[4].append(csdata[3][i])
                            outdata[3].append(None)
                        else:
                            outdata[2][outdata[0].index(atomid)] = csdata[6][i]
                            outdata[4][outdata[0].index(atomid)] = csdata[3][i]
    return outdata
