-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathro-crate-metadata.json
More file actions
419 lines (419 loc) · 23.9 KB
/
ro-crate-metadata.json
File metadata and controls
419 lines (419 loc) · 23.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
{
"@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
{
"@id": "./",
"@type": "Dataset",
"creativeWorkStatus": "Stable",
"datePublished": "2026-02-12T13:59:14+00:00",
"description": "# \n\n[](https://github.com/codespaces/new/sanger-tol/blobtoolkit)\n[](https://github.com/sanger-tol/blobtoolkit/actions/workflows/nf-test.yml)\n[](https://github.com/sanger-tol/blobtoolkit/actions/workflows/linting.yml)\n[](https://doi.org/10.5281/zenodo.7949058)\n[](https://www.nf-test.com)\n\n[](https://www.nextflow.io/)\n[](https://github.com/nf-core/tools/releases/tag/3.5.2)\n[](https://docs.conda.io/en/latest/)\n[](https://www.docker.com/)\n[](https://sylabs.io/docs/)\n[](https://cloud.seqera.io/launch?pipeline=https://github.com/sanger-tol/blobtoolkit)\n\n## Introduction\n\n**sanger-tol/blobtoolkit** is a bioinformatics pipeline that can be used to identify and analyse non-target DNA for eukaryotic genomes.\nIt takes a samplesheet of BAM/CRAM/FASTQ/FASTA files as input, calculates genome statistics, coverage and completeness information, combines them in a TSV file by window size to create a BlobDir dataset and static plots.\n\n1. Calculate genome statistics in windows ([`fastawindows`](https://github.com/tolkit/fasta_windows))\n2. Calculate Coverage ([`blobtk/depth`](https://github.com/blobtoolkit/blobtk))\n3. Determine the appropriate BUSCO lineages from the taxonomy.\n4. Run BUSCO ([`busco`](https://busco.ezlab.org/))\n5. Extract BUSCO genes ([`blobtoolkit/extractbuscos`](https://github.com/blobtoolkit/blobtoolkit))\n6. Run Diamond BLASTp against extracted BUSCO genes ([`diamond/blastp`](https://github.com/bbuchfink/diamond))\n7. Run BLASTx against sequences with no hit ([`diamond/blastx`](https://github.com/bbuchfink/diamond))\n8. Run BLASTn against sequences still with no hit ([`blast/blastn`](https://www.ncbi.nlm.nih.gov/books/NBK131777/))\n9. Count BUSCO genes ([`blobtoolkit/countbuscos`](https://github.com/blobtoolkit/blobtoolkit))\n10. Generate combined sequence stats across various window sizes ([`blobtoolkit/windowstats`](https://github.com/blobtoolkit/blobtoolkit))\n11. Import analysis results into a BlobDir dataset ([`blobtoolkit/blobdir`](https://github.com/blobtoolkit/blobtoolkit))\n12. Create static plot images ([`blobtk/images`](https://github.com/blobtoolkit/blobtk))\n\n## Usage\n\n> [!NOTE]\n> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.\n\nFirst, prepare a samplesheet with your input data that looks as follows:\n\n`samplesheet.csv`:\n\n```csv\nsample,datatype,datafile,library_layout\nmMelMel3_hic,hic,GCA_922984935.2.hic.mMelMel3.cram,PAIRED\nmMelMel1,illumina,GCA_922984935.2.illumina.mMelMel1.cram,PAIRED\nmMelMel3_ont,ont,GCA_922984935.2.ont.mMelMel3.cram,SINGLE\n```\n\nEach row represents a read set (aligned or not).\nThe first column (sample name) must be unique.\nIf you have multiple read sets from the same actual sample, make sure you edit the sample names to make them unique.\nThe datatype refers to the sequencing technology used to generate the underlying raw data and follows a controlled vocabulary (`ont`, `hic`, `pacbio`, `pacbio_clr`, `illumina`).\nThe library layout indicates whether the reads are paired or single.\nThe aligned read files can be generated using the [sanger-tol/readmapping](https://github.com/sanger-tol/readmapping) pipeline.\n\nNow, you can run the pipeline using:\n\n```bash\nnextflow run sanger-tol/blobtoolkit \\\n -profile <docker/singularity/.../institute> \\\n --input samplesheet.csv \\\n --outdir <OUTDIR> \\\n --fasta genome.fasta \\\n --accession GCA_XXXXXXXXX.X \\\n --taxon XXXX \\\n --taxdump /path/to/taxdump/database \\\n --blastp /path/to/diamond/database \\\n --blastn /path/to/blastn/nt.nal \\\n --blastx /path/to/blastx/database\n```\n\n> [!WARNING]\n> Please provide pipeline parameters via the CLI or Nextflow `-params-file` option. Custom config files including those provided by the `-c` Nextflow option can be used to provide any configuration _**except for parameters**_; see [docs](https://nf-co.re/docs/usage/getting_started/configuration#custom-configuration-files).\n\nFor more details, please refer to the [usage documentation](https://pipelines.tol.sanger.ac.uk/blobtoolkit/usage) and the [parameter documentation](https://pipelines.tol.sanger.ac.uk/blobtoolkit/parameters).\n\n## BLAST Database Configuration\n\n### BLASTn Database Requirements\n\nThe `--blastn` parameter requires a direct path to a **BLAST database file**, either a `.nal` (alias) file or a `.nin` (index) file. The pipeline validates that all required companion files are present.\n\n#### Supported File Types:\n\n1. **`.nal` file (preferred)** - BLAST alias file:\n\n ```bash\n --blastn /path/to/databases/nt.nal\n ```\n\n2. **`.nin` file (fallback)** - BLAST index file (when .nal is not available):\n\n ```bash\n --blastn /path/to/databases/nt.nin\n ```\n\n3. **Compressed archive** (for CI/testing):\n ```bash\n --blastn https://example.com/path/to/nt_database.tar.gz\n ```\n\n#### Database Structure Requirements:\n\n##### When using a `.nal` file:\n\nThe directory must contain all companion files with the same prefix:\n\n- `db_name.nal` (alias file - the file you point to)\n- `db_name.nin` or `db_name.##.nin` (index file(s))\n- `db_name.nhr` or `db_name.##.nhr` (header file(s))\n- `db_name.nsq` or `db_name.##.nsq` (sequence file(s))\n\n##### When using a `.nin` file:\n\nThe directory must contain companion files with the same prefix:\n\n- `db_name.nin` or `db_name.##.nin` (index file - the file you point to)\n- `db_name.nhr` or `db_name.##.nhr` (header file(s))\n- `db_name.nsq` or `db_name.##.nsq` (sequence file(s))\n\n**Note**: `##` represents numbers like `00`, `01`, `02`, etc. for large databases split into multiple files.\n\n#### Example Directory Structures:\n\n##### Single File Pattern:\n\n```\n/data/blast/nt/\n\u251c\u2500\u2500 nt.nal # Point --blastn here\n\u251c\u2500\u2500 nt.nin # Required companion files\n\u251c\u2500\u2500 nt.nhr\n\u251c\u2500\u2500 nt.nsq\n\u251c\u2500\u2500 taxdb.btd # Optional taxonomy files\n\u2514\u2500\u2500 taxonomy4blast.sqlite3\n```\n\n##### Numbered File Pattern (Large Databases):\n\n```\n/data/blast/nt/\n\u251c\u2500\u2500 nt.nal # Point --blastn here\n\u251c\u2500\u2500 nt.00.nin # Required numbered companion files\n\u251c\u2500\u2500 nt.00.nhr\n\u251c\u2500\u2500 nt.00.nsq\n\u251c\u2500\u2500 nt.01.nin\n\u251c\u2500\u2500 nt.01.nhr\n\u251c\u2500\u2500 nt.01.nsq\n\u251c\u2500\u2500 nt.02.nin\n\u251c\u2500\u2500 nt.02.nhr\n\u251c\u2500\u2500 nt.02.nsq\n\u251c\u2500\u2500 taxdb.btd\n\u251c\u2500\u2500 taxdb.bti\n\u2514\u2500\u2500 taxonomy4blast.sqlite3\n```\n\n##### Using .nin file (when .nal is not available):\n\n```\n/data/blast/nt/\n\u251c\u2500\u2500 nt.nin # Point --blastn here (no .nal file)\n\u251c\u2500\u2500 nt.nhr # Required companion files\n\u251c\u2500\u2500 nt.nsq\n\u251c\u2500\u2500 taxdb.btd\n\u251c\u2500\u2500 taxdb.bti\n\u2514\u2500\u2500 taxonomy4blast.sqlite3\n```\n\n#### Troubleshooting:\n\n- **Error: \"Invalid BLAST database path\"** - Ensure you're pointing to either a `.nal` or `.nin` file, not a directory\n- **Error: \"Missing required files\"** - Verify that all companion files (`.nin`, `.nhr`, `.nsq`) exist with the same prefix\n- **Error: \"BLAST database appears incomplete\"** - Check that all required BLAST database components are present\n- **Error: \"File not found\"** - Verify the file path is correct and the file exists\n\n#### Migration from Previous Versions:\n\nIf you were previously using `--blastn /path/to/taxonomy4blast.sqlite3`, you now need to:\n\n1. Use `--blastn /path/to/nt.nal` (if available), or\n2. Use `--blastn /path/to/nt.nin` (if .nal is not available)\n\n## Pipeline output\n\nFor more details about the output files and reports, please refer to the [output documentation](https://pipelines.tol.sanger.ac.uk/blobtoolkit/output).\n\n## Credits\n\nsanger-tol/blobtoolkit was written in Nextflow by:\n\n- [Alexander Ramos Diaz](https://github.com/alxndrdiaz)\n- [Zaynab Butt](https://github.com/zb32)\n- [Priyanka Surana](https://github.com/priyanka-surana)\n- [Matthieu Muffato](https://github.com/muffato)\n- [Tyler Chafin](https://github.com/tkchafin)\n- [Yumi Sims](https://github.com/yumisims)\n- [Damon-Lee Bernard Pointon](https://github.com/DLBPointon)\n\nThe original design and coding for [BlobToolKit software and Snakemake pipeline](https://github.com/blobtoolkit/blobtoolkit) was done by [Richard Challis](https://github.com/rjchallis) and [Sujai Kumar](https://github.com/sujaikumar).\n\nWe thank the following people for their extensive assistance in the development of this pipeline:\n\n- [Guoying Qi](https://github.com/gq1)\n- [Bethan Yates](https://github.com/BethYates)\n\n## Contributions and Support\n\nIf you would like to contribute to this pipeline, please see the [contributing guidelines](.github/CONTRIBUTING.md).\n\n## Citations\n\nIf you use sanger-tol/blobtoolkit for your analysis, please cite it using the following DOI: [10.5281/zenodo.7949058](https://doi.org/10.5281/zenodo.7949058)\n\nAn extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.\n\nThis pipeline uses code and infrastructure developed and maintained by the [nf-core](https://nf-co.re) community, reused here under the [MIT license](https://github.com/nf-core/tools/blob/main/LICENSE).\n\n> **The nf-core framework for community-curated bioinformatics pipelines.**\n>\n> Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.\n>\n> _Nat Biotechnol._ 2020 Feb 13. doi: [10.1038/s41587-020-0439-x](https://dx.doi.org/10.1038/s41587-020-0439-x).\n",
"hasPart": [
{
"@id": "main.nf"
},
{
"@id": "assets/"
},
{
"@id": "bin/"
},
{
"@id": "conf/"
},
{
"@id": "docs/"
},
{
"@id": "docs/images/"
},
{
"@id": "modules/"
},
{
"@id": "modules/local/"
},
{
"@id": "modules/nf-core/"
},
{
"@id": "workflows/"
},
{
"@id": "subworkflows/"
},
{
"@id": "nextflow.config"
},
{
"@id": "README.md"
},
{
"@id": "nextflow_schema.json"
},
{
"@id": "CHANGELOG.md"
},
{
"@id": "LICENSE"
},
{
"@id": "CODE_OF_CONDUCT.md"
},
{
"@id": "CITATIONS.md"
},
{
"@id": "modules.json"
},
{
"@id": "docs/usage.md"
},
{
"@id": "docs/output.md"
},
{
"@id": ".nf-core.yml"
},
{
"@id": ".pre-commit-config.yaml"
},
{
"@id": ".prettierignore"
}
],
"isBasedOn": "https://github.com/sanger-tol/blobtoolkit",
"license": "MIT",
"mainEntity": {
"@id": "main.nf"
},
"name": "sanger-tol/blobtoolkit"
},
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"about": {
"@id": "./"
},
"conformsTo": [
{
"@id": "https://w3id.org/ro/crate/1.1"
},
{
"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"
}
]
},
{
"@id": "main.nf",
"@type": [
"File",
"SoftwareSourceCode",
"ComputationalWorkflow"
],
"author": [
{
"@id": "https://orcid.org/0000-0002-3502-1122"
},
{
"@id": "https://orcid.org/0000-0002-7175-0533"
},
{
"@id": "https://orcid.org/0000-0001-5902-6641"
},
{
"@id": "https://orcid.org/0000-0002-7860-3560"
},
{
"@id": "https://orcid.org/0000-0001-6410-3349"
},
{
"@id": "https://orcid.org/0000-0002-7167-0875"
}
],
"contributor": [
{
"@id": "https://orcid.org/0009-0009-7934-8440"
},
{
"@id": "https://orcid.org/0000-0001-8687-5905"
},
{
"@id": "https://orcid.org/0000-0003-2949-6719"
},
{
"@id": "https://orcid.org/0000-0003-1262-8973"
},
{
"@id": "https://orcid.org/0000-0003-4765-4872"
},
{
"@id": "https://orcid.org/0000-0003-1658-1762"
}
],
"dateCreated": "",
"dateModified": "2026-02-12T13:59:14Z",
"dct:conformsTo": "https://bioschemas.org/profiles/ComputationalWorkflow/1.0-RELEASE/",
"keywords": [
"nextflow",
"nf-core",
"blobtools",
"decontamination",
"genomehubs",
"genomics"
],
"license": [
"MIT"
],
"maintainer": [
{
"@id": "https://orcid.org/0000-0002-7175-0533"
},
{
"@id": "https://orcid.org/0000-0002-7860-3560"
}
],
"name": [
"sanger-tol/blobtoolkit"
],
"programmingLanguage": {
"@id": "https://w3id.org/workflowhub/workflow-ro-crate#nextflow"
},
"sdPublisher": {
"@id": "https://pipelines.tol.sanger.ac.uk/"
},
"url": [
"https://github.com/sanger-tol/blobtoolkit",
"https://pipelines.tol.sanger.ac.uk//blobtoolkit/0.10.0/"
],
"version": [
"0.10.0"
]
},
{
"@id": "https://w3id.org/workflowhub/workflow-ro-crate#nextflow",
"@type": "ComputerLanguage",
"identifier": {
"@id": "https://www.nextflow.io/"
},
"name": "Nextflow",
"url": {
"@id": "https://www.nextflow.io/"
},
"version": "!>=25.04.0"
},
{
"@id": "assets/",
"@type": "Dataset",
"description": "Additional files"
},
{
"@id": "bin/",
"@type": "Dataset",
"description": "Scripts that must be callable from a pipeline process"
},
{
"@id": "conf/",
"@type": "Dataset",
"description": "Configuration files"
},
{
"@id": "docs/",
"@type": "Dataset",
"description": "Markdown files for documenting the pipeline"
},
{
"@id": "docs/images/",
"@type": "Dataset",
"description": "Images for the documentation files"
},
{
"@id": "modules/",
"@type": "Dataset",
"description": "Modules used by the pipeline"
},
{
"@id": "modules/local/",
"@type": "Dataset",
"description": "Pipeline-specific modules"
},
{
"@id": "modules/nf-core/",
"@type": "Dataset",
"description": "nf-core modules"
},
{
"@id": "workflows/",
"@type": "Dataset",
"description": "Main pipeline workflows to be executed in main.nf"
},
{
"@id": "subworkflows/",
"@type": "Dataset",
"description": "Smaller subworkflows"
},
{
"@id": "nextflow.config",
"@type": "File",
"description": "Main Nextflow configuration file"
},
{
"@id": "README.md",
"@type": "File",
"description": "Basic pipeline usage information"
},
{
"@id": "nextflow_schema.json",
"@type": "File",
"description": "JSON schema for pipeline parameter specification"
},
{
"@id": "CHANGELOG.md",
"@type": "File",
"description": "Information on changes made to the pipeline"
},
{
"@id": "LICENSE",
"@type": "File",
"description": "The license - should be MIT"
},
{
"@id": "CODE_OF_CONDUCT.md",
"@type": "File",
"description": "The nf-core code of conduct"
},
{
"@id": "CITATIONS.md",
"@type": "File",
"description": "Citations needed when using the pipeline"
},
{
"@id": "modules.json",
"@type": "File",
"description": "Version information for modules from nf-core/modules"
},
{
"@id": "docs/usage.md",
"@type": "File",
"description": "Usage documentation"
},
{
"@id": "docs/output.md",
"@type": "File",
"description": "Output documentation"
},
{
"@id": ".nf-core.yml",
"@type": "File",
"description": "nf-core configuration file, configuring template features and linting rules"
},
{
"@id": ".pre-commit-config.yaml",
"@type": "File",
"description": "Configuration file for pre-commit hooks"
},
{
"@id": ".prettierignore",
"@type": "File",
"description": "Ignore file for prettier"
},
{
"@id": "https://orcid.org/0009-0009-7934-8440",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"name": "Butt, Zaynab",
"url": "https://github.com/zb32"
},
{
"@id": "https://orcid.org/0000-0001-8687-5905",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "tc25@sanger.ac.uk",
"name": "Chafin, Tyler",
"url": "https://github.com/tkchafin"
},
{
"@id": "https://orcid.org/0000-0002-3502-1122",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"name": "Challis, Rich",
"url": "https://github.com/rjchallis"
},
{
"@id": "https://orcid.org/0000-0002-7175-0533",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "jd42@sanger.ac.uk",
"name": "Jim Downie",
"url": "https://github.com/prototaxites"
},
{
"@id": "https://orcid.org/0000-0001-5902-6641",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "sujaikumar@gmail.com",
"name": "Kumar, Sujai",
"url": "https://github.com/sujaikumar"
},
{
"@id": "https://orcid.org/0000-0002-7860-3560",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "mm49@sanger.ac.uk",
"name": "Muffato, Matthieu",
"url": "https://github.com/muffato"
},
{
"@id": "https://orcid.org/0000-0003-2949-6719",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "dp24@sanger.ac.uk",
"name": "Pointon, Damon-Lee Bernard",
"url": "https://github.com/DLBPointon"
},
{
"@id": "https://orcid.org/0000-0003-1262-8973",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "729395+gq1@users.noreply.github.com",
"name": "Qi, Guoying",
"url": "https://github.com/gq1"
},
{
"@id": "https://orcid.org/0000-0001-6410-3349",
"@type": "Person",
"email": "ra.ramos.diaz@gmail.com",
"name": "Ramos D\u00edaz, Alexander",
"url": "https://github.com/alxndrdiaz"
},
{
"@id": "https://orcid.org/0000-0003-4765-4872",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "yy5@sanger.ac.uk",
"name": "Sims, Yumi",
"url": "https://github.com/yumisims"
},
{
"@id": "https://orcid.org/0000-0002-7167-0875",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "ps22@sanger.ac.uk",
"name": "Surana, Priyanka",
"url": "https://github.com/priyanka-surana"
},
{
"@id": "https://orcid.org/0000-0003-1658-1762",
"@type": "Person",
"affiliation": "Wellcome Sanger Institute",
"email": "113996036+BethYates@users.noreply.github.com",
"name": "Yates, Bethan",
"url": "https://github.com/BethYates"
},
{
"@id": "https://pipelines.tol.sanger.ac.uk/",
"@type": "Organization",
"name": "Sanger Tree of Life programme",
"url": "https://pipelines.tol.sanger.ac.uk/"
}
]
}