# HG changeset patch # User galaxyp # Date 1685608454 0 # Node ID 6d93529d19d40556ccca504e2137d084ccb9c52f planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/calisp commit 060699366b6dd19ad6c3ef3f332f63cc55d75dce diff -r 000000000000 -r 6d93529d19d4 calisp.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calisp.xml Thu Jun 01 08:34:14 2023 +0000 @@ -0,0 +1,193 @@ + + Estimate isotopic composition of peptides from proteomics mass spectrometry data + + 3.0.10 + 0 + https://raw.githubusercontent.com/kinestetika/Calisp/208d495674e2b52fe56cf23457c833d1c2527242 + + + + + + calisp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.1186/s40168-022-01454-1 + 10.1073/pnas.1722325115 + 10.1101/2021.03.29.437612 + 10.1093/bioinformatics/bty046 + + \ No newline at end of file diff -r 000000000000 -r 6d93529d19d4 feather2tsv.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/feather2tsv.py Thu Jun 01 08:34:14 2023 +0000 @@ -0,0 +1,35 @@ +#!/usr/bin/env python +""" +based on https://github.com/kinestetika/Calisp/blob/master/benchmarking/sip%20benchmarking.ipynb +""" + +import argparse +import os + +import pandas as pd + + +def load_calisp_data(filename): + + # (1) load data + if os.path.isdir(filename): + file_data = [] + for f in os.listdir(filename): + if not f.endswith(".feather"): + continue + f = os.path.join(filename, f) + file_data.append(pd.read_feather(f)) + base, _ = os.path.splitext(f) + file_data[-1].to_csv(f"{base}.tsv", sep="\t") + data = pd.concat(file_data) + else: + data = pd.read_feather(filename) + base, _ = os.path.splitext(filename) + data.to_csv(f"{base}.tsv", sep="\t") + + +parser = argparse.ArgumentParser(description='feather2tsv') +parser.add_argument('--calisp_output', required=True, help='feather file') +args = parser.parse_args() + +data = load_calisp_data(args.calisp_output)