PyamilySeq 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyamilyseq-1.0.1/PKG-INFO +381 -0
- pyamilyseq-1.0.1/README.md +365 -0
- {pyamilyseq-1.0.0 → pyamilyseq-1.0.1}/pyproject.toml +1 -0
- {pyamilyseq-1.0.0 → pyamilyseq-1.0.1}/setup.cfg +11 -5
- pyamilyseq-1.0.1/src/PyamilySeq/Cluster_Summary.py +163 -0
- pyamilyseq-1.0.1/src/PyamilySeq/Group_Splitter.py +571 -0
- pyamilyseq-1.0.1/src/PyamilySeq/PyamilySeq.py +316 -0
- pyamilyseq-1.0.1/src/PyamilySeq/PyamilySeq_Genus.py +242 -0
- pyamilyseq-1.0.1/src/PyamilySeq/PyamilySeq_Species.py +309 -0
- pyamilyseq-1.0.1/src/PyamilySeq/Seq_Combiner.py +66 -0
- pyamilyseq-1.0.1/src/PyamilySeq/Seq_Extractor.py +64 -0
- pyamilyseq-1.0.1/src/PyamilySeq/Seq_Finder.py +56 -0
- pyamilyseq-1.0.1/src/PyamilySeq/__init__.py +0 -0
- pyamilyseq-1.0.1/src/PyamilySeq/clusterings.py +452 -0
- pyamilyseq-1.0.1/src/PyamilySeq/constants.py +2 -0
- pyamilyseq-1.0.1/src/PyamilySeq/utils.py +566 -0
- pyamilyseq-1.0.1/src/PyamilySeq.egg-info/PKG-INFO +381 -0
- pyamilyseq-1.0.1/src/PyamilySeq.egg-info/SOURCES.txt +22 -0
- pyamilyseq-1.0.1/src/PyamilySeq.egg-info/entry_points.txt +7 -0
- pyamilyseq-1.0.1/src/PyamilySeq.egg-info/requires.txt +1 -0
- pyamilyseq-1.0.1/src/PyamilySeq.egg-info/top_level.txt +1 -0
- pyamilyseq-1.0.0/PKG-INFO +0 -17
- pyamilyseq-1.0.0/README.md +0 -2
- pyamilyseq-1.0.0/src/PyamilySeq.egg-info/PKG-INFO +0 -17
- pyamilyseq-1.0.0/src/PyamilySeq.egg-info/SOURCES.txt +0 -9
- pyamilyseq-1.0.0/src/PyamilySeq.egg-info/entry_points.txt +0 -2
- pyamilyseq-1.0.0/src/PyamilySeq.egg-info/top_level.txt +0 -1
- {pyamilyseq-1.0.0 → pyamilyseq-1.0.1}/LICENSE +0 -0
- {pyamilyseq-1.0.0 → pyamilyseq-1.0.1}/src/PyamilySeq.egg-info/dependency_links.txt +0 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: PyamilySeq
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: PyamilySeq - A a tool to investigate sequence-based gene groups identified by clustering methods such as CD-HIT, DIAMOND, BLAST or MMseqs2.
|
|
5
|
+
Home-page: https://github.com/NickJD/PyamilySeq
|
|
6
|
+
Author: Nicholas Dimonaco
|
|
7
|
+
Author-email: nicholas@dimonaco.co.uk
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/NickJD/PyamilySeq/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.6
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: levenshtein
|
|
16
|
+
|
|
17
|
+
# PyamilySeq
|
|
18
|
+
**PyamilySeq** is a Python tool for clustering gene sequences into groups based on sequence similarity identified by tools such as CD-HIT, BLAST, DIAMOND or MMseqs2.
|
|
19
|
+
This work is an extension of the gene family / pangenome tool developed for the StORF-Reporter publication in NAR (https://doi.org/10.1093/nar/gkad814).
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
- **End-to-End**: PyamilySeq can take a directory of GFF+FASTA files, run CD-HIT for clustering and process the results.
|
|
23
|
+
- **Clustering input**: Supports input from CD-HIT formatted files as well as CSV and TSV node-edge lists (MMseqs2 and -outfmt 6 from BLAST/DIAMOND).
|
|
24
|
+
- **Reclustering**: Allows for the addition of new sequences post-initial clustering - Ensures continuity of contemporary clustering results and highlights impact of novel gene predictions.
|
|
25
|
+
- **'Genus Mode'**: Unlike other 'pangenome' tools, PyamilySeq can identify gene groups found across multiple genera as unique entities (see below).
|
|
26
|
+
- **Output**: Generates a 'Roary/Panaroo' formatted presence-absence CSV formatted file for downstream analysis.
|
|
27
|
+
- User-define species-/genus-wide gene groups - User has control over grouping parameters (core = 99/95% or min 6 genera etc).
|
|
28
|
+
- Aligns representative sequences using MAFFT.
|
|
29
|
+
- Output concatenated aligned sequences for tree building.
|
|
30
|
+
- Optionally output sequences of each separate identified gene group.
|
|
31
|
+
- Group-Splitter tool to split multi-copy gene groups.
|
|
32
|
+
- Numerous additional tools to assist in the pre- and post-processing of data.
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
PyamilySeq probably requires Python 3.6 or higher and the levenshtein library (https://pypi.org/project/Levenshtein/) - \
|
|
36
|
+
If levenshtein is not available, a Python implementation is utilised which is significantly slower.
|
|
37
|
+
#### Install using pip:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install PyamilySeq [optionally add -U]
|
|
41
|
+
```
|
|
42
|
+
PyamilySeq is currently still under active development so expect 'regular' updates with bugfixes and new features. \
|
|
43
|
+
To update to the newest version add '-U' to end of the pip install command.
|
|
44
|
+
## Example usage: Below are two examples of running PyamilySeq in its two main modes.
|
|
45
|
+
```commandline
|
|
46
|
+
usage: PyamilySeq.py [-h] {Full,Partial} ...
|
|
47
|
+
|
|
48
|
+
PyamilySeq v1.0.1: A tool for gene clustering and analysis.
|
|
49
|
+
|
|
50
|
+
positional arguments:
|
|
51
|
+
{Full,Partial} Choose a mode: 'Full' or 'Partial'.
|
|
52
|
+
Full Full mode: PyamilySeq to cluster with CD-HIT and process output.
|
|
53
|
+
Partial Partial mode: PyamilySeq to process pre-clustered data.
|
|
54
|
+
|
|
55
|
+
options:
|
|
56
|
+
-h, --help show this help message and exit
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
### 'Full Mode': Will conduct clustering of sequences with CD-HIT as part of PyamilySeq run
|
|
60
|
+
```
|
|
61
|
+
PyamilySeq Full -output_dir .../PyamilySeq_10_AA_90_80_Full_GFFs -input_type combined -input_dir .../genomes/ -name_split _combined.gff3
|
|
62
|
+
```
|
|
63
|
+
### 'Partial Mode': Will process the output of a sequence clustering from MMseqs, BLAST, DIAMOND etc.
|
|
64
|
+
```
|
|
65
|
+
PyamilySeq Partial -clustering_format CD-HIT -cluster_file .../all_10_combined_pep_CD-HIT_90_80.clstr -original_fasta .../all_10_combined_pep.fasta -output_dir .../PyamilySeq_10_AA_90_80_Partial-w 99 -a
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#### Note: using a '-clustering_format' other than the default CD-HIT, requires input to be two in two columns as below (Same format as MMseqs2 tsv and BLAST outfmt 6) - Genome name and sequence name are separated by '|'.
|
|
70
|
+
```
|
|
71
|
+
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno
|
|
72
|
+
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_113290|ENSB:2fj4rJ8e8Z9PNdX
|
|
73
|
+
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_b185|ENSB:G_PVe28-ej8q-3S
|
|
74
|
+
Escherichia_coli_110957|ENSB:TIZS9kbTvShDvyX Escherichia_coli_110957|ENSB:TIZS9kbTvShDvyX
|
|
75
|
+
```
|
|
76
|
+
### Example output:
|
|
77
|
+
```
|
|
78
|
+
Running PyamilySeq v1.0.1
|
|
79
|
+
Calculating Groups
|
|
80
|
+
Number of Genomes: 10
|
|
81
|
+
Gene Groups
|
|
82
|
+
First_core_99: 2994
|
|
83
|
+
First_core_95: 0
|
|
84
|
+
First_core_15: 3266
|
|
85
|
+
First_core_0: 5466
|
|
86
|
+
Total Number of First Gene Groups (Including Singletons): 11726
|
|
87
|
+
Outputting gene_presence_absence file
|
|
88
|
+
Outputting gene group FASTA files
|
|
89
|
+
Combined FASTA file saved to: ../combined_group_sequences_dna.fasta
|
|
90
|
+
Processing gene group alignment
|
|
91
|
+
Thank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq
|
|
92
|
+
Please report any issues to: https://github.com/NickJD/PyamilySeq/issues
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
[//]: # (## Genus mode: )
|
|
96
|
+
|
|
97
|
+
[//]: # (### In addition to "Species mode" (see above) which reports gene groups the same as pangenome tools such as Roary and Panaroo, Genus mode reports gene groups identified across multiple genera.)
|
|
98
|
+
|
|
99
|
+
[//]: # (#### Example:)
|
|
100
|
+
|
|
101
|
+
[//]: # (```)
|
|
102
|
+
|
|
103
|
+
[//]: # (PyamilySeq -run_mode Partial -group_mode Genus -clustering_format CD-HIT -output_dir .../test_data/genus/testing/)
|
|
104
|
+
|
|
105
|
+
[//]: # ( -cluster_file .../test_data/genus/CD-HIT/combined_cds_cd-hit_80_60.clstr -gpa )
|
|
106
|
+
|
|
107
|
+
[//]: # (```)
|
|
108
|
+
|
|
109
|
+
[//]: # (```commandline)
|
|
110
|
+
|
|
111
|
+
[//]: # (Running PyamilySeq v1.0.1)
|
|
112
|
+
|
|
113
|
+
[//]: # (Calculating Groups)
|
|
114
|
+
|
|
115
|
+
[//]: # (Genus Groups:)
|
|
116
|
+
[//]: # (First_genera_1: 28549)
|
|
117
|
+
|
|
118
|
+
[//]: # (First_genera_2: 12)
|
|
119
|
+
|
|
120
|
+
[//]: # (First_genera_3: 0)
|
|
121
|
+
|
|
122
|
+
[//]: # (First_genera_>: 0)
|
|
123
|
+
|
|
124
|
+
[//]: # (Total Number of First Gene Groups (Including Singletons): 28561)
|
|
125
|
+
|
|
126
|
+
[//]: # (Outputting gene_presence_absence file)
|
|
127
|
+
|
|
128
|
+
[//]: # (Thank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq)
|
|
129
|
+
|
|
130
|
+
[//]: # (Please report any issues to: https://github.com/NickJD/PyamilySeq/issues)
|
|
131
|
+
|
|
132
|
+
[//]: # (#####)
|
|
133
|
+
|
|
134
|
+
[//]: # (```)
|
|
135
|
+
|
|
136
|
+
## Reclustering:
|
|
137
|
+
### Reclustering can be used to see where additional sequences/genes lay in relation to a contemporary pangenome/gene grouping.
|
|
138
|
+
```
|
|
139
|
+
PyamilySeq Partial -clustering_format CD-HIT -cluster_file .../all_10_combined_pep_CD-HIT_90_80.clstr -reclustered .../all_10_combined_pep_CD-HIT_90_80_AND_StORFs_CD-HIT_90_80.clstr -original_fasta .../all_10_combined_pep_AND_StORFs.fasta -output_dir .../PyamilySeq_10_AA_90_80_Partial_Reclustered_StORFs -w 99 -a
|
|
140
|
+
```
|
|
141
|
+
#### As can be seen below, the additional sequences recovered by the StORF-Reporter annotation tool have 'extended' contemporary or created entirely new gene groups. 'First' corresponds to the groups identified from the first clustering round and 'Second' for the second. In 'reclustering' mode, First_core_# groups are unaffected thus retaining the initial grouping information.
|
|
142
|
+
```commandline
|
|
143
|
+
Number of Genomes: 10
|
|
144
|
+
Gene Groups
|
|
145
|
+
First_core_99: 2994
|
|
146
|
+
First_core_95: 0
|
|
147
|
+
First_core_15: 3266
|
|
148
|
+
First_core_0: 5466
|
|
149
|
+
extended_core_99: 3
|
|
150
|
+
extended_core_95: 0
|
|
151
|
+
extended_core_15: 49
|
|
152
|
+
extended_core_0: 0
|
|
153
|
+
combined_core_99: 0
|
|
154
|
+
combined_core_95: 0
|
|
155
|
+
combined_core_15: 3
|
|
156
|
+
combined_core_0: 0
|
|
157
|
+
Second_core_99: 0
|
|
158
|
+
Second_core_95: 0
|
|
159
|
+
Second_core_15: 20
|
|
160
|
+
Second_core_0: 39
|
|
161
|
+
only_Second_core_99: 768
|
|
162
|
+
only_Second_core_95: 0
|
|
163
|
+
only_Second_core_15: 4472
|
|
164
|
+
only_Second_core_0: 8395
|
|
165
|
+
Total Number of First Gene Groups (Including Singletons): 11726
|
|
166
|
+
Total Number of Second Gene Groups (Including Singletons): 25359
|
|
167
|
+
Total Number of First Gene Groups That Had Additional Second Sequences But Not New Genomes: 5
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## PyamilySeq is separated into two main 'run modes', Full and Partial. They each have their own set of required and optional arguments.
|
|
171
|
+
### PyamilySeq - Full Menu:
|
|
172
|
+
```
|
|
173
|
+
usage: PyamilySeq.py Full [-h] -output_dir OUTPUT_DIR -input_type {separate,combined,fasta} [-input_dir INPUT_DIR]
|
|
174
|
+
[-input_fasta INPUT_FASTA] [-name_split NAME_SPLIT] [-sequence_type {AA,DNA}] [-gene_ident GENE_IDENT]
|
|
175
|
+
[-c PIDENT] [-s LEN_DIFF] [-fast_mode] [-group_mode {Species,Genus}] [-species_groups SPECIES_GROUPS]
|
|
176
|
+
[-genus_groups GENUS_GROUPS] [-w WRITE_GROUPS] [-wi] [-a] [-align_aa] [-no_gpa] [-M MEM] [-T THREADS]
|
|
177
|
+
[-verbose] [-v]
|
|
178
|
+
|
|
179
|
+
options:
|
|
180
|
+
-h, --help show this help message and exit
|
|
181
|
+
-output_dir OUTPUT_DIR
|
|
182
|
+
Directory for all output files.
|
|
183
|
+
-input_type {separate,combined,fasta}
|
|
184
|
+
Type of input files: 'separate' for matching FASTA and GFF files, 'combined' for GFF+FASTA, or 'fasta'
|
|
185
|
+
for a prepared FASTA file.
|
|
186
|
+
-input_dir INPUT_DIR Directory containing GFF/FASTA files - Use with -input_type separate/combined.
|
|
187
|
+
-input_fasta INPUT_FASTA
|
|
188
|
+
Input FASTA file - Use with - input_type fasta.
|
|
189
|
+
-name_split NAME_SPLIT
|
|
190
|
+
Substring to split filenames and extract genome names (e.g., '_combined.gff3') - Use with -input_type
|
|
191
|
+
separate/combined.
|
|
192
|
+
-sequence_type {AA,DNA}
|
|
193
|
+
Clustering mode: 'DNA' or 'AA'.
|
|
194
|
+
-gene_ident GENE_IDENT
|
|
195
|
+
Gene identifiers to extract sequences (e.g., 'CDS, tRNA').
|
|
196
|
+
-c PIDENT Sequence identity threshold for clustering (default: 0.90) - CD-HIT parameter '-c'.
|
|
197
|
+
-s LEN_DIFF Length difference threshold for clustering (default: 0.80) - CD-HIT parameter '-s'.
|
|
198
|
+
-fast_mode Enable fast mode for CD-HIT (not recommended) - CD-HIT parameter '-g'.
|
|
199
|
+
-group_mode {Species,Genus}
|
|
200
|
+
Grouping mode: 'Species' or 'Genus'.
|
|
201
|
+
-species_groups SPECIES_GROUPS
|
|
202
|
+
Gene groupings for 'Species' mode (default: '99,95,15').
|
|
203
|
+
-genus_groups GENUS_GROUPS
|
|
204
|
+
Gene groupings for 'Genus' mode (default: '1-10').
|
|
205
|
+
-w WRITE_GROUPS Output gene groups as a single FASTA file (specify levels: e.g., '-w 99,95').
|
|
206
|
+
-wi Output individual FASTA files for each group.
|
|
207
|
+
-a Align and concatenate sequences for 'core' groups.
|
|
208
|
+
-align_aa Align sequences as amino acids.
|
|
209
|
+
-no_gpa Skip creation of gene_presence_absence.csv.
|
|
210
|
+
-M MEM Memory allocation for clustering (MB) - CD-HIT parameter '-M'.
|
|
211
|
+
-T THREADS Number of threads for clustering/alignment - CD-HIT parameter '-T' | MAFFT parameter '--thread'.
|
|
212
|
+
-verbose Print verbose output.
|
|
213
|
+
-v, --version Print version number and exit.
|
|
214
|
+
```
|
|
215
|
+
### PyamilySeq - Partial Menu:
|
|
216
|
+
```commandline
|
|
217
|
+
usage: PyamilySeq.py Partial [-h] -clustering_format {CD-HIT,MMseqs,BLAST} -cluster_file CLUSTER_FILE -original_fasta ORIGINAL_FASTA -output_dir OUTPUT_DIR
|
|
218
|
+
[-reclustered RECLUSTERED] [-seq_tag SEQUENCE_TAG] [-group_mode {Species,Genus}] [-species_groups SPECIES_GROUPS] [-genus_groups GENUS_GROUPS]
|
|
219
|
+
[-w WRITE_GROUPS] [-wi] [-a] [-align_aa] [-no_gpa] [-M MEM] [-T THREADS] [-verbose] [-v]
|
|
220
|
+
|
|
221
|
+
options:
|
|
222
|
+
-h, --help show this help message and exit
|
|
223
|
+
-clustering_format {CD-HIT,MMseqs,BLAST}
|
|
224
|
+
Clustering format used: CD-HIT, MMseqs2, or BLAST.
|
|
225
|
+
-cluster_file CLUSTER_FILE
|
|
226
|
+
Cluster file containing pre-clustered groups from CD-HIT, MMseqs, BLAST etc.
|
|
227
|
+
-original_fasta ORIGINAL_FASTA
|
|
228
|
+
FASTA file used in pre-clustering (Provide sequences in DNA form).
|
|
229
|
+
-output_dir OUTPUT_DIR
|
|
230
|
+
Directory for all output files.
|
|
231
|
+
-reclustered RECLUSTERED
|
|
232
|
+
Clustering output file from a second round of clustering.
|
|
233
|
+
-seq_tag SEQUENCE_TAG
|
|
234
|
+
Tag for distinguishing reclustered sequences.
|
|
235
|
+
-group_mode {Species,Genus}
|
|
236
|
+
Grouping mode: 'Species' or 'Genus'.
|
|
237
|
+
-species_groups SPECIES_GROUPS
|
|
238
|
+
Gene groupings for 'Species' mode (default: '99,95,15').
|
|
239
|
+
-genus_groups GENUS_GROUPS
|
|
240
|
+
Gene groupings for 'Genus' mode (default: '1-10').
|
|
241
|
+
-w WRITE_GROUPS Output gene groups as a single FASTA file (specify levels: e.g., '-w 99,95').
|
|
242
|
+
-wi Output individual FASTA files for each group.
|
|
243
|
+
-a Align and concatenate sequences for 'core' groups.
|
|
244
|
+
-align_aa Align sequences as amino acids.
|
|
245
|
+
-no_gpa Skip creation of gene_presence_absence.csv.
|
|
246
|
+
-M MEM Memory allocation for clustering (MB) - CD-HIT parameter '-M'.
|
|
247
|
+
-T THREADS Number of threads for clustering/alignment - CD-HIT parameter '-T' | MAFFT parameter '--thread'.
|
|
248
|
+
-verbose Print verbose output.
|
|
249
|
+
-v, --version Print version number and exit.
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
## Seq-Combiner: This tool is provided to enable the pre-processing of multiple GFF/FASTA files together ready to be clustered by the user.
|
|
254
|
+
### Example:
|
|
255
|
+
```bash
|
|
256
|
+
Seq-Combiner -input_dir .../test_data/genomes -name_split .gff3 -output_dir .../test_data/genomes -output_name combine_fasta_seqs.fa -input_type combined
|
|
257
|
+
```
|
|
258
|
+
### Seq-Combiner Menu:
|
|
259
|
+
```
|
|
260
|
+
usage: Seq_Combiner.py [-h] -input_dir INPUT_DIR -input_type {separate,combined,fasta} -name_split NAME_SPLIT -output_dir OUTPUT_DIR -output_name
|
|
261
|
+
OUTPUT_FILE [-gene_ident GENE_IDENT] [-translate] [-v]
|
|
262
|
+
|
|
263
|
+
PyamilySeq v1.0.1: Seq-Combiner - A tool to extract sequences from GFF/FASTA files and prepare them for PyamilySeq.
|
|
264
|
+
|
|
265
|
+
options:
|
|
266
|
+
-h, --help show this help message and exit
|
|
267
|
+
|
|
268
|
+
Required Arguments:
|
|
269
|
+
-input_dir INPUT_DIR Directory location where the files are located.
|
|
270
|
+
-input_type {separate,combined,fasta}
|
|
271
|
+
Type of input files: "separate" for separate FASTA and GFF files, "combined" for GFF files with embedded FASTA sequences and "fasta"
|
|
272
|
+
for combining multiple FASTA files together.
|
|
273
|
+
-name_split NAME_SPLIT
|
|
274
|
+
substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').
|
|
275
|
+
-output_dir OUTPUT_DIR
|
|
276
|
+
Directory for all output files.
|
|
277
|
+
-output_name OUTPUT_FILE
|
|
278
|
+
Output file name.
|
|
279
|
+
|
|
280
|
+
Optional Arguments:
|
|
281
|
+
-gene_ident GENE_IDENT
|
|
282
|
+
Default - "CDS": Identifier used for extraction of sequences such as
|
|
283
|
+
"misc_RNA,gene,mRNA,CDS,rRNA,tRNA,tmRNA,CRISPR,ncRNA,regulatory_region,oriC,pseudo" - Not compatible with "fasta" input mode.
|
|
284
|
+
-translate Default - False: Translate extracted sequences to their AA counterpart?
|
|
285
|
+
|
|
286
|
+
Misc Arguments:
|
|
287
|
+
-v, --version Print out version number and exit
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Group-Splitter: This tool can split multi-copy gene groups using CD-HIT after initial PyamilySeq analysis.
|
|
292
|
+
### Example:
|
|
293
|
+
```bash
|
|
294
|
+
Group-Splitter -genome_num 74 -input_fasta .../test/species/ -output_dir .../test/species/ -sequence_type AA
|
|
295
|
+
```
|
|
296
|
+
### Group-Splitter Menu:
|
|
297
|
+
```
|
|
298
|
+
usage: Group_Splitter.py [-h] -input_fasta INPUT_FASTA -sequence_type {AA,DNA}
|
|
299
|
+
-genome_num GENOME_NUM -output_dir OUTPUT_DIR
|
|
300
|
+
[-groups GROUPS] [-group_threshold GROUP_THRESHOLD]
|
|
301
|
+
[-c PIDENT] [-s LEN_DIFF] [-T CLUSTERING_THREADS]
|
|
302
|
+
[-M CLUSTERING_MEMORY] [-no_delete_temp_files]
|
|
303
|
+
[-verbose] [-v]
|
|
304
|
+
|
|
305
|
+
PyamilySeq v1.0.1: Group-Splitter - A tool to split multi-copy gene groups
|
|
306
|
+
identified by PyamilySeq.
|
|
307
|
+
|
|
308
|
+
options:
|
|
309
|
+
-h, --help show this help message and exit
|
|
310
|
+
|
|
311
|
+
Required Parameters:
|
|
312
|
+
-input_fasta INPUT_FASTA
|
|
313
|
+
Input FASTA file containing gene groups.
|
|
314
|
+
-sequence_type {AA,DNA}
|
|
315
|
+
Default - DNA: Are groups "DNA" or "AA" sequences?
|
|
316
|
+
-genome_num GENOME_NUM
|
|
317
|
+
The total number of genomes must be provide
|
|
318
|
+
-output_dir OUTPUT_DIR
|
|
319
|
+
Output directory.
|
|
320
|
+
|
|
321
|
+
Regrouping Parameters:
|
|
322
|
+
-groups GROUPS Default - auto: Detect groups to be split (see
|
|
323
|
+
-group_threshold). Provide "-groups 1,2,3,4" with
|
|
324
|
+
group IDs to split specific groups.
|
|
325
|
+
-group_threshold GROUP_THRESHOLD
|
|
326
|
+
Minimum percentage of genomes with multi-copy
|
|
327
|
+
(default: 80.0) - Does not work with "-groups"
|
|
328
|
+
|
|
329
|
+
CD-HIT Reclustering Parameters:
|
|
330
|
+
-c PIDENT Sequence identity threshold (default: 0.8) - Probably
|
|
331
|
+
should be higher than what was used in initial
|
|
332
|
+
clustering.
|
|
333
|
+
-s LEN_DIFF Length difference cutoff (default: 0.20) - Often the
|
|
334
|
+
most impactful parameter to split 'multi-copy' gene
|
|
335
|
+
groups.
|
|
336
|
+
-T CLUSTERING_THREADS
|
|
337
|
+
Number of threads for clustering (default: 4)
|
|
338
|
+
-M CLUSTERING_MEMORY Memory limit in MB for clustering (default: 2000)
|
|
339
|
+
|
|
340
|
+
Misc Parameters:
|
|
341
|
+
-no_delete_temp_files
|
|
342
|
+
Default: Delete all temporary files after processing.
|
|
343
|
+
-verbose Print verbose output.
|
|
344
|
+
-v, --version Print out version number and exit
|
|
345
|
+
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
## Cluster-Summary menu: This tool can be used to summarise CD-HIT .clstr files:
|
|
349
|
+
### Example:
|
|
350
|
+
```bash
|
|
351
|
+
Cluster-Summary -genome_num 74 -input_clstr .../test_data/species/E-coli/E-coli_extracted_pep_cd-hit_80.clstr -output_tsv .../test_data/species/E-coli/E-coli_extracted_pep_cd-hit_80_Summary.tsv
|
|
352
|
+
```
|
|
353
|
+
### Cluster-Summary Menu:
|
|
354
|
+
```
|
|
355
|
+
usage: Cluster_Summary.py [-h] -input_clstr INPUT_CLSTR -output OUTPUT -genome_num GENOME_NUM
|
|
356
|
+
[-output_dir OUTPUT_DIR] [-verbose] [-v]
|
|
357
|
+
|
|
358
|
+
PyamilySeq v1.0.1: Cluster-Summary - A tool to summarise CD-HIT clustering files.
|
|
359
|
+
|
|
360
|
+
options:
|
|
361
|
+
-h, --help show this help message and exit
|
|
362
|
+
|
|
363
|
+
Required Parameters:
|
|
364
|
+
-input_clstr INPUT_CLSTR
|
|
365
|
+
Input CD-HIT .clstr file
|
|
366
|
+
-output OUTPUT Output TSV file to store cluster summaries - Will add '.tsv' if not
|
|
367
|
+
provided by user
|
|
368
|
+
-genome_num GENOME_NUM
|
|
369
|
+
The total number of genomes must be provide
|
|
370
|
+
|
|
371
|
+
Optional Arguments:
|
|
372
|
+
-output_dir OUTPUT_DIR
|
|
373
|
+
Default: Same as input file
|
|
374
|
+
|
|
375
|
+
Misc Parameters:
|
|
376
|
+
-verbose Print verbose output.
|
|
377
|
+
-v, --version Print out version number and exit
|
|
378
|
+
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### All example input and output data can be found in the 'test_data' directory.
|