Mercurial > repos > immport-devteam > run_flock
annotate runFlockMFI.py @ 2:b6b4d08b6858 draft default tip
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
author | azomics |
---|---|
date | Fri, 17 Jul 2020 09:06:54 -0400 |
parents | |
children |
rev | line source |
---|---|
2
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
1 #!/usr/bin/env python |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
2 ###################################################################### |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
3 # Copyright (c) 2016 Northrop Grumman. |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
4 # All rights reserved. |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
5 ###################################################################### |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
6 # version 2 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
7 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
8 import sys |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
9 import os |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
10 from argparse import ArgumentParser |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
11 import pandas as pd |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
12 from scipy.stats import gmean |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
13 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
14 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
15 def run_FLOCK(input_file, method, bins, density, output_file, mfi_file, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
16 mfi_calc, profile): |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
17 run_command = method + " " + input_file |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
18 if bins: |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
19 run_command += " " + bins |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
20 if density: |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
21 run_command += " " + density |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
22 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
23 os.system(run_command) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
24 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
25 move_command = "mv flock_results.txt " + output_file |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
26 os.system(move_command) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
27 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
28 # Here add some way to calculate the count and tack it on to profile file. |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
29 flockdf = pd.read_table(output_file) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
30 if mfi_calc == "mfi": |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
31 MFIs = flockdf.groupby('Population').mean().round(decimals=2) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
32 elif mfi_calc == "gmfi": |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
33 MFIs = flockdf.groupby('Population').agg(lambda x: gmean(list(x))).round(decimals=2) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
34 else: |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
35 MFIs = flockdf.groupby('Population').median().round(decimals=2) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
36 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
37 with open(mfi_file, "w") as outf: |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
38 MFIs.to_csv(outf, sep="\t", float_format='%.0f') |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
39 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
40 (events, columns) = flockdf.shape |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
41 fstats = {} |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
42 fstats['population'] = flockdf.iloc[:, -1:].iloc[:, 0] |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
43 fstats['population_freq'] = fstats['population'].value_counts() |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
44 fstats['population_freq_sort'] = fstats['population_freq'].sort_index() |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
45 fstats['population_per'] = (fstats['population'].value_counts(normalize=True) * 100).round(decimals=2) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
46 fstats['population_per_sort'] = fstats['population_per'].sort_index() |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
47 fstats['population_all'] = pd.concat([fstats['population_freq_sort'], fstats['population_per_sort']], axis=1) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
48 fstats['population_all'].columns = ['Count', 'Percentage'] |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
49 fstats['population_all']['Population_ID'] = fstats['population_all'].index |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
50 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
51 flock_profile = pd.read_table('profile.txt') |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
52 profile_pop = flock_profile.merge(fstats['population_all'], on='Population_ID') |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
53 profile_pop.to_csv(profile, sep="\t", float_format='%.2f', index=False) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
54 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
55 # get_profile = "mv profile.txt " + profile |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
56 # os.system(get_profile) |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
57 return |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
58 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
59 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
60 if __name__ == "__main__": |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
61 parser = ArgumentParser( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
62 prog="runFlockMFI", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
63 description="Run Flock on text file and generate centroid file") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
64 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
65 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
66 '-i', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
67 dest="input_file", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
68 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
69 help="File location for the FCS file.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
70 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
71 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
72 '-m', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
73 dest="method", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
74 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
75 help="Run flock1 or flock2.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
76 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
77 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
78 '-M', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
79 dest="mfi_calc", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
80 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
81 help="what to calculate for centroids.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
82 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
83 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
84 '-b', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
85 dest="bins", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
86 required=False, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
87 help="Number of Bins.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
88 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
89 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
90 '-d', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
91 dest="density", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
92 required=False, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
93 help="Density.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
94 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
95 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
96 '-o', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
97 dest="output_file", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
98 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
99 help="File location for the output file.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
100 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
101 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
102 '-c', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
103 dest="centroids", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
104 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
105 help="File location for the output centroid file.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
106 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
107 parser.add_argument( |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
108 '-p', |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
109 dest="profile", |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
110 required=True, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
111 help="File location for the output profile file.") |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
112 |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
113 args = parser.parse_args() |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
114 run_FLOCK(args.input_file, args.method, args.bins, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
115 args.density, args.output_file, args.centroids, args.mfi_calc, |
b6b4d08b6858
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/run_flock commit 7e94637827c3637229f3b568fa7f9d38428d6607"
azomics
parents:
diff
changeset
|
116 args.profile) |