Mercurial > repos > galaxyp > fastg2protlib
annotate app_validate.py @ 0:6b226c5907a1 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 06:17:31 -0400 |
parents | |
children |
rev | line source |
---|---|
0
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
1 import argparse |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
2 |
6b226c5907a1
"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 |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
4 |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
5 |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
6 if __name__ == "__main__": |
6b226c5907a1
"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") |
6b226c5907a1
"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.") |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
9 parser.add_argument( |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
10 "-d", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
11 "--dbname", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
12 default="results.db", |
6b226c5907a1
"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", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
14 ) |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
15 parser.add_argument( |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
16 "-f", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
17 "--fdr", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
18 default=0.10, |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
19 type=float, |
6b226c5907a1
"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.", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
21 ) |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
22 parser.add_argument( |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
23 "-x", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
24 "--decoy_header", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
25 default="XXX_", |
6b226c5907a1
"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.", |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
27 ) |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
28 |
6b226c5907a1
"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() |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
30 fg.verified_proteins( |
6b226c5907a1
"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 |
6b226c5907a1
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fastg2protlib commit e777bdb1d28b1ffee75cb1a8ad782a50c10a5358"
galaxyp
parents:
diff
changeset
|
32 ) |