You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4,7 +4,14 @@ EGAPx is the publicly accessible version of the updated NCBI [Eukaryotic Genome
4
4
5
5
EGAPx takes an assembly fasta file, a taxid of the organism, and RNA-seq data. Based on the taxid, EGAPx will pick protein sets and HMM models. The pipeline runs `miniprot` to align protein sequences, and `STAR` to align RNA-seq to the assembly. Protein alignments and RNA-seq read alignments are then passed to `Gnomon` for gene prediction. In the first step of `Gnomon`, the short alignments are chained together into putative gene models. In the second step, these predictions are further supplemented by _ab-initio_ predictions based on HMM models. The final annotation for the input assembly is produced as a `gff` file.
6
6
7
-
We currently have protein datasets posted for most vertebrates (mammals, sauropsids, ray-finned fishes), hymenoptera, diptera, lepidoptera and choleoptera. We will be adding datasets for more arthropods, vertebrates and plants in the next couple of months. Fungi, protists and nematodes are currently out-of-scope for EGAPx pending additional refinements.
7
+
We currently have protein datasets posted that are suitable for most vertebrates and arthropods:
8
+
- Chordata - Mammalia, Sauropsida, Actinopterygii (ray-finned fishes)
We will be adding datasets for plants and other invertebrates in the next couple of months. Fungi, protists and nematodes are currently out-of-scope for EGAPx pending additional refinements.
13
+
14
+
We currently have protein datasets posted for most vertebrates (mammals, sauropsids, ray-finned fishes) and arthropods. We will be adding datasets for more arthropods, vertebrates and plants in the next couple of months. Fungi, protists and nematodes are currently out-of-scope for EGAPx pending additional refinements.
8
15
9
16
**Warning:**
10
17
The current version is an alpha release with limited features and organism scope to collect initial feedback on execution. Outputs are not yet complete and not intended for production use. Please open a GitHub [Issue](https://github.com/ncbi/egapx/issues) if you encounter any problems with EGAPx. You can also write to [email protected] to give us your feedback or if you have any questions.
@@ -41,23 +48,46 @@ Notes:
41
48
42
49
Input to EGAPx is in the form of a YAML file.
43
50
44
-
- The following two are the _required_ key-value pairs for the input file:
51
+
- The following are the _required_ key-value pairs for the input file:
45
52
46
53
```
47
54
genome: path to assembled genome in FASTA format
48
55
taxid: NCBI Taxonomy identifier of the target organism
56
+
reads: RNA-seq data
49
57
```
50
58
You can obtain taxid from the [NCBI Taxonomy page](https://www.ncbi.nlm.nih.gov/taxonomy).
51
59
52
60
53
-
- The following are the _optional_ key-value pairs for the input file:
61
+
- RNA-seq data can be supplied in any one of the following ways:
54
62
55
-
- RNA-seq data. Use one of the following options:
56
63
```
57
-
reads: [ array of paths to reads FASTA files]
58
-
reads_ids: [ array of SRA run ids ]
59
-
reads_query: query for reads SRA
64
+
reads: [ array of paths to reads FASTA or FASTQ files]
65
+
reads: [ array of SRA run IDs ]
66
+
reads: [SRA Study ID]
67
+
reads: SRA query for reads
68
+
```
69
+
- If you are using your local reads, then the FASTA/FASTQ headers need to be in the following format:
60
70
```
71
+
head SRR8506572_1.fasta| grep ">"
72
+
>SRR8506572.1.1
73
+
>SRR8506572.2.1
74
+
75
+
head SRR8506572_2.fasta| grep ">"
76
+
>SRR8506572.1.2
77
+
>SRR8506572.2.2
78
+
79
+
head SRR8506572_2.fastq| grep "@"
80
+
@SRR8506572.1.2
81
+
@SRR8506572.2.2
82
+
83
+
head SRR8506572_1.fastq| grep "@"
84
+
@SRR8506572.1.1
85
+
@SRR8506572.2.1
86
+
```
87
+
88
+
- If you provide an SRA Study ID, all the SRA run ID's belonging to that Study ID will be included in the EGAPx run.
89
+
90
+
- The following are the _optional_ key-value pairs for the input file:
61
91
62
92
- A protein set. A taxid-based protein set will be chosen if no protein set is provided.
63
93
```
@@ -86,19 +116,19 @@ Input to EGAPx is in the form of a YAML file.
- To specify an array of NCBI SRA datasets using `reads_ids:`
119
+
- To specify an array of NCBI SRA datasets:
90
120
```
91
-
reads_ids:
121
+
reads:
92
122
- SRR8506572
93
123
- SRR9005248
94
124
```
95
125
96
-
- To specify an SRA entrez query using `reads_query:`
126
+
- To specify an SRA entrez query:
97
127
```
98
-
reads_query: 'txid6954[Organism] AND biomol_transcript[properties] NOT SRS024887[Accession] AND (SRR8506572[Accession] OR SRR9005248[Accession] )'
128
+
reads: 'txid6954[Organism] AND biomol_transcript[properties] NOT SRS024887[Accession] AND (SRR8506572[Accession] OR SRR9005248[Accession] )'
99
129
```
100
130
101
-
**Note:** Both the above examples `reads_ids` and `reads_query` will have more RNA-seq data than the `input_D_farinae_small.yaml` example. To make sure the `reads_query` does not produce a large number of SRA runs, please run it first at the [NCBI SRA page](https://www.ncbi.nlm.nih.gov/sra). If there are too many SRA runs, then select a few of them and use the `reads_ids` option.
131
+
**Note:** Both the above examples will have more RNA-seq data than the `input_D_farinae_small.yaml` example. To make sure the entrez query does not produce a large number of SRA runs, please run it first at the [NCBI SRA page](https://www.ncbi.nlm.nih.gov/sra). If there are too many SRA runs, then select a few of them and list it in the input yaml.
102
132
103
133
- First, test EGAPx on the example provided (`input_D_farinae_small.yaml`, a dust mite) to make sure everything works. This example usually runs under 30 minutes depending upon resource availability. There are other examples you can try: `input_C_longicornis.yaml`, a green fly, and `input_Gavia_tellata.yaml`, a bird. These will take close to two hours. You can prepare your input YAML file following these examples.
104
134
@@ -144,40 +174,57 @@ Input to EGAPx is in the form of a YAML file.
144
174
- use `-e aws` for AWS batch using Docker image
145
175
- use `-e docker` for using Docker image
146
176
- use `-e singularity` for using the Singularity image
147
-
- use `-e slurm` for using SLURM in your HPC.
177
+
- use `-e biowulf_cluster` for Biowulf cluster using Singularity image
178
+
- use '-e slurm` for using SLURM in your HPC.
148
179
- Note that for this option, you have to edit `./egapx_config/slurm.config` according to your cluster specifications.
149
180
- type `python3 ui/egapx.py -h ` for the help menu
150
181
151
182
```
152
-
$ ./egapx.py -h
153
-
183
+
$ ui/egapx.py -h
184
+
185
+
154
186
!!WARNING!!
155
187
This is an alpha release with limited features and organism scope to collect initial feedback on execution. Outputs are not yet complete and not intended for production use.
filename YAML file with input: section with at least genome: and reads: parameters
163
-
164
195
optional arguments:
165
196
-h, --help show this help message and exit
166
197
-e EXECUTOR, --executor EXECUTOR
167
-
Nextflow executor, one of local, docker, aws. Uses corresponding Nextflow config file
198
+
Nextflow executor, one of docker, singularity, aws, or local (for NCBI
199
+
internal use only). Uses corresponding Nextflow config file
168
200
-c CONFIG_DIR, --config-dir CONFIG_DIR
169
-
Directory for executor config files, default is ./egapx_config. Can be also set as env EGAPX_CONFIG_DIR
170
-
-o OUTPUT, --output OUTPUT
171
-
Output path
201
+
Directory for executor config files, default is ./egapx_config. Can be also
202
+
set as env EGAPX_CONFIG_DIR
172
203
-w WORKDIR, --workdir WORKDIR
173
-
Working directory for cloud executor
204
+
Working directory for cloud executor
174
205
-r REPORT, --report REPORT
175
-
Report file prefix for report (.report.html) and timeline (.timeline.html) files, default is in output directory
206
+
Report file prefix for report (.report.html) and timeline (.timeline.html)
207
+
files, default is in output directory
176
208
-n, --dry-run
209
+
-st, --stub-run
210
+
-so, --summary-only Print result statistics only if available, do not compute result
211
+
-lc LOCAL_CACHE, --local-cache LOCAL_CACHE
212
+
Where to store the downloaded files
177
213
-q, --quiet
178
214
-v, --verbose
179
215
-fn FUNC_NAME, --func_name FUNC_NAME
180
216
func_name
217
+
218
+
run:
219
+
filename YAML file with input: section with at least genome: and reads: parameters
220
+
-o OUTPUT, --output OUTPUT
221
+
Output path
222
+
223
+
download:
224
+
-dl, --download-only Download external files to local storage, so that future runs can be
225
+
isolated
226
+
227
+
181
228
```
182
229
183
230
@@ -270,16 +317,69 @@ $ aws s3 ls s3://temp_datapath/D_farinae/96/621c4ba4e6e87a4d869c696fe50034/outpu
270
317
2024-03-27 11:20:24 17127134 aligns.paf
271
318
```
272
319
320
+
## Offline mode
321
+
322
+
If you do not have internet access from your cluster, you can run EGAPx in offline mode. To do this, you would first pull the Singularity image, then download the necessary files from NCBI FTP using `egapx.py` script, and then finally use the path of the downloaded folder in the run command. Here is an example of how to download the files and execute EGAPx in the Biowulf cluster.
Barnett DW, Garrison EK, Quinlan AR, Strömberg MP, Marth GT. BamTools: a C++ API and toolkit for analyzing and managing BAM files. Bioinformatics. 2011 Jun 15;27(12):1691-2. doi: 10.1093/bioinformatics/btr174. Epub 2011 Apr 14. PMID: 21493652; PMCID: PMC3106182.
373
+
Buchfink B, Reuter K, Drost HG. Sensitive protein alignments at tree-of-life scale using DIAMOND. Nat Methods. 2021 Apr;18(4):366-368. doi: 10.1038/s41592-021-01101-x. Epub 2021 Apr 7. PMID: 33828273; PMCID: PMC8026399.
276
374
277
375
Danecek P, Bonfield JK, Liddle J, Marshall J, Ohan V, Pollard MO, Whitwham A, Keane T, McCarthy SA, Davies RM, Li H. Twelve years of SAMtools and BCFtools. Gigascience. 2021 Feb 16;10(2):giab008. doi: 10.1093/gigascience/giab008. PMID: 33590861; PMCID: PMC7931819.
278
376
279
377
Dobin A, Davis CA, Schlesinger F, Drenkow J, Zaleski C, Jha S, Batut P, Chaisson M, Gingeras TR. STAR: ultrafast universal RNA-seq aligner. Bioinformatics. 2013 Jan 1;29(1):15-21. doi: 10.1093/bioinformatics/bts635. Epub 2012 Oct 25. PMID: 23104886; PMCID: PMC3530905.
280
378
281
379
Li H. Protein-to-genome alignment with miniprot. Bioinformatics. 2023 Jan 1;39(1):btad014. doi: 10.1093/bioinformatics/btad014. PMID: 36648328; PMCID: PMC9869432.
282
380
381
+
Shen W, Le S, Li Y, Hu F. SeqKit: A Cross-Platform and Ultrafast Toolkit for FASTA/Q File Manipulation. PLoS One. 2016 Oct 5;11(10):e0163962. doi: 10.1371/journal.pone.0163962. PMID: 27706213; PMCID: PMC5051824.
0 commit comments