annotate app_validate.py @ 0:25dd9931d6b1 draft default tip

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
author galaxyp
date Fri, 07 Aug 2020 10:16:55 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
1 import argparse
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
2
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
3 import fastg2protlib.fastg2protlib as fg
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
4
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
5
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
6 if __name__ == "__main__":
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
7 parser = argparse.ArgumentParser(description="Run peptides for fastg")
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
8 parser.add_argument("msgf", help="Path MSGF+ tabular results.")
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
9 parser.add_argument(
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
10 "-d",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
11 "--dbname",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
12 default="results.db",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
13 help="Name for the results database. Defaults to results.db",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
14 )
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
15 parser.add_argument(
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
16 "-f",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
17 "--fdr",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
18 default=0.10,
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
19 type=float,
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
20 help="FDR cutoff for accepting PSM validation.",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
21 )
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
22 parser.add_argument(
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
23 "-x",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
24 "--decoy_header",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
25 default="XXX_",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
26 help="String used for marking decoy proteins.",
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
27 )
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
28
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
29 args = parser.parse_args()
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
30 fg.verified_proteins(
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
31 args.msgf, fdr_level=0.10, decoy_header="XXX_", db_name=args.dbname
25dd9931d6b1 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff changeset
32 )