def get_sptxt_string(self):
        output_lines = []
        annotations_line = "Name: " + ming_sptxt_library.transform_peptide_to_msp_library_string(self.peptide) + "/" + str(self.charge)
        output_lines.append(annotations_line)

        mod_string = ming_sptxt_library.transform_peptide_to_msp_mods(self.peptide)
        comment_line = "Comment: " + "Parent=" + str(self.mz) + " " + "Mods=" + mod_string
        output_lines.append(comment_line)

        output_lines.append("Num peaks: " + str(len(self.peaks)))
        output_lines.append(self.get_sptxt_peaks())


        return "\n".join(output_lines) + "\n"
    def get_sptxt_string(self):
        output_lines = []
        annotations_line = "Name: " + ming_sptxt_library.transform_peptide_to_msp_library_string(self.peptide) + "/" + str(self.charge)
        output_lines.append(annotations_line)

        mod_string = ming_sptxt_library.transform_peptide_to_msp_mods(self.peptide)
        comment_line = "Comment: " + "Parent=" + str(self.mz) + " " + "Mods=" + mod_string
        output_lines.append(comment_line)

        output_lines.append("Num peaks: " + str(len(self.peaks)))
        output_lines.append(self.get_sptxt_peaks())


        return "\n".join(output_lines) + "\n"