PyamilySeq 0.5.0__py3-none-any.whl → 0.5.2__py3-none-any.whl
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/Constants.py +1 -1
- PyamilySeq/PyamilySeq.py +13 -5
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/METADATA +47 -66
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/RECORD +8 -8
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/LICENSE +0 -0
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/WHEEL +0 -0
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/entry_points.txt +0 -0
- {PyamilySeq-0.5.0.dist-info → PyamilySeq-0.5.2.dist-info}/top_level.txt +0 -0
PyamilySeq/Constants.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
PyamilySeq_Version = 'v0.5.
|
|
1
|
+
PyamilySeq_Version = 'v0.5.2'
|
|
2
2
|
|
PyamilySeq/PyamilySeq.py
CHANGED
|
@@ -3,7 +3,7 @@ import collections
|
|
|
3
3
|
import os
|
|
4
4
|
import glob
|
|
5
5
|
import subprocess
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
try:
|
|
@@ -25,7 +25,8 @@ def run_cd_hit(input_file, clustering_output, options):
|
|
|
25
25
|
'-o', clustering_output,
|
|
26
26
|
'-c', str(options.pident),
|
|
27
27
|
'-s', str(options.len_diff),
|
|
28
|
-
'-T',
|
|
28
|
+
'-T', str(options.clustering_threads),
|
|
29
|
+
'-M', str(options.clustering_memory),
|
|
29
30
|
'-d', "0",
|
|
30
31
|
'-sc', "1",
|
|
31
32
|
'-sf', "1"
|
|
@@ -43,8 +44,8 @@ def main():
|
|
|
43
44
|
required.add_argument('-run_mode', action='store', dest='run_mode', choices=['Full','Partial'],
|
|
44
45
|
help='Run Mode: Should PyamilySeq be run in "Full" or "Partial" mode?',
|
|
45
46
|
required=True)
|
|
46
|
-
required.add_argument('-group_mode', action='store', dest='group_type', choices=['Species'
|
|
47
|
-
help='Group Mode: Should PyamilySeq be run in "Species" or "Genus" mode?',
|
|
47
|
+
required.add_argument('-group_mode', action='store', dest='group_type', choices=['Species'],
|
|
48
|
+
help='Group Mode: Should PyamilySeq be run in "Species" or "Genus" mode? - Genus mode not currently functioning',
|
|
48
49
|
required=True)
|
|
49
50
|
required.add_argument("-clust_tool", action="store", dest="clust_tool", choices=['CD-HIT'],
|
|
50
51
|
help="Clustering tool to use: CD-HIT, DIAMOND, BLAST or MMseqs2.",
|
|
@@ -70,7 +71,14 @@ def main():
|
|
|
70
71
|
full_mode_args.add_argument("-len_diff", action="store", dest="len_diff", type=float, default=0.80,
|
|
71
72
|
help="Default 0.80: Minimum length difference between clustered sequences - (-s) threshold for CD-HIT clustering.",
|
|
72
73
|
required=False)
|
|
73
|
-
|
|
74
|
+
###Clustering Arguments
|
|
75
|
+
clustering_args = parser.add_argument_group('Clustering Runtime Arguments - Optional when "-run_mode Full" is used')
|
|
76
|
+
clustering_args.add_argument("-mem", action="store", dest="clustering_memory", type=int, default=4000,
|
|
77
|
+
help="Default 4000: Memory to be allocated for clustering (in MBs).",
|
|
78
|
+
required=False)
|
|
79
|
+
clustering_args.add_argument("-t", action="store", dest="clustering_threads", type=int, default=4,
|
|
80
|
+
help="Default 4: Threads to be allocated for clustering.",
|
|
81
|
+
required=False)
|
|
74
82
|
|
|
75
83
|
###Partial-Mode Arguments
|
|
76
84
|
partial_mode_args = parser.add_argument_group('Partial-Mode Arguments - Required when "-run_mode Partial" is used')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyamilySeq
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: PyamilySeq - A a tool to look for sequence-based gene families identified by clustering methods such as CD-HIT, DIAMOND, BLAST or MMseqs2.
|
|
5
5
|
Home-page: https://github.com/NickJD/PyamilySeq
|
|
6
6
|
Author: Nicholas Dimonaco
|
|
@@ -34,107 +34,88 @@ PyamilySeq requires Python 3.6 or higher. Install using pip:
|
|
|
34
34
|
pip install PyamilySeq
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
### Examples: Below are two examples of running PyamilySeq in its two main modes.
|
|
38
|
+
#### 'Full Mode': Will conduct clustering of sequences as part of PyamilySeq run
|
|
39
|
+
```bash
|
|
40
|
+
PyamilySeq -run_mode Full -group_mode Species -output_dir ../../test_data/testing -input_type combined -input_dir .../test_data/genomes -name_split _combined.gff3 -pid 0.99 -len_diff 0.99 -clust_tool CD-HIT -gpa True -con True -w 99 -verbose True
|
|
41
|
+
```
|
|
42
|
+
#### 'Partial Mode': Will take the output of a sequence clustering
|
|
43
|
+
```bash
|
|
44
|
+
PyamilySeq -run_mode Partial -group_mode Species -output_dir .../test_data/testing -cluster_file .../test_data/CD-HIT/combined_Ensmbl_pep_CD_90_60.clstr -clust_tool CD-HIT -original_fasta .../test_data/combined_Ensmbl_cds.fasta -gpa True -con True -w 99 -verbose True
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
Calculating Groups
|
|
49
|
+
Gene Groups:
|
|
50
|
+
first_core_99: 3103
|
|
51
|
+
first_core_95: 0
|
|
52
|
+
first_core_15: 3217
|
|
53
|
+
first_core_0: 4808
|
|
54
|
+
Total Number of Gene Groups (Including Singletons): 11128
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
37
58
|
## Usage - Menu
|
|
38
59
|
```
|
|
39
|
-
usage: PyamilySeq.py [-h] -run_mode {Full,Partial} -group_mode {Species,
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[-len_diff LEN_DIFF] [-cluster_file CLUSTER_FILE]
|
|
44
|
-
[-reclustered RECLUSTERED] [-seq_tag SEQUENCE_TAG]
|
|
45
|
-
[-groups CORE_GROUPS] [-w WRITE_FAMILIES] [-con CON_CORE]
|
|
46
|
-
[-original_fasta ORIGINAL_FASTA]
|
|
47
|
-
[-gpa GENE_PRESENCE_ABSENCE_OUT] [-verbose {True,False}]
|
|
48
|
-
[-v]
|
|
49
|
-
|
|
50
|
-
PyamilySeq v0.5.0: PyamilySeq Run Parameters.
|
|
60
|
+
usage: PyamilySeq.py [-h] -run_mode {Full,Partial} -group_mode {Species} -clust_tool {CD-HIT} -output_dir OUTPUT_DIR [-input_type {separate,combined}] [-input_dir INPUT_DIR] [-name_split NAME_SPLIT] [-pid PIDENT] [-len_diff LEN_DIFF] [-mem CLUSTERING_MEMORY] [-t CLUSTERING_THREADS] [-cluster_file CLUSTER_FILE]
|
|
61
|
+
[-reclustered RECLUSTERED] [-seq_tag SEQUENCE_TAG] [-groups CORE_GROUPS] [-w WRITE_FAMILIES] [-con CON_CORE] [-original_fasta ORIGINAL_FASTA] [-gpa GENE_PRESENCE_ABSENCE_OUT] [-verbose {True,False}] [-v]
|
|
62
|
+
|
|
63
|
+
PyamilySeq v0.5.2: PyamilySeq Run Parameters.
|
|
51
64
|
|
|
52
65
|
options:
|
|
53
66
|
-h, --help show this help message and exit
|
|
54
67
|
|
|
55
68
|
Required Arguments:
|
|
56
69
|
-run_mode {Full,Partial}
|
|
57
|
-
Run Mode: Should PyamilySeq be run in "Full" or
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"Genus" mode?
|
|
62
|
-
-clust_tool {CD-HIT} Clustering tool to use: CD-HIT, DIAMOND, BLAST or
|
|
63
|
-
MMseqs2.
|
|
70
|
+
Run Mode: Should PyamilySeq be run in "Full" or "Partial" mode?
|
|
71
|
+
-group_mode {Species}
|
|
72
|
+
Group Mode: Should PyamilySeq be run in "Species" or "Genus" mode? - Genus mode not currently functioning
|
|
73
|
+
-clust_tool {CD-HIT} Clustering tool to use: CD-HIT, DIAMOND, BLAST or MMseqs2.
|
|
64
74
|
-output_dir OUTPUT_DIR
|
|
65
75
|
Directory for all output files.
|
|
66
76
|
|
|
67
77
|
Full-Mode Arguments - Required when "-run_mode Full" is used:
|
|
68
78
|
-input_type {separate,combined}
|
|
69
|
-
Type of input files: 'separate' for separate FASTA and
|
|
70
|
-
GFF files, 'combined' for GFF files with embedded
|
|
71
|
-
FASTA sequences.
|
|
79
|
+
Type of input files: 'separate' for separate FASTA and GFF files, 'combined' for GFF files with embedded FASTA sequences.
|
|
72
80
|
-input_dir INPUT_DIR Directory containing GFF/FASTA files.
|
|
73
81
|
-name_split NAME_SPLIT
|
|
74
|
-
substring used to split the filename and extract the
|
|
75
|
-
genome name ('_combined.gff3' or '.gff').
|
|
82
|
+
substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').
|
|
76
83
|
-pid PIDENT Default 0.95: Pident threshold for clustering.
|
|
77
|
-
-len_diff LEN_DIFF Default 0.80: Minimum length difference between
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
-len_diff LEN_DIFF Default 0.80: Minimum length difference between clustered sequences - (-s) threshold for CD-HIT clustering.
|
|
85
|
+
|
|
86
|
+
Clustering Runtime Arguments - Optional when "-run_mode Full" is used:
|
|
87
|
+
-mem CLUSTERING_MEMORY
|
|
88
|
+
Default 4000: Memory to be allocated for clustering (in MBs).
|
|
89
|
+
-t CLUSTERING_THREADS
|
|
90
|
+
Default 4: Threads to be allocated for clustering.
|
|
80
91
|
|
|
81
92
|
Partial-Mode Arguments - Required when "-run_mode Partial" is used:
|
|
82
93
|
-cluster_file CLUSTER_FILE
|
|
83
|
-
Clustering output file containing CD-HIT, TSV or CSV
|
|
84
|
-
Edge List
|
|
94
|
+
Clustering output file containing CD-HIT, TSV or CSV Edge List
|
|
85
95
|
|
|
86
96
|
Grouping Arguments - Use to fine-tune grouping of genes after clustering:
|
|
87
97
|
-reclustered RECLUSTERED
|
|
88
|
-
Clustering output file from secondary round of
|
|
89
|
-
clustering
|
|
98
|
+
Clustering output file from secondary round of clustering
|
|
90
99
|
-seq_tag SEQUENCE_TAG
|
|
91
|
-
Default - "StORF": Unique identifier to be used to
|
|
92
|
-
distinguish the second of two rounds of clustered
|
|
93
|
-
sequences
|
|
100
|
+
Default - "StORF": Unique identifier to be used to distinguish the second of two rounds of clustered sequences
|
|
94
101
|
-groups CORE_GROUPS Default - ('99,95,15'): Gene family groups to use
|
|
95
102
|
|
|
96
103
|
Output Parameters:
|
|
97
|
-
-w WRITE_FAMILIES Default - No output: Output sequences of identified
|
|
98
|
-
|
|
99
|
-
- Must provide FASTA file with -fasta
|
|
100
|
-
-con CON_CORE Default - No output: Output aligned and concatinated
|
|
101
|
-
sequences of identified families - used for MSA
|
|
102
|
-
(provide levels at which to output "-w 99,95" - Must
|
|
103
|
-
provide FASTA file with -fasta
|
|
104
|
+
-w WRITE_FAMILIES Default - No output: Output sequences of identified families (provide levels at which to output "-w 99,95" - Must provide FASTA file with -fasta
|
|
105
|
+
-con CON_CORE Default - No output: Output aligned and concatinated sequences of identified families - used for MSA (provide levels at which to output "-w 99,95" - Must provide FASTA file with -fasta
|
|
104
106
|
-original_fasta ORIGINAL_FASTA
|
|
105
|
-
FASTA file to use in conjunction with "-w" or "-con"
|
|
106
|
-
when running in Partial Mode.
|
|
107
|
+
FASTA file to use in conjunction with "-w" or "-con" when running in Partial Mode.
|
|
107
108
|
-gpa GENE_PRESENCE_ABSENCE_OUT
|
|
108
|
-
Default - False: If selected, a Roary formatted
|
|
109
|
-
gene_presence_absence.csv will be created - Required
|
|
110
|
-
for Coinfinder and other downstream tools
|
|
109
|
+
Default - False: If selected, a Roary formatted gene_presence_absence.csv will be created - Required for Coinfinder and other downstream tools
|
|
111
110
|
|
|
112
111
|
Misc:
|
|
113
112
|
-verbose {True,False}
|
|
114
113
|
Default - False: Print out runtime messages
|
|
115
114
|
-v Default - False: Print out version number and exit
|
|
116
115
|
|
|
117
|
-
```
|
|
118
116
|
|
|
119
|
-
### Examples: Below are two examples of running PyamilySeq in its two main modes.
|
|
120
|
-
#### 'Full Mode': Will conduct clustering of sequences as part of PyamilySeq run
|
|
121
|
-
```bash
|
|
122
|
-
PyamilySeq -id .../genomes -it combined -ns _combined.gff3 -pid 0.90 -ld 0.60 -co testing_cd-hit -ct CD-HIT -od .../testing
|
|
123
|
-
```
|
|
124
|
-
#### 'Partial Mode': Will take the output of a sequence clustering
|
|
125
|
-
```bash
|
|
126
|
-
PyamilySeq -run_mode Partial -group_mode Species -output_dir .../test_data/testing -cluster_file .../test_data/CD-HIT/combined_Ensmbl_pep_CD_90_60.clstr -clust_tool CD-HIT -original_fasta .../test_data/combined_Ensmbl_cds.fasta -gpa True -con True -w 99 -verbose True
|
|
127
117
|
```
|
|
128
118
|
|
|
129
|
-
```Calculating Groups
|
|
130
|
-
Calculating Groups
|
|
131
|
-
Gene Groups:
|
|
132
|
-
first_core_99: 3103
|
|
133
|
-
first_core_95: 0
|
|
134
|
-
first_core_15: 3217
|
|
135
|
-
first_core_0: 4808
|
|
136
|
-
Total Number of Gene Groups (Including Singletons): 11128
|
|
137
|
-
```
|
|
138
119
|
|
|
139
120
|
## Seq-Combiner: This tool is provided to enable the pre-processing of multiple GFF/FASTA files together ready to be clustered by the user
|
|
140
121
|
### Example:
|
|
@@ -145,7 +126,7 @@ Seq-Combiner -input_dir .../test_data/genomes -name_split _combined.gff3 -output
|
|
|
145
126
|
```bash
|
|
146
127
|
usage: Seq_Combiner.py [-h] -input_dir INPUT_DIR -input_type {separate,combined} -name_split NAME_SPLIT -output_dir OUTPUT_DIR -output_name OUTPUT_FILE
|
|
147
128
|
|
|
148
|
-
Seq-Combiner v0.5.
|
|
129
|
+
Seq-Combiner v0.5.2: Seq-Combiner Run Parameters.
|
|
149
130
|
|
|
150
131
|
options:
|
|
151
132
|
-h, --help show this help message and exit
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
PyamilySeq/CD-Hit_StORF-Reporter_Cross-Genera_Builder.py,sha256=UzQ5iOKCNfurxmj1pnkowF11YfWBO5vnBCKxQK6goB8,26538
|
|
2
|
-
PyamilySeq/Constants.py,sha256=
|
|
3
|
-
PyamilySeq/PyamilySeq.py,sha256=
|
|
2
|
+
PyamilySeq/Constants.py,sha256=A5pJCs_7qkEiazEOqQCfsvlKVh1Ba8EkEQfOJ24_Q2A,31
|
|
3
|
+
PyamilySeq/PyamilySeq.py,sha256=eOiWW3jIUWFID28ljyYFyB8Nnnuays5glpA5K8qYXGc,11971
|
|
4
4
|
PyamilySeq/PyamilySeq_Genus.py,sha256=JpLLu3QaahUHBe7E80xVHtFORGuyeUMOt9eiLN5uazc,31286
|
|
5
5
|
PyamilySeq/PyamilySeq_Species.py,sha256=6LHEdp6Vndoder8dlVSuyUKHdCbo5Rbxea1rnncrceY,35172
|
|
6
6
|
PyamilySeq/Seq_Combiner.py,sha256=bHEIR-MZODSGm8n69ZIN-XzEoct5WZ1kH5Xa6uKCu4Y,1972
|
|
7
7
|
PyamilySeq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
PyamilySeq/utils.py,sha256=KhEnwzgVZyUu_Q92ukRPUrVD2505xSg9NY6e75nUmPQ,6487
|
|
9
|
-
PyamilySeq-0.5.
|
|
10
|
-
PyamilySeq-0.5.
|
|
11
|
-
PyamilySeq-0.5.
|
|
12
|
-
PyamilySeq-0.5.
|
|
13
|
-
PyamilySeq-0.5.
|
|
14
|
-
PyamilySeq-0.5.
|
|
9
|
+
PyamilySeq-0.5.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
10
|
+
PyamilySeq-0.5.2.dist-info/METADATA,sha256=GEgsSru0ojf-SePFSocGGUuGKWGHE7mJ2oHOy9m3tBI,7471
|
|
11
|
+
PyamilySeq-0.5.2.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
12
|
+
PyamilySeq-0.5.2.dist-info/entry_points.txt,sha256=QtXD1tmnLvRAkIpGWZgXm1lfLH8GGeCwxmgoHZaTp98,102
|
|
13
|
+
PyamilySeq-0.5.2.dist-info/top_level.txt,sha256=J6JhugUQTq4rq96yibAlQu3o4KCM9WuYfqr3w1r119M,11
|
|
14
|
+
PyamilySeq-0.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|