Skip to content

Commit 24229e8

Browse files
committed
add missing files (schema, .nftignore) to repo
1 parent c5f6f65 commit 24229e8

File tree

3 files changed

+249
-1
lines changed

3 files changed

+249
-1
lines changed

nextflow_schema.json

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://raw.githubusercontent.com/dessimozlab/FastOMA/main/nextflow_schema.json",
4+
"title": "FastOMA Pipeline Parameters",
5+
"description": "Fast orthologous matrix analysis pipeline",
6+
"type": "object",
7+
"$defs": {
8+
"input_options": {
9+
"title": "Input options",
10+
"type": "object",
11+
"description": "Define where the pipeline should find input data ",
12+
"required": ["input_folder", "species_tree"],
13+
"properties": {
14+
"input_folder": {
15+
"type": "string",
16+
"format": "directory-path",
17+
"description": "Path to input directory containing proteomes and species tree",
18+
"fa_icon": "fas fa-folder-open"
19+
},
20+
"proteome_folder": {
21+
"type": "string",
22+
"format": "directory-path",
23+
"description": "Path to input directory containing the proteome files in fasta format",
24+
"help": "If not provided, the proteomes are asumed to be in the input_folder/proteomes directory.",
25+
"fa_icon": "fas fa-folder-open"
26+
},
27+
"hogmap_in": {
28+
"type": "string",
29+
"format": "directory-path",
30+
"description": "Path to input directory containing the hogmap files",
31+
"fa_icon": "fas fa-folder-open",
32+
"help": "If provided, the hogmap files will be used instead of computing them from scratch with OMAmer. This can save time if you have already computed the hogmaps for your proteomes."
33+
},
34+
"species_tree": {
35+
"type": "string",
36+
"format": "file-path",
37+
"description": "Path to species tree file",
38+
"fa_icon": "fas fa-tree",
39+
"pattern": "^\\S+\\.(nhx|nh|nwk)",
40+
"help": "The species tree should be in Newick or NHX format. By default, the pipeline looks for a file named species_tree.nwk in the input_folder."
41+
},
42+
"splice_folder": {
43+
"type": "string",
44+
"format": "directory-path",
45+
"description": "Path to input directory containing the splice files",
46+
"fa_icon": "fas fa-folder-open",
47+
"help": "If provided, FastOMA will use the splice files to identify and handle alternative splicing isoforms in the proteomes and select the best representative isoform for each gene."
48+
},
49+
"omamer_db": {
50+
"type": "string",
51+
"format": "file-path",
52+
"description": "Path to OMAmer database against which the proteomes will be mapped",
53+
"fa_icon": "fas fa-database",
54+
"help": "If not provided, the default OMAmer database (LUCA) will be used.",
55+
"default": "https://omabrowser.org/All/LUCA.h5"
56+
}
57+
}
58+
},
59+
"output_options": {
60+
"title": "Output options",
61+
"type": "object",
62+
"description": "Define where the pipeline should store the output data",
63+
"required": ["output_folder"],
64+
"properties": {
65+
"output_folder": {
66+
"type": "string",
67+
"default": "Output",
68+
"format": "directory-path",
69+
"description": "The output directory where the results will be saved",
70+
"fa_icon": "fas fa-folder-open"
71+
},
72+
"hogmap_folder": {
73+
"type": "string",
74+
"format": "directory-path",
75+
"description": "The output directory where the omamer hogmap files will be saved",
76+
"help": "If not provided, the hogmap files will be saved in the output_folder/hogmap directory.",
77+
"fa_icon": "fas fa-folder-open",
78+
"default": "Output/hogmap"
79+
}
80+
}
81+
},
82+
"processing_options": {
83+
"title": "Processing options",
84+
"type": "object",
85+
"description": "Parameters for processing and analysis",
86+
"properties": {
87+
"fasta_header_id_transformer": {
88+
"type": "string",
89+
"default": "noop",
90+
"enum": ["noop", "UniProt"],
91+
"description": "FASTA header ID transformer method"
92+
},
93+
"filter_method": {
94+
"type": "string",
95+
"default": "col-row-threshold",
96+
"description": "MSA filtering method",
97+
"enum": ["col-row-threshold", "col-elbow-row-threshold", "trimal"]
98+
},
99+
"filter_gap_ratio_row": {
100+
"type": "number",
101+
"default": 0.3,
102+
"minimum": 0,
103+
"maximum": 1,
104+
"description": "Gap ratio threshold for row filtering"
105+
},
106+
"filter_gap_ratio_col": {
107+
"type": "number",
108+
"default": 0.5,
109+
"minimum": 0,
110+
"maximum": 1
111+
},
112+
"nr_repr_per_hog": {
113+
"type": "integer",
114+
"default": 5,
115+
"minimum": 1
116+
},
117+
"min_sequence_length": {
118+
"type": "integer",
119+
"default": 20
120+
}
121+
}
122+
},
123+
"output_control": {
124+
"title": "Output control",
125+
"type": "object",
126+
"description": "Control what outputs are saved",
127+
"properties": {
128+
"write_msas": {
129+
"type": "boolean",
130+
"description": "Write multiple sequence alignments"
131+
},
132+
"write_genetrees": {
133+
"type": "boolean",
134+
"description": "Write gene trees"
135+
},
136+
"debug_enabled": {
137+
"type": "boolean",
138+
"description": "Enable debug mode"
139+
},
140+
"msa_folder": {
141+
"type": "string",
142+
"default": "Output/msa"
143+
},
144+
"temp_output": {
145+
"type": "string",
146+
"default": "Output/temp_output"
147+
},
148+
"genetrees_folder": {
149+
"type": "string",
150+
"default": "Output/genetrees"
151+
},
152+
"force_pairwise_ortholog_generation": {
153+
"type": "boolean",
154+
"description": "Force generation of pairwise orthologs even for large datasets (may be slow)",
155+
"help": "By default, pairwise orthologs are not generated for datasets with more than 25 species to avoid long runtimes. Enable this option to override this behavior."
156+
}
157+
}
158+
},
159+
"resource_options": {
160+
"title": "Resource options",
161+
"type": "object",
162+
"description": "",
163+
"default": "",
164+
"properties": {
165+
"time_multiplier": {
166+
"type": "integer",
167+
"default": 1
168+
},
169+
"memory_multiplier": {
170+
"type": "integer",
171+
"default": 1
172+
}
173+
}
174+
},
175+
"generic_options": {
176+
"title": "Generic options",
177+
"type": "object",
178+
"description": "Less common options for the pipeline",
179+
"properties": {
180+
"help": {
181+
"type": "boolean",
182+
"description": "Display help text",
183+
"fa_icon": "fas fa-question-circle",
184+
"hidden": true
185+
},
186+
"report": {
187+
"type": "boolean",
188+
"description": "Generate nextflow reports"
189+
},
190+
"statsdir": {
191+
"type": "string",
192+
"fa_icon": "fas fa-folder-open",
193+
"default": "Output/stats"
194+
},
195+
"trace_report_suffix": {
196+
"type": "string",
197+
"fa_icon": "far calendar",
198+
"description": "Suffix to add to the trace report filename. Default is the date and time in the format yyyy-MM-dd_HH-mm-ss.",
199+
"hidden": true
200+
},
201+
"custom_config_version": {
202+
"type": "string",
203+
"default": "master"
204+
},
205+
"custom_config_base": {
206+
"type": "string",
207+
"default": "https://raw.githubusercontent.com/nf-core/configs/master"
208+
},
209+
"container_name": {
210+
"type": "string",
211+
"default": "dessimozlab/fastoma"
212+
},
213+
"container_version": {
214+
"type": "string",
215+
"default": "dev"
216+
}
217+
}
218+
}
219+
},
220+
"allOf": [
221+
{
222+
"$ref": "#/$defs/input_options"
223+
},
224+
{
225+
"$ref": "#/$defs/output_options"
226+
},
227+
{
228+
"$ref": "#/$defs/processing_options"
229+
},
230+
{
231+
"$ref": "#/$defs/output_control"
232+
},
233+
{
234+
"$ref": "#/$defs/resource_options"
235+
},
236+
{
237+
"$ref": "#/$defs/generic_options"
238+
}
239+
]
240+
}

nf-test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config {
22
// location for all nf-tests
3-
testsDir "nf-tests/"
3+
testsDir "./"
44

55
// nf-test directory including temporary files for each test
66
workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"

nf-tests/.nftignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
RootHOGs.tsv
3+
OrthologousGroups.tsv
4+
FastOMA_HOGs.orthoxml
5+
orthologs.tsv.gz
6+
report.*
7+
**/*.html
8+
**/*.hogmap

0 commit comments

Comments
 (0)