Name | PyamilySeq JSON |
Version |
0.9.0
JSON |
| download |
home_page | https://github.com/NickJD/PyamilySeq |
Summary | PyamilySeq - A a tool to look for sequence-based gene groups identified by clustering methods such as CD-HIT, DIAMOND, BLAST or MMseqs2. |
upload_time | 2024-10-06 16:45:08 |
maintainer | None |
docs_url | None |
author | Nicholas Dimonaco |
requires_python | >=3.6 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyamilySeq - !BETA!
**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.
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).
## Features
- **End-to-End**: PyamilySeq can take a directory of GFF+FASTA files, run CD-HIT for clustering and process the results.
- **Clustering input**: Supports input from CD-HIT formatted files as well as CSV and TSV edge lists (MMseqs2 and -outfmt 6 from BLAST/DIAMOND).
- **Reclustering**: Allows for the addition of new sequences post-initial clustering - Ensures continuity of contemporary clustering results and highlights impact of novel gene predictions.
- **'Genus Mode'**: Unlike other 'pangenome' tools, PyamilySeq can identify gene groups found across multiple genera as unique entities (see below).
- **Output**: Generates a 'Roary/Panaroo' formatted presence-absence CSV formatted file for downstream analysis.
- User-define species-/genus-wide gene groups - User has control over grouping parameters (core = 99/95% or min 6 genera etc).
- Aligns representative sequences using MAFFT.
- Output concatenated aligned sequences for tree building.
- Optionally output sequences of each separate identified gene group.
## Installation
PyamilySeq probably requires Python 3.6 or higher. Install using pip:
```bash
pip install PyamilySeq
```
PyamilySeq is regularly updated with bugfixes and new features so to update to the newest version add '-U' to end of the pip install command.
## Example usage: Below are two examples of running PyamilySeq in its two main modes.
### 'Full Mode': Will conduct clustering of sequences with CD-HIT as part of PyamilySeq run
```
PyamilySeq -run_mode Full -group_mode Species -clustering_format CD-HIT -output_dir .../test_data/testing/Full
-input_type combined -input_dir .../test_data/genomes -name_split _combined.gff3 -pid 0.95 -len_diff 0.80 -a -w 99
```
### 'Partial Mode': Will take the output of a sequence clustering.
```
PyamilySeq -run_mode Partial -group_mode Species -clustering_format TSV -output_dir .../test_data/species/testing/Partial
-cluster_file .../test_data/species/MMseqs2/combined_Ensmbl_pep_cluster.tsv
-original_fasta .../test_data/species/combined_Ensmbl_cds.fasta -a -w 99 -verbose
```
#### Note: '-clustering_format TSV/CSV' requires input to be two in two columns as below (Same format as MMseqs2 tsv) - Genome name and sequence name are separated by '|'.
```
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_113290|ENSB:2fj4rJ8e8Z9PNdX
Escherichia_coli_110957|ENSB:lL-zIKt-gh0oSno Escherichia_coli_b185|ENSB:G_PVe28-ej8q-3S
Escherichia_coli_110957|ENSB:TIZS9kbTvShDvyX Escherichia_coli_110957|ENSB:TIZS9kbTvShDvyX
```
### Example output:
```
Running PyamilySeq v0.9.0
Calculating Groups
Gene Groups:
First_core_99: 2682
First_core_95: 0
First_core_15: 3789
First_core_0: 6469
Total Number of First Gene Groups (Including Singletons): 12940
Outputting gene_presence_absence file
Outputting gene group FASTA files
Processing gene group alignment
Thank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq
Please report any issues to: https://github.com/NickJD/PyamilySeq/issues
```
## Genus mode:
### 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.
#### Example:
```
PyamilySeq -run_mode Partial -group_mode Genus -clustering_format CD-HIT -output_dir .../test_data/genus/testing/
-cluster_file .../test_data/genus/CD-HIT/combined_cds_cd-hit_80_60.clstr -gpa
```
```commandline
Running PyamilySeq v0.9.0
Calculating Groups
Genus Groups:
First_genera_1: 28549
First_genera_2: 12
First_genera_3: 0
First_genera_>: 0
Total Number of First Gene Groups (Including Singletons): 28561
Outputting gene_presence_absence file
Thank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq
Please report any issues to: https://github.com/NickJD/PyamilySeq/issues
#####
```
## Reclustering:
### Reclustering can be used to see where additional sequences/genes lay in relation to a contemporary pangenome/gene grouping.
```
PyamilySeq -run_mode Partial -group_mode Species -clustering_format CD-HIT -output_dir .../test_data/species/CD-HIT/testing
-cluster_file .../test_data/species/CD-HIT/E-coli_extracted_cds_cd-hit_80_60.clstr -gpa
-reclustered .../test_data/species/CD-HIT/E-coli_extracted_cds_cd-hit_80_60_And_StORFs_cds_80_60.clstr
```
#### 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.
```commandline
Calculating Groups
Gene Groups:
First_core_99: 587
First_core_95: 1529
First_core_15: 3708
First_core_0: 29992
extended_core_99: 29
extended_core_95: 67
extended_core_15: 431
extended_core_0: 1331
combined_core_99: 2
combined_core_95: 4
combined_core_15: 5
combined_core_0: 4
Second_core_99: 0
Second_core_95: 6
Second_core_15: 172
Second_core_0: 1825
only_Second_core_99: 53
only_Second_core_95: 493
only_Second_core_15: 3806
only_Second_core_0: 27569
Total Number of First Gene Groups (Including Singletons): 35816
Total Number of Second Gene Groups (Including Singletons): 67728
Total Number of First Gene Groups That Had Additional Second Sequences But Not New Genomes: 136
Outputting gene_presence_absence file
Thank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq
Please report any issues to: https://github.com/NickJD/PyamilySeq/issues
#####
```
## PyamilySeq - Menu:
### PyamilySeq is separated into two main 'run modes', Full and Partial. They each have their own set of required and optional arguments.
```
Running PyamilySeq v0.9.0
usage: PyamilySeq.py [-h] -run_mode {Full,Partial} -group_mode {Species,Genus} -clustering_format {CD-HIT,TSV,CSV} -output_dir OUTPUT_DIR
[-input_type {separate,combined}] [-input_dir INPUT_DIR] [-name_split NAME_SPLIT] [-sequence_type {AA,DNA}] [-gene_ident GENE_IDENT]
[-pid PIDENT] [-len_diff LEN_DIFF] [-mem CLUSTERING_MEMORY] [-t CLUSTERING_THREADS] [-cluster_file CLUSTER_FILE]
[-reclustered RECLUSTERED] [-seq_tag SEQUENCE_TAG] [-core_groups CORE_GROUPS] [-genus_groups GENUS_GROUPS] [-w WRITE_GROUPS] [-a]
[-original_fasta ORIGINAL_FASTA] [-gpa] [-verbose] [-v]
PyamilySeq v0.9.0: A tool that groups genes into unique clusters.
options:
-h, --help show this help message and exit
Required Arguments:
-run_mode {Full,Partial}
Run Mode: Should PyamilySeq be run in "Full" or "Partial" mode?
-group_mode {Species,Genus}
Group Mode: Should PyamilySeq be run in "Species" or "Genus" mode?
-clustering_format {CD-HIT,TSV,CSV}
Clustering format to use: CD-HIT or TSV (MMseqs2, BLAST, DIAMOND) / CSV edge-list file (Node1 Node2).
-output_dir OUTPUT_DIR
Directory for all output files.
Full-Mode Arguments - Required when "-run_mode Full" is used:
-input_type {separate,combined}
Type of input files: 'separate' for separate FASTA and GFF files, 'combined' for GFF files with embedded FASTA sequences.
-input_dir INPUT_DIR Directory containing GFF/FASTA files.
-name_split NAME_SPLIT
substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').
-sequence_type {AA,DNA}
Default - DNA: Should clustering be performed in "DNA" or "AA" mode?
-gene_ident GENE_IDENT
Identifier used for extraction of sequences such as
"misc_RNA,gene,mRNA,CDS,rRNA,tRNA,tmRNA,CRISPR,ncRNA,regulatory_region,oriC,pseudo"
-pid PIDENT Default 0.95: Pident threshold for clustering.
-len_diff LEN_DIFF Default 0.80: Minimum length difference between clustered sequences - (-s) threshold for CD-HIT clustering.
Clustering Runtime Arguments - Optional when "-run_mode Full" is used:
-mem CLUSTERING_MEMORY
Default 4000: Memory to be allocated for clustering (in MBs).
-t THREADS Default 8: Threads to be allocated for clustering
and/or alignment.
Partial-Mode Arguments - Required when "-run_mode Partial" is used:
-cluster_file CLUSTER_FILE
Clustering output file containing CD-HIT, TSV or CSV Edge List
Grouping Arguments - Use to fine-tune grouping of genes after clustering:
-reclustered RECLUSTERED
Currently only works on Partial Mode: Clustering output file from secondary round of clustering.
-seq_tag SEQUENCE_TAG
Default - "StORF": Unique identifier to be used to distinguish the second of two rounds of clustered sequences
-core_groups CORE_GROUPS
Default - ('99,95,15'): Gene family groups to use for "Species" mode
-genus_groups GENUS_GROUPS
Default - ('1,2,3,4,5,6'): Gene family groups to use for "Genus" mode
Output Parameters:
-w WRITE_GROUPS Default - No output: Output sequences of identified groups (provide levels at which to output - Species "-w 99,95" Genus "-w 2,3" -
Must provide FASTA file with -original_fasta if in Partial run mode.
-a Default - No output: SLOW! (Only works for Species mode) Output aligned and concatinated sequences of identified groups -provide
group levels at which to output "-w 99,95" - Must provide FASTA file with -original_fasta in Partialrun mode.
-original_fasta ORIGINAL_FASTA
FASTA file to use in conjunction with "-w" or "-con" when running in Partial Mode.
-no_gpa Do not create a Roary/Panaroo formatted gene_presence_absence.csv (created by default) - Required for Coinfinder and other
downstream tools
Misc Parameters:
-verbose Print verbose output.
-v, --version Print out version number and exit
```
## Seq-Combiner: This tool is provided to enable the pre-processing of multiple GFF/FASTA files together ready to be clustered by the user.
### Example:
```bash
Seq-Combiner -input_dir .../test_data/genomes -name_split .gff3 -output_dir .../test_data/genomes -output_name combine_fasta_seqs.fa -input_type combined
```
### Seq-Combiner Menu:
```
usage: Seq_Combiner.py [-h] -input_dir INPUT_DIR -input_type {separate,combined,fasta} -name_split NAME_SPLIT -output_dir OUTPUT_DIR -output_name
OUTPUT_FILE [-gene_ident GENE_IDENT] [-translate] [-v]
PyamilySeq v0.9.0: Seq-Combiner - A tool to extract sequences from GFF/FASTA files and prepare them for PyamilySeq.
options:
-h, --help show this help message and exit
Required Arguments:
-input_dir INPUT_DIR Directory location where the files are located.
-input_type {separate,combined,fasta}
Type of input files: "separate" for separate FASTA and GFF files, "combined" for GFF files with embedded FASTA sequences and "fasta"
for combining multiple FASTA files together.
-name_split NAME_SPLIT
substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').
-output_dir OUTPUT_DIR
Directory for all output files.
-output_name OUTPUT_FILE
Output file name.
Optional Arguments:
-gene_ident GENE_IDENT
Default - "CDS": Identifier used for extraction of sequences such as
"misc_RNA,gene,mRNA,CDS,rRNA,tRNA,tmRNA,CRISPR,ncRNA,regulatory_region,oriC,pseudo" - Not compatible with "fasta" input mode.
-translate Default - False: Translate extracted sequences to their AA counterpart?
Misc Arguments:
-v, --version Print out version number and exit
```
## Group-Splitter: This tool can split multi-copy gene groups using CD-HIT after initial PyamilySeq analysis.
### Example:
```bash
Group-Splitter -genome_num 74 -input_fasta .../test/species/ -output_dir .../test/species/ -sequence_type AA
```
### Group-Splitter Menu:
```
usage: Group_Splitter.py [-h] -input_fasta INPUT_FASTA -sequence_type {AA,DNA}
-genome_num GENOME_NUM -output_dir OUTPUT_DIR
[-groups GROUPS] [-group_threshold GROUP_THRESHOLD]
[-c PIDENT] [-s LEN_DIFF] [-T CLUSTERING_THREADS]
[-M CLUSTERING_MEMORY] [-no_delete_temp_files]
[-verbose] [-v]
PyamilySeq v0.9.0: Group-Splitter - A tool to split multi-copy gene groups
identified by PyamilySeq.
options:
-h, --help show this help message and exit
Required Parameters:
-input_fasta INPUT_FASTA
Input FASTA file containing gene groups.
-sequence_type {AA,DNA}
Default - DNA: Are groups "DNA" or "AA" sequences?
-genome_num GENOME_NUM
The total number of genomes must be provide
-output_dir OUTPUT_DIR
Output directory.
Regrouping Parameters:
-groups GROUPS Default - auto: Detect groups to be split (see
-group_threshold). Provide "-groups 1,2,3,4" with
group IDs to split specific groups.
-group_threshold GROUP_THRESHOLD
Minimum percentage of genomes with multi-copy
(default: 80.0) - Does not work with "-groups"
CD-HIT Reclustering Parameters:
-c PIDENT Sequence identity threshold (default: 0.8) - Probably
should be higher than what was used in initial
clustering.
-s LEN_DIFF Length difference cutoff (default: 0.20) - Often the
most impactful parameter to split 'multi-copy' gene
groups.
-T CLUSTERING_THREADS
Number of threads for clustering (default: 4)
-M CLUSTERING_MEMORY Memory limit in MB for clustering (default: 2000)
Misc Parameters:
-no_delete_temp_files
Default: Delete all temporary files after processing.
-verbose Print verbose output.
-v, --version Print out version number and exit
```
## Cluster-Summary menu: This tool can be used to summarise CD-HIT .clstr files:
### Example:
```bash
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
```
### Cluster-Summary Menu:
```
usage: Cluster_Summary.py [-h] -input_clstr INPUT_CLSTR -output OUTPUT -genome_num GENOME_NUM
[-output_dir OUTPUT_DIR] [-verbose] [-v]
PyamilySeq v0.9.0: Cluster-Summary - A tool to summarise CD-HIT clustering files.
options:
-h, --help show this help message and exit
Required Parameters:
-input_clstr INPUT_CLSTR
Input CD-HIT .clstr file
-output OUTPUT Output TSV file to store cluster summaries - Will add '.tsv' if not
provided by user
-genome_num GENOME_NUM
The total number of genomes must be provide
Optional Arguments:
-output_dir OUTPUT_DIR
Default: Same as input file
Misc Parameters:
-verbose Print verbose output.
-v, --version Print out version number and exit
```
### All example input and output data can be found in the 'test_data' directory.
Raw data
{
"_id": null,
"home_page": "https://github.com/NickJD/PyamilySeq",
"name": "PyamilySeq",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Nicholas Dimonaco",
"author_email": "nicholas@dimonaco.co.uk",
"download_url": "https://files.pythonhosted.org/packages/89/1c/767b879cc2202f32b52429ec6fa47fdddb2123fbbbe1c3d0214c897a62fb/pyamilyseq-0.9.0.tar.gz",
"platform": null,
"description": "# PyamilySeq - !BETA!\n**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.\nThis 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).\n\n## Features\n- **End-to-End**: PyamilySeq can take a directory of GFF+FASTA files, run CD-HIT for clustering and process the results.\n- **Clustering input**: Supports input from CD-HIT formatted files as well as CSV and TSV edge lists (MMseqs2 and -outfmt 6 from BLAST/DIAMOND).\n- **Reclustering**: Allows for the addition of new sequences post-initial clustering - Ensures continuity of contemporary clustering results and highlights impact of novel gene predictions.\n- **'Genus Mode'**: Unlike other 'pangenome' tools, PyamilySeq can identify gene groups found across multiple genera as unique entities (see below). \n- **Output**: Generates a 'Roary/Panaroo' formatted presence-absence CSV formatted file for downstream analysis.\n - User-define species-/genus-wide gene groups - User has control over grouping parameters (core = 99/95% or min 6 genera etc).\n - Aligns representative sequences using MAFFT.\n - Output concatenated aligned sequences for tree building.\n - Optionally output sequences of each separate identified gene group.\n\n## Installation\nPyamilySeq probably requires Python 3.6 or higher. Install using pip:\n\n```bash\npip install PyamilySeq\n```\nPyamilySeq is regularly updated with bugfixes and new features so to update to the newest version add '-U' to end of the pip install command.\n## Example usage: Below are two examples of running PyamilySeq in its two main modes.\n### 'Full Mode': Will conduct clustering of sequences with CD-HIT as part of PyamilySeq run\n```\nPyamilySeq -run_mode Full -group_mode Species -clustering_format CD-HIT -output_dir .../test_data/testing/Full \n-input_type combined -input_dir .../test_data/genomes -name_split _combined.gff3 -pid 0.95 -len_diff 0.80 -a -w 99\n```\n### 'Partial Mode': Will take the output of a sequence clustering.\n```\nPyamilySeq -run_mode Partial -group_mode Species -clustering_format TSV -output_dir .../test_data/species/testing/Partial \n-cluster_file .../test_data/species/MMseqs2/combined_Ensmbl_pep_cluster.tsv \n-original_fasta .../test_data/species/combined_Ensmbl_cds.fasta -a -w 99 -verbose \n\n```\n#### Note: '-clustering_format TSV/CSV' requires input to be two in two columns as below (Same format as MMseqs2 tsv) - Genome name and sequence name are separated by '|'.\n```\nEscherichia_coli_110957|ENSB:lL-zIKt-gh0oSno\tEscherichia_coli_110957|ENSB:lL-zIKt-gh0oSno\nEscherichia_coli_110957|ENSB:lL-zIKt-gh0oSno\tEscherichia_coli_113290|ENSB:2fj4rJ8e8Z9PNdX\nEscherichia_coli_110957|ENSB:lL-zIKt-gh0oSno\tEscherichia_coli_b185|ENSB:G_PVe28-ej8q-3S\nEscherichia_coli_110957|ENSB:TIZS9kbTvShDvyX\tEscherichia_coli_110957|ENSB:TIZS9kbTvShDvyX\n```\n### Example output:\n```\nRunning PyamilySeq v0.9.0\nCalculating Groups\nGene Groups:\nFirst_core_99: 2682\nFirst_core_95: 0\nFirst_core_15: 3789\nFirst_core_0: 6469\nTotal Number of First Gene Groups (Including Singletons): 12940\nOutputting gene_presence_absence file\nOutputting gene group FASTA files\nProcessing gene group alignment\nThank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq\nPlease report any issues to: https://github.com/NickJD/PyamilySeq/issues\n```\n## Genus mode: \n### 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.\n#### Example:\n```\nPyamilySeq -run_mode Partial -group_mode Genus -clustering_format CD-HIT -output_dir .../test_data/genus/testing/\n -cluster_file .../test_data/genus/CD-HIT/combined_cds_cd-hit_80_60.clstr -gpa \n```\n```commandline\nRunning PyamilySeq v0.9.0\nCalculating Groups\nGenus Groups:\nFirst_genera_1:\t28549\nFirst_genera_2:\t12\nFirst_genera_3:\t0\nFirst_genera_>:\t0\nTotal Number of First Gene Groups (Including Singletons): 28561\nOutputting gene_presence_absence file\nThank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq\nPlease report any issues to: https://github.com/NickJD/PyamilySeq/issues\n#####\n```\n\n## Reclustering:\n### Reclustering can be used to see where additional sequences/genes lay in relation to a contemporary pangenome/gene grouping.\n```\nPyamilySeq -run_mode Partial -group_mode Species -clustering_format CD-HIT -output_dir .../test_data/species/CD-HIT/testing \n-cluster_file .../test_data/species/CD-HIT/E-coli_extracted_cds_cd-hit_80_60.clstr -gpa \n-reclustered .../test_data/species/CD-HIT/E-coli_extracted_cds_cd-hit_80_60_And_StORFs_cds_80_60.clstr\n```\n#### 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. \n```commandline\nCalculating Groups\nGene Groups:\nFirst_core_99: 587\nFirst_core_95: 1529\nFirst_core_15: 3708\nFirst_core_0: 29992\nextended_core_99: 29\nextended_core_95: 67\nextended_core_15: 431\nextended_core_0: 1331\ncombined_core_99: 2\ncombined_core_95: 4\ncombined_core_15: 5\ncombined_core_0: 4\nSecond_core_99: 0\nSecond_core_95: 6\nSecond_core_15: 172\nSecond_core_0: 1825\nonly_Second_core_99: 53\nonly_Second_core_95: 493\nonly_Second_core_15: 3806\nonly_Second_core_0: 27569\nTotal Number of First Gene Groups (Including Singletons): 35816\nTotal Number of Second Gene Groups (Including Singletons): 67728\nTotal Number of First Gene Groups That Had Additional Second Sequences But Not New Genomes: 136\nOutputting gene_presence_absence file\nThank you for using PyamilySeq -- A detailed user manual can be found at https://github.com/NickJD/PyamilySeq\nPlease report any issues to: https://github.com/NickJD/PyamilySeq/issues\n#####\n```\n\n## PyamilySeq - Menu: \n### PyamilySeq is separated into two main 'run modes', Full and Partial. They each have their own set of required and optional arguments. \n```\nRunning PyamilySeq v0.9.0\nusage: PyamilySeq.py [-h] -run_mode {Full,Partial} -group_mode {Species,Genus} -clustering_format {CD-HIT,TSV,CSV} -output_dir OUTPUT_DIR\n [-input_type {separate,combined}] [-input_dir INPUT_DIR] [-name_split NAME_SPLIT] [-sequence_type {AA,DNA}] [-gene_ident GENE_IDENT]\n [-pid PIDENT] [-len_diff LEN_DIFF] [-mem CLUSTERING_MEMORY] [-t CLUSTERING_THREADS] [-cluster_file CLUSTER_FILE]\n [-reclustered RECLUSTERED] [-seq_tag SEQUENCE_TAG] [-core_groups CORE_GROUPS] [-genus_groups GENUS_GROUPS] [-w WRITE_GROUPS] [-a]\n [-original_fasta ORIGINAL_FASTA] [-gpa] [-verbose] [-v]\n\nPyamilySeq v0.9.0: A tool that groups genes into unique clusters.\n\noptions:\n -h, --help show this help message and exit\n\nRequired Arguments:\n -run_mode {Full,Partial}\n Run Mode: Should PyamilySeq be run in \"Full\" or \"Partial\" mode?\n -group_mode {Species,Genus}\n Group Mode: Should PyamilySeq be run in \"Species\" or \"Genus\" mode?\n -clustering_format {CD-HIT,TSV,CSV}\n Clustering format to use: CD-HIT or TSV (MMseqs2, BLAST, DIAMOND) / CSV edge-list file (Node1 Node2).\n -output_dir OUTPUT_DIR\n Directory for all output files.\n\nFull-Mode Arguments - Required when \"-run_mode Full\" is used:\n -input_type {separate,combined}\n Type of input files: 'separate' for separate FASTA and GFF files, 'combined' for GFF files with embedded FASTA sequences.\n -input_dir INPUT_DIR Directory containing GFF/FASTA files.\n -name_split NAME_SPLIT\n substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').\n -sequence_type {AA,DNA}\n Default - DNA: Should clustering be performed in \"DNA\" or \"AA\" mode?\n -gene_ident GENE_IDENT\n Identifier used for extraction of sequences such as\n \"misc_RNA,gene,mRNA,CDS,rRNA,tRNA,tmRNA,CRISPR,ncRNA,regulatory_region,oriC,pseudo\"\n -pid PIDENT Default 0.95: Pident threshold for clustering.\n -len_diff LEN_DIFF Default 0.80: Minimum length difference between clustered sequences - (-s) threshold for CD-HIT clustering.\n\nClustering Runtime Arguments - Optional when \"-run_mode Full\" is used:\n -mem CLUSTERING_MEMORY\n Default 4000: Memory to be allocated for clustering (in MBs).\n -t THREADS Default 8: Threads to be allocated for clustering\n and/or alignment.\n\n\nPartial-Mode Arguments - Required when \"-run_mode Partial\" is used:\n -cluster_file CLUSTER_FILE\n Clustering output file containing CD-HIT, TSV or CSV Edge List\n\nGrouping Arguments - Use to fine-tune grouping of genes after clustering:\n -reclustered RECLUSTERED\n Currently only works on Partial Mode: Clustering output file from secondary round of clustering.\n -seq_tag SEQUENCE_TAG\n Default - \"StORF\": Unique identifier to be used to distinguish the second of two rounds of clustered sequences\n -core_groups CORE_GROUPS\n Default - ('99,95,15'): Gene family groups to use for \"Species\" mode\n -genus_groups GENUS_GROUPS\n Default - ('1,2,3,4,5,6'): Gene family groups to use for \"Genus\" mode\n\nOutput Parameters:\n -w WRITE_GROUPS Default - No output: Output sequences of identified groups (provide levels at which to output - Species \"-w 99,95\" Genus \"-w 2,3\" -\n Must provide FASTA file with -original_fasta if in Partial run mode.\n -a Default - No output: SLOW! (Only works for Species mode) Output aligned and concatinated sequences of identified groups -provide\n group levels at which to output \"-w 99,95\" - Must provide FASTA file with -original_fasta in Partialrun mode.\n -original_fasta ORIGINAL_FASTA\n FASTA file to use in conjunction with \"-w\" or \"-con\" when running in Partial Mode.\n -no_gpa Do not create a Roary/Panaroo formatted gene_presence_absence.csv (created by default) - Required for Coinfinder and other\n downstream tools\n\nMisc Parameters:\n -verbose Print verbose output.\n -v, --version Print out version number and exit\n\n```\n\n\n\n\n\n## Seq-Combiner: This tool is provided to enable the pre-processing of multiple GFF/FASTA files together ready to be clustered by the user.\n### Example:\n```bash\nSeq-Combiner -input_dir .../test_data/genomes -name_split .gff3 -output_dir .../test_data/genomes -output_name combine_fasta_seqs.fa -input_type combined\n```\n### Seq-Combiner Menu:\n```\nusage: Seq_Combiner.py [-h] -input_dir INPUT_DIR -input_type {separate,combined,fasta} -name_split NAME_SPLIT -output_dir OUTPUT_DIR -output_name\n OUTPUT_FILE [-gene_ident GENE_IDENT] [-translate] [-v]\n\nPyamilySeq v0.9.0: Seq-Combiner - A tool to extract sequences from GFF/FASTA files and prepare them for PyamilySeq.\n\noptions:\n -h, --help show this help message and exit\n\nRequired Arguments:\n -input_dir INPUT_DIR Directory location where the files are located.\n -input_type {separate,combined,fasta}\n Type of input files: \"separate\" for separate FASTA and GFF files, \"combined\" for GFF files with embedded FASTA sequences and \"fasta\"\n for combining multiple FASTA files together.\n -name_split NAME_SPLIT\n substring used to split the filename and extract the genome name ('_combined.gff3' or '.gff').\n -output_dir OUTPUT_DIR\n Directory for all output files.\n -output_name OUTPUT_FILE\n Output file name.\n\nOptional Arguments:\n -gene_ident GENE_IDENT\n Default - \"CDS\": Identifier used for extraction of sequences such as\n \"misc_RNA,gene,mRNA,CDS,rRNA,tRNA,tmRNA,CRISPR,ncRNA,regulatory_region,oriC,pseudo\" - Not compatible with \"fasta\" input mode.\n -translate Default - False: Translate extracted sequences to their AA counterpart?\n\nMisc Arguments:\n -v, --version Print out version number and exit\n\n```\n\n## Group-Splitter: This tool can split multi-copy gene groups using CD-HIT after initial PyamilySeq analysis.\n### Example:\n```bash\nGroup-Splitter -genome_num 74 -input_fasta .../test/species/ -output_dir .../test/species/ -sequence_type AA\n```\n### Group-Splitter Menu:\n```\nusage: Group_Splitter.py [-h] -input_fasta INPUT_FASTA -sequence_type {AA,DNA}\n -genome_num GENOME_NUM -output_dir OUTPUT_DIR\n [-groups GROUPS] [-group_threshold GROUP_THRESHOLD]\n [-c PIDENT] [-s LEN_DIFF] [-T CLUSTERING_THREADS]\n [-M CLUSTERING_MEMORY] [-no_delete_temp_files]\n [-verbose] [-v]\n\nPyamilySeq v0.9.0: Group-Splitter - A tool to split multi-copy gene groups\nidentified by PyamilySeq.\n\noptions:\n -h, --help show this help message and exit\n\nRequired Parameters:\n -input_fasta INPUT_FASTA\n Input FASTA file containing gene groups.\n -sequence_type {AA,DNA}\n Default - DNA: Are groups \"DNA\" or \"AA\" sequences?\n -genome_num GENOME_NUM\n The total number of genomes must be provide\n -output_dir OUTPUT_DIR\n Output directory.\n\nRegrouping Parameters:\n -groups GROUPS Default - auto: Detect groups to be split (see\n -group_threshold). Provide \"-groups 1,2,3,4\" with\n group IDs to split specific groups.\n -group_threshold GROUP_THRESHOLD\n Minimum percentage of genomes with multi-copy\n (default: 80.0) - Does not work with \"-groups\"\n\nCD-HIT Reclustering Parameters:\n -c PIDENT Sequence identity threshold (default: 0.8) - Probably\n should be higher than what was used in initial\n clustering.\n -s LEN_DIFF Length difference cutoff (default: 0.20) - Often the\n most impactful parameter to split 'multi-copy' gene\n groups.\n -T CLUSTERING_THREADS\n Number of threads for clustering (default: 4)\n -M CLUSTERING_MEMORY Memory limit in MB for clustering (default: 2000)\n\nMisc Parameters:\n -no_delete_temp_files\n Default: Delete all temporary files after processing.\n -verbose Print verbose output.\n -v, --version Print out version number and exit\n\n```\n\n## Cluster-Summary menu: This tool can be used to summarise CD-HIT .clstr files:\n### Example:\n```bash\nCluster-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\n```\n### Cluster-Summary Menu: \n```\nusage: Cluster_Summary.py [-h] -input_clstr INPUT_CLSTR -output OUTPUT -genome_num GENOME_NUM\n [-output_dir OUTPUT_DIR] [-verbose] [-v]\n\nPyamilySeq v0.9.0: Cluster-Summary - A tool to summarise CD-HIT clustering files.\n\noptions:\n -h, --help show this help message and exit\n\nRequired Parameters:\n -input_clstr INPUT_CLSTR\n Input CD-HIT .clstr file\n -output OUTPUT Output TSV file to store cluster summaries - Will add '.tsv' if not\n provided by user\n -genome_num GENOME_NUM\n The total number of genomes must be provide\n\nOptional Arguments:\n -output_dir OUTPUT_DIR\n Default: Same as input file\n\nMisc Parameters:\n -verbose Print verbose output.\n -v, --version Print out version number and exit\n\n```\n\n### All example input and output data can be found in the 'test_data' directory.\n",
"bugtrack_url": null,
"license": null,
"summary": "PyamilySeq - A a tool to look for sequence-based gene groups identified by clustering methods such as CD-HIT, DIAMOND, BLAST or MMseqs2.",
"version": "0.9.0",
"project_urls": {
"Bug Tracker": "https://github.com/NickJD/PyamilySeq/issues",
"Homepage": "https://github.com/NickJD/PyamilySeq"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c865c959e90e158eb676e14ed503eac3dd61348a4f7c506cda7cf1e8b24b5ff0",
"md5": "20d4fa70dd778833a553e8c178711629",
"sha256": "c73273191550d4fbf16a01fff714ed243d1a0e465fb5382976fdae3f8baf30c4"
},
"downloads": -1,
"filename": "PyamilySeq-0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "20d4fa70dd778833a553e8c178711629",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 44537,
"upload_time": "2024-10-06T16:45:05",
"upload_time_iso_8601": "2024-10-06T16:45:05.889167Z",
"url": "https://files.pythonhosted.org/packages/c8/65/c959e90e158eb676e14ed503eac3dd61348a4f7c506cda7cf1e8b24b5ff0/PyamilySeq-0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "891c767b879cc2202f32b52429ec6fa47fdddb2123fbbbe1c3d0214c897a62fb",
"md5": "e8b8d5a9051042e569d7261f7dd122e1",
"sha256": "087b2e04e44bc62e5e9f5dd269458bf5b8466b267be5e871c9b14335a6088582"
},
"downloads": -1,
"filename": "pyamilyseq-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "e8b8d5a9051042e569d7261f7dd122e1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 42887,
"upload_time": "2024-10-06T16:45:08",
"upload_time_iso_8601": "2024-10-06T16:45:08.360024Z",
"url": "https://files.pythonhosted.org/packages/89/1c/767b879cc2202f32b52429ec6fa47fdddb2123fbbbe1c3d0214c897a62fb/pyamilyseq-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-06 16:45:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NickJD",
"github_project": "PyamilySeq",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyamilyseq"
}