Mercurial > repos > public-health-bioinformatics > fastp_json_to_tabular
annotate fastp_json_to_tabular.py @ 2:2c2d59b3d64d draft
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit 225d05a1238c15522c9bc3b47fcc6c0bbe2e7b50-dirty"
author | public-health-bioinformatics |
---|---|
date | Thu, 10 Mar 2022 00:13:02 +0000 |
parents | dc655c5e77d6 |
children | e342bf27e717 |
rev | line source |
---|---|
0
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
1 #!/usr/bin/env python |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
2 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
3 import argparse |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
4 import json |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
5 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
6 def main(args): |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
7 with open(args.fastp_json, 'r') as f: |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
8 fastp_report = json.load(f) |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
9 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
10 total_reads_before_filtering = fastp_report['summary']['before_filtering']['total_reads'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
11 total_reads_after_filtering = fastp_report['summary']['after_filtering']['total_reads'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
12 total_bases_before_filtering = fastp_report['summary']['before_filtering']['total_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
13 total_bases_after_filtering = fastp_report['summary']['after_filtering']['total_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
14 read1_mean_length_before_filtering = fastp_report['summary']['before_filtering']['read1_mean_length'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
15 read2_mean_length_before_filtering = fastp_report['summary']['before_filtering']['read2_mean_length'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
16 read1_mean_length_after_filtering = fastp_report['summary']['after_filtering']['read1_mean_length'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
17 read2_mean_length_after_filtering = fastp_report['summary']['after_filtering']['read2_mean_length'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
18 q20_bases_before_filtering = fastp_report['summary']['before_filtering']['q20_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
19 q20_bases_after_filtering = fastp_report['summary']['after_filtering']['q20_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
20 q20_rate_before_filtering = fastp_report['summary']['before_filtering']['q20_rate'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
21 q20_rate_after_filtering = fastp_report['summary']['after_filtering']['q20_rate'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
22 q30_bases_before_filtering = fastp_report['summary']['before_filtering']['q30_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
23 q30_bases_after_filtering = fastp_report['summary']['after_filtering']['q30_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
24 q30_rate_before_filtering = fastp_report['summary']['before_filtering']['q30_rate'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
25 q30_rate_after_filtering = fastp_report['summary']['after_filtering']['q30_rate'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
26 gc_content_before_filtering = fastp_report['summary']['before_filtering']['gc_content'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
27 gc_content_after_filtering = fastp_report['summary']['after_filtering']['gc_content'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
28 adapter_trimmed_reads = fastp_report['adapter_cutting']['adapter_trimmed_reads'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
29 adapter_trimmed_bases = fastp_report['adapter_cutting']['adapter_trimmed_bases'] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
30 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
31 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
32 output_fields = [ |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
33 'total_reads_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
34 'total_reads_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
35 'total_bases_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
36 'total_bases_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
37 'read1_mean_length_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
38 'read1_mean_length_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
39 'read2_mean_length_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
40 'read2_mean_length_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
41 'q20_bases_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
42 'q20_bases_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
43 'q20_rate_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
44 'q20_rate_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
45 'q30_bases_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
46 'q30_bases_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
47 'q30_rate_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
48 'q30_rate_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
49 'gc_content_before_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
50 'gc_content_after_filtering', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
51 'adapter_trimmed_reads', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
52 'adapter_trimmed_bases', |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
53 ] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
54 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
55 output_data = [] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
56 if args.sample_id: |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
57 output_fields = ['sample_id'] + output_fields |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
58 output_data = [args.sample_id] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
59 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
60 print(args.delimiter.join(output_fields)) |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
61 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
62 output_data = output_data + [ |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
63 total_reads_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
64 total_reads_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
65 total_bases_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
66 total_bases_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
67 read1_mean_length_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
68 read1_mean_length_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
69 read2_mean_length_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
70 read2_mean_length_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
71 q20_bases_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
72 q20_bases_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
73 q20_rate_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
74 q20_rate_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
75 q30_bases_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
76 q30_bases_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
77 q30_rate_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
78 q30_rate_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
79 gc_content_before_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
80 gc_content_after_filtering, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
81 adapter_trimmed_reads, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
82 adapter_trimmed_bases, |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
83 ] |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
84 print(args.delimiter.join(map(str, output_data))) |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
85 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
86 |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
87 if __name__ == "__main__": |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
88 parser = argparse.ArgumentParser() |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
89 parser.add_argument('fastp_json') |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
90 parser.add_argument('-s', '--sample-id') |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
91 parser.add_argument('-d', '--delimiter', default='\t') |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
92 args = parser.parse_args() |
dc655c5e77d6
"planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/tree/master/tools/fastp_json_to_tabular commit c6ac9f7bd10c58d2b4168cab62b812d4d76283fe"
public-health-bioinformatics
parents:
diff
changeset
|
93 main(args) |