|
1 |
| -# Usage reference |
| 1 | +# <img src="./img/geofetch_logo.svg" class="img-header"> usage reference |
| 2 | + |
| 3 | +`geofetch` command-line usage instructions: |
2 | 4 |
|
3 |
| -geofetch command-line usage instructions: |
4 | 5 |
|
5 |
| -`geofetch -V` |
6 |
| -```console |
7 |
| -geofetch 0.11.0 |
8 |
| -``` |
9 | 6 |
|
10 | 7 | `geofetch --help`
|
11 |
| -```console |
12 |
| -usage: geofetch [-h] [-V] -i INPUT [-n NAME] [-m METADATA_ROOT] [-u METADATA_FOLDER] |
13 |
| - [--just-metadata] [-r] [--config-template CONFIG_TEMPLATE] |
14 |
| - [--pipeline-samples PIPELINE_SAMPLES] [--pipeline-project PIPELINE_PROJECT] |
15 |
| - [--disable-progressbar] [-k SKIP] [--acc-anno] [--discard-soft] |
16 |
| - [--const-limit-project CONST_LIMIT_PROJECT] |
17 |
| - [--const-limit-discard CONST_LIMIT_DISCARD] |
18 |
| - [--attr-limit-truncate ATTR_LIMIT_TRUNCATE] [--add-dotfile] [-p] |
19 |
| - [--data-source {all,samples,series}] [--filter FILTER] |
20 |
| - [--filter-size FILTER_SIZE] [-g GEO_FOLDER] [-x] [-b BAM_FOLDER] |
21 |
| - [-f FQ_FOLDER] [--use-key-subset] [--silent] [--verbosity V] [--logdev] |
| 8 | +```{console} |
| 9 | +usage: geofetch [<args>] |
| 10 | +
|
| 11 | +The example how to use geofetch (to download GSE573030 just metadata): |
| 12 | + geofetch -i GSE67303 -m <folder> --just-metadata |
| 13 | +
|
| 14 | +To download all processed data of GSE57303: |
| 15 | + geofetch -i GSE67303 --processed --geo-folder <folder> -m <folder> |
22 | 16 |
|
23 | 17 | Automatic GEO and SRA data downloader
|
24 | 18 |
|
25 |
| -optional arguments: |
| 19 | +options: |
26 | 20 | -h, --help show this help message and exit
|
27 | 21 | -V, --version show program's version number and exit
|
28 | 22 | -i INPUT, --input INPUT
|
29 |
| - required: a GEO (GSE) accession, or a file with a list of GSE |
30 |
| - numbers |
| 23 | + required: a GEO (GSE) accession, or a file with a list |
| 24 | + of GSE numbers |
31 | 25 | -n NAME, --name NAME Specify a project name. Defaults to GSE number
|
32 | 26 | -m METADATA_ROOT, --metadata-root METADATA_ROOT
|
33 |
| - Specify a parent folder location to store metadata. The project name |
34 |
| - will be added as a subfolder [Default: $SRAMETA:] |
| 27 | + Specify a parent folder location to store metadata. |
| 28 | + The project name will be added as a subfolder |
| 29 | + [Default: $SRAMETA:] |
35 | 30 | -u METADATA_FOLDER, --metadata-folder METADATA_FOLDER
|
36 |
| - Specify an absolute folder location to store metadata. No subfolder |
37 |
| - will be added. Overrides value of --metadata-root [Default: Not used |
38 |
| - (--metadata-root is used by default)] |
39 |
| - --just-metadata If set, don't actually run downloads, just create metadata |
| 31 | + Specify an absolute folder location to store metadata. |
| 32 | + No subfolder will be added. Overrides value of |
| 33 | + --metadata-root. |
| 34 | + --just-metadata If set, don't actually run downloads, just create |
| 35 | + metadata |
40 | 36 | -r, --refresh-metadata
|
41 | 37 | If set, re-download metadata even if it exists.
|
42 | 38 | --config-template CONFIG_TEMPLATE
|
43 | 39 | Project config yaml file template.
|
44 | 40 | --pipeline-samples PIPELINE_SAMPLES
|
45 |
| - Optional: Specify one or more filepaths to SAMPLES pipeline |
46 |
| - interface yaml files. These will be added to the project config file |
47 |
| - to make it immediately compatible with looper. [Default: null] |
| 41 | + Optional: Specify one or more filepaths to SAMPLES |
| 42 | + pipeline interface yaml files. These will be added to |
| 43 | + the project config file to make it immediately |
| 44 | + compatible with looper. [Default: null] |
48 | 45 | --pipeline-project PIPELINE_PROJECT
|
49 |
| - Optional: Specify one or more filepaths to PROJECT pipeline |
50 |
| - interface yaml files. These will be added to the project config file |
51 |
| - to make it immediately compatible with looper. [Default: null] |
| 46 | + Optional: Specify one or more filepaths to PROJECT |
| 47 | + pipeline interface yaml files. These will be added to |
| 48 | + the project config file to make it immediately |
| 49 | + compatible with looper. [Default: null] |
52 | 50 | --disable-progressbar
|
53 | 51 | Optional: Disable progressbar
|
54 | 52 | -k SKIP, --skip SKIP Skip some accessions. [Default: no skip].
|
55 |
| - --acc-anno Optional: Produce annotation sheets for each accession. Project |
56 |
| - combined PEP for the whole project won't be produced. |
57 |
| - --discard-soft Optional: After creation of PEP files, all soft and additional files |
| 53 | + --acc-anno Optional: Produce annotation sheets for each |
| 54 | + accession. Project combined PEP for the whole project |
| 55 | + won't be produced. |
| 56 | + --discard-soft Optional: After creation of PEP files, all .soft files |
58 | 57 | will be deleted
|
59 | 58 | --const-limit-project CONST_LIMIT_PROJECT
|
60 |
| - Optional: Limit of the number of the constant sample characters that |
61 |
| - should not be in project yaml. [Default: 50] |
| 59 | + Optional: Limit of the number of the constant sample |
| 60 | + characters that should not be in project yaml. |
| 61 | + [Default: 50] |
62 | 62 | --const-limit-discard CONST_LIMIT_DISCARD
|
63 |
| - Optional: Limit of the number of the constant sample characters that |
64 |
| - should not be discarded [Default: 250] |
| 63 | + Optional: Limit of the number of the constant sample |
| 64 | + characters that should not be discarded [Default: 250] |
65 | 65 | --attr-limit-truncate ATTR_LIMIT_TRUNCATE
|
66 |
| - Optional: Limit of the number of sample characters.Any attribute |
67 |
| - with more than X characters will truncate to the first X, where X is |
68 |
| - a number of characters [Default: 500] |
69 |
| - --add-dotfile Optional: Add .pep.yaml file that points .yaml PEP file |
| 66 | + Optional: Limit of the number of sample characters.Any |
| 67 | + attribute with more than X characters will truncate to |
| 68 | + the first X, where X is a number of characters |
| 69 | + [Default: 500] |
| 70 | + --add-dotfile Optional: Add .pep.yaml file that points .yaml PEP |
| 71 | + file |
| 72 | + --max-soft-size MAX_SOFT_SIZE |
| 73 | + Optional: Max size of soft file. [Default: 1GB]. |
| 74 | + Supported input formats : 12B, 12KB, 12MB, 12GB. |
| 75 | + --max-prefetch-size MAX_PREFETCH_SIZE |
| 76 | + Argument to pass to prefetch program's --max-size |
| 77 | + option, if prefetch will be used in this run of |
| 78 | + geofetch; for reference: https://github.com/ncbi/sra- |
| 79 | + tools/wiki/08.-prefetch-and-fasterq-dump#check-the- |
| 80 | + maximum-size-limit-of-the-prefetch-tool |
70 | 81 | --silent Silence logging. Overrides verbosity.
|
71 | 82 | --verbosity V Set logging level (1-5 or logging module level name)
|
72 | 83 | --logdev Expand content of logging message format.
|
73 | 84 |
|
74 | 85 | processed:
|
75 | 86 | -p, --processed Download processed data [Default: download raw data].
|
76 | 87 | --data-source {all,samples,series}
|
77 |
| - Optional: Specifies the source of data on the GEO record to retrieve |
78 |
| - processed data, which may be attached to the collective series |
79 |
| - entity, or to individual samples. Allowable values are: samples, |
80 |
| - series or both (all). Ignored unless 'processed' flag is set. |
81 |
| - [Default: samples] |
82 |
| - --filter FILTER Optional: Filter regex for processed filenames [Default: |
83 |
| - None].Ignored unless 'processed' flag is set. |
| 88 | + Optional: Specifies the source of data on the GEO |
| 89 | + record to retrieve processed data, which may be |
| 90 | + attached to the collective series entity, or to |
| 91 | + individual samples. Allowable values are: samples, |
| 92 | + series or both (all). Ignored unless 'processed' flag |
| 93 | + is set. [Default: samples] |
| 94 | + --filter FILTER Optional: Filter regex for processed filenames |
| 95 | + [Default: None].Ignored unless 'processed' flag is |
| 96 | + set. |
84 | 97 | --filter-size FILTER_SIZE
|
85 |
| - Optional: Filter size for processed files that are stored as sample |
86 |
| - repository [Default: None]. Works only for sample data. Supported |
87 |
| - input formats : 12B, 12KB, 12MB, 12GB. Ignored unless 'processed' |
88 |
| - flag is set. |
| 98 | + Optional: Filter size for processed files that are |
| 99 | + stored as sample repository [Default: None]. Works |
| 100 | + only for sample data. Supported input formats : 12B, |
| 101 | + 12KB, 12MB, 12GB. Ignored unless 'processed' flag is |
| 102 | + set. |
89 | 103 | -g GEO_FOLDER, --geo-folder GEO_FOLDER
|
90 |
| - Optional: Specify a location to store processed GEO files. Ignored |
91 |
| - unless 'processed' flag is set.[Default: $GEODATA:] |
| 104 | + Optional: Specify a location to store processed GEO |
| 105 | + files. Ignored unless 'processed' flag is |
| 106 | + set.[Default: $GEODATA:] |
92 | 107 |
|
93 | 108 | raw:
|
94 | 109 | -x, --split-experiments
|
95 |
| - Split SRR runs into individual samples. By default, SRX experiments |
96 |
| - with multiple SRR Runs will have a single entry in the annotation |
97 |
| - table, with each run as a separate row in the subannotation table. |
98 |
| - This setting instead treats each run as a separate sample |
| 110 | + Split SRR runs into individual samples. By default, |
| 111 | + SRX experiments with multiple SRR Runs will have a |
| 112 | + single entry in the annotation table, with each run as |
| 113 | + a separate row in the subannotation table. This |
| 114 | + setting instead treats each run as a separate sample |
99 | 115 | -b BAM_FOLDER, --bam-folder BAM_FOLDER
|
100 |
| - Optional: Specify folder of bam files. Geofetch will not download |
101 |
| - sra files when corresponding bam files already exist. [Default: |
102 |
| - $SRABAM:] |
| 116 | + Optional: Specify folder of bam files. Geofetch will |
| 117 | + not download sra files when corresponding bam files |
| 118 | + already exist. [Default: $SRABAM:] |
103 | 119 | -f FQ_FOLDER, --fq-folder FQ_FOLDER
|
104 |
| - Optional: Specify folder of fastq files. Geofetch will not download |
105 |
| - sra files when corresponding fastq files already exist. [Default: |
106 |
| - $SRAFQ:] |
107 |
| - --use-key-subset Use just the keys defined in this module when writing out metadata. |
| 120 | + Optional: Specify folder of fastq files. Geofetch will |
| 121 | + not download sra files when corresponding fastq files |
| 122 | + already exist. [Default: $SRAFQ:] |
| 123 | + --use-key-subset Use just the keys defined in this module when writing |
| 124 | + out metadata. |
| 125 | + --add-convert-modifier |
| 126 | + Add looper SRA convert modifier to config file. |
108 | 127 | ```
|
0 commit comments