ORForise 1.6.4__tar.gz → 1.6.5__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.
Files changed (77) hide show
  1. {orforise-1.6.4 → orforise-1.6.5}/PKG-INFO +7 -7
  2. {orforise-1.6.4 → orforise-1.6.5}/README.md +6 -6
  3. {orforise-1.6.4 → orforise-1.6.5}/pyproject.toml +1 -1
  4. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Convert_To_GFF.py +34 -7
  5. {orforise-1.6.4/src/ORForise/Aux → orforise-1.6.5/src/ORForise/Tools}/TabToGFF/TabToGFF.py +72 -0
  6. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/utils.py +1 -1
  7. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise.egg-info/PKG-INFO +7 -7
  8. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise.egg-info/SOURCES.txt +2 -2
  9. {orforise-1.6.4 → orforise-1.6.5}/LICENSE +0 -0
  10. {orforise-1.6.4 → orforise-1.6.5}/setup.cfg +0 -0
  11. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aggregate_Compare.py +0 -0
  12. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Annotation_Compare.py +0 -0
  13. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Annotation_Intersector.py +0 -0
  14. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/Completely_Undetected/Completey_Undetected.py +0 -0
  15. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/Completely_Undetected/__init__.py +0 -0
  16. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/StORF_Undetected.py +0 -0
  17. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/__init__.py +0 -0
  18. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/unvitiated_Genes/__init__.py +0 -0
  19. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Aux/StORF_Undetected/unvitiated_Genes/unvitiated_Missed_Genes.py +0 -0
  20. {orforise-1.6.4/src/ORForise/Aux/TabToGFF → orforise-1.6.5/src/ORForise/Aux}/__init__.py +0 -0
  21. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Comparator.py +0 -0
  22. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/GFF_Adder.py +0 -0
  23. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/List_Tools.py +0 -0
  24. {orforise-1.6.4/src/ORForise/Aux → orforise-1.6.5/src/ORForise/ORForise_Analysis}/__init__.py +0 -0
  25. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/cds_checker.py +0 -0
  26. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/gene_Lenghts.py +0 -0
  27. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/genome_Metrics.py +0 -0
  28. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/hypothetical_gene_predictions.py +0 -0
  29. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/missed_Gene_Metrics.py +0 -0
  30. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/parital_Match_Analysis.py +0 -0
  31. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/result_File_Analysis.py +0 -0
  32. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/ORForise_Analysis/start_Codon_Substitution.py +0 -0
  33. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/StORForise.py +0 -0
  34. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/Augustus/Augustus.py +0 -0
  35. {orforise-1.6.4/src/ORForise/ORForise_Analysis → orforise-1.6.5/src/ORForise/Tools/Augustus}/__init__.py +0 -0
  36. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/Balrog/Balrog.py +0 -0
  37. {orforise-1.6.4/src/ORForise/Tools/Augustus → orforise-1.6.5/src/ORForise/Tools/Balrog}/__init__.py +0 -0
  38. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/EasyGene/EasyGene.py +0 -0
  39. {orforise-1.6.4/src/ORForise/Tools/Balrog → orforise-1.6.5/src/ORForise/Tools/EasyGene}/__init__.py +0 -0
  40. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/FGENESB/FGENESB.py +0 -0
  41. {orforise-1.6.4/src/ORForise/Tools/EasyGene → orforise-1.6.5/src/ORForise/Tools/FGENESB}/__init__.py +0 -0
  42. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/FragGeneScan/FragGeneScan.py +0 -0
  43. {orforise-1.6.4/src/ORForise/Tools/FGENESB → orforise-1.6.5/src/ORForise/Tools/FragGeneScan}/__init__.py +0 -0
  44. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GFF/GFF.py +0 -0
  45. {orforise-1.6.4/src/ORForise/Tools/FragGeneScan → orforise-1.6.5/src/ORForise/Tools/GFF}/__init__.py +0 -0
  46. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GLIMMER3/GLIMMER3.py +0 -0
  47. {orforise-1.6.4/src/ORForise/Tools/GFF → orforise-1.6.5/src/ORForise/Tools/GLIMMER3}/__init__.py +0 -0
  48. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GeneMark/GeneMark.py +0 -0
  49. {orforise-1.6.4/src/ORForise/Tools/GLIMMER3 → orforise-1.6.5/src/ORForise/Tools/GeneMark}/__init__.py +0 -0
  50. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GeneMarkHA/GeneMarkHA.py +0 -0
  51. {orforise-1.6.4/src/ORForise/Tools/GeneMark → orforise-1.6.5/src/ORForise/Tools/GeneMarkHA}/__init__.py +0 -0
  52. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GeneMarkHMM/GeneMarkHMM.py +0 -0
  53. {orforise-1.6.4/src/ORForise/Tools/GeneMarkHA → orforise-1.6.5/src/ORForise/Tools/GeneMarkHMM}/__init__.py +0 -0
  54. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GeneMarkS/GeneMarkS.py +0 -0
  55. {orforise-1.6.4/src/ORForise/Tools/GeneMarkHMM → orforise-1.6.5/src/ORForise/Tools/GeneMarkS}/__init__.py +0 -0
  56. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/GeneMarkS2/GeneMarkS2.py +0 -0
  57. {orforise-1.6.4/src/ORForise/Tools/GeneMarkS → orforise-1.6.5/src/ORForise/Tools/GeneMarkS2}/__init__.py +0 -0
  58. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/MetaGene/MetaGene.py +0 -0
  59. {orforise-1.6.4/src/ORForise/Tools/GeneMarkS2 → orforise-1.6.5/src/ORForise/Tools/MetaGene}/__init__.py +0 -0
  60. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/MetaGeneAnnotator/MetaGeneAnnotator.py +0 -0
  61. {orforise-1.6.4/src/ORForise/Tools/MetaGene → orforise-1.6.5/src/ORForise/Tools/MetaGeneAnnotator}/__init__.py +0 -0
  62. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/MetaGeneMark/MetaGeneMark.py +0 -0
  63. {orforise-1.6.4/src/ORForise/Tools/MetaGeneAnnotator → orforise-1.6.5/src/ORForise/Tools/MetaGeneMark}/__init__.py +0 -0
  64. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/Prodigal/Prodigal.py +0 -0
  65. {orforise-1.6.4/src/ORForise/Tools/MetaGeneMark → orforise-1.6.5/src/ORForise/Tools/Prodigal}/__init__.py +0 -0
  66. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/Prokka/Prokka.py +0 -0
  67. {orforise-1.6.4/src/ORForise/Tools/Prodigal → orforise-1.6.5/src/ORForise/Tools/Prokka}/__init__.py +0 -0
  68. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/StORF-Reporter/StORF-Reporter.py +0 -0
  69. {orforise-1.6.4/src/ORForise/Tools/Prokka → orforise-1.6.5/src/ORForise/Tools/StORF-Reporter}/__init__.py +0 -0
  70. {orforise-1.6.4/src/ORForise/Tools/StORF-Reporter → orforise-1.6.5/src/ORForise/Tools/TabToGFF}/__init__.py +0 -0
  71. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/TransDecoder/TransDecoder.py +0 -0
  72. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/TransDecoder/__init__.py +0 -0
  73. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/Tools/__init__.py +0 -0
  74. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise/__init__.py +0 -0
  75. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise.egg-info/dependency_links.txt +0 -0
  76. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise.egg-info/entry_points.txt +0 -0
  77. {orforise-1.6.4 → orforise-1.6.5}/src/ORForise.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ORForise
3
- Version: 1.6.4
3
+ Version: 1.6.5
4
4
  Summary: ORForise - A platform for analysing and comparing genome annotations.
5
5
  Author-email: Nicholas Dimonaco <nicholas@dimonaco.co.uk>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -662,7 +662,7 @@ Example output files from ```Annotation-Compare```, ```Aggregate-Compare```, ```
662
662
  For Help: ```Annotation-Compare -h ```
663
663
 
664
664
  ```python
665
- ORForise v1.6.4: Annotatione-Compare Run Parameters.
665
+ ORForise v1.6.5: Annotatione-Compare Run Parameters.
666
666
 
667
667
  Required Arguments:
668
668
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -730,7 +730,7 @@ ORForise can be used as the example below.
730
730
  For Help: ```Aggregate-Compare -h ```
731
731
 
732
732
  ```python
733
- ORForise v1.6.4: Aggregate-Compare Run Parameters.
733
+ ORForise v1.6.5: Aggregate-Compare Run Parameters.
734
734
 
735
735
  Required Arguments:
736
736
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -811,7 +811,7 @@ GFF-Adder combines two existing annotations (GFF or other tool formats).
811
811
  For Help: ```GFF-Adder -h ```
812
812
 
813
813
  ```python
814
- ORForise v1.6.4: GFF-Adder Run Parameters.
814
+ ORForise v1.6.5: GFF-Adder Run Parameters.
815
815
 
816
816
  Required Arguments:
817
817
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -868,7 +868,7 @@ usage: Annotation_Intersector.py [-h] -ref REFERENCE_ANNOTATION -at
868
868
  [-cov COVERAGE] [--report-discordance]
869
869
  [--report-discordance-file REPORT_DISCORDANCE_FILE]
870
870
 
871
- ORForise v1.6.4: Annotation-Intersector Run Parameters
871
+ ORForise v1.6.5: Annotation-Intersector Run Parameters
872
872
 
873
873
  options:
874
874
  -h, --help show this help message and exit
@@ -939,7 +939,7 @@ Chromosome EasyGene CDS 70378 71265 . . . Status=found_in_additional_but_below_c
939
939
 
940
940
  ```
941
941
 
942
- #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses.
942
+ #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses (BETA!!!).
943
943
  For Help: ```Convert_To_GFF.py -h ```
944
944
  ```
945
945
  Thank you for using ORForise
@@ -947,7 +947,7 @@ Please report any issues to: https://github.com/NickJD/ORForise/issues
947
947
  #####
948
948
  usage: Convert_To_GFF.py [-h] [-dna GENOME_DNA] -i INPUT_ANNOTATION -fmt FORMAT -o OUTPUT_DIR [-gi GENE_IDENT] [--verbose]
949
949
 
950
- ORForise v1.6.4: Convert-To-GFF Run Parameters
950
+ ORForise v1.6.5: Convert-To-GFF Run Parameters
951
951
 
952
952
  Required Arguments:
953
953
  -dna GENOME_DNA Genome DNA file (.fa)
@@ -21,7 +21,7 @@ Example output files from ```Annotation-Compare```, ```Aggregate-Compare```, ```
21
21
  For Help: ```Annotation-Compare -h ```
22
22
 
23
23
  ```python
24
- ORForise v1.6.4: Annotatione-Compare Run Parameters.
24
+ ORForise v1.6.5: Annotatione-Compare Run Parameters.
25
25
 
26
26
  Required Arguments:
27
27
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -89,7 +89,7 @@ ORForise can be used as the example below.
89
89
  For Help: ```Aggregate-Compare -h ```
90
90
 
91
91
  ```python
92
- ORForise v1.6.4: Aggregate-Compare Run Parameters.
92
+ ORForise v1.6.5: Aggregate-Compare Run Parameters.
93
93
 
94
94
  Required Arguments:
95
95
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -170,7 +170,7 @@ GFF-Adder combines two existing annotations (GFF or other tool formats).
170
170
  For Help: ```GFF-Adder -h ```
171
171
 
172
172
  ```python
173
- ORForise v1.6.4: GFF-Adder Run Parameters.
173
+ ORForise v1.6.5: GFF-Adder Run Parameters.
174
174
 
175
175
  Required Arguments:
176
176
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -227,7 +227,7 @@ usage: Annotation_Intersector.py [-h] -ref REFERENCE_ANNOTATION -at
227
227
  [-cov COVERAGE] [--report-discordance]
228
228
  [--report-discordance-file REPORT_DISCORDANCE_FILE]
229
229
 
230
- ORForise v1.6.4: Annotation-Intersector Run Parameters
230
+ ORForise v1.6.5: Annotation-Intersector Run Parameters
231
231
 
232
232
  options:
233
233
  -h, --help show this help message and exit
@@ -298,7 +298,7 @@ Chromosome EasyGene CDS 70378 71265 . . . Status=found_in_additional_but_below_c
298
298
 
299
299
  ```
300
300
 
301
- #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses.
301
+ #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses (BETA!!!).
302
302
  For Help: ```Convert_To_GFF.py -h ```
303
303
  ```
304
304
  Thank you for using ORForise
@@ -306,7 +306,7 @@ Please report any issues to: https://github.com/NickJD/ORForise/issues
306
306
  #####
307
307
  usage: Convert_To_GFF.py [-h] [-dna GENOME_DNA] -i INPUT_ANNOTATION -fmt FORMAT -o OUTPUT_DIR [-gi GENE_IDENT] [--verbose]
308
308
 
309
- ORForise v1.6.4: Convert-To-GFF Run Parameters
309
+ ORForise v1.6.5: Convert-To-GFF Run Parameters
310
310
 
311
311
  Required Arguments:
312
312
  -dna GENOME_DNA Genome DNA file (.fa)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ORForise"
7
- version = "1.6.4"
7
+ version = "1.6.5"
8
8
  authors = [
9
9
  {name = "Nicholas Dimonaco", email = "nicholas@dimonaco.co.uk"}
10
10
  ]
@@ -4,13 +4,13 @@ from datetime import datetime
4
4
  import os
5
5
  import sys
6
6
 
7
+
7
8
  try:
8
9
  from .utils import *
9
- from .Aux.TabToGFF.TabToGFF import TabToGFF
10
+ from .Tools.TabToGFF.TabToGFF import TabToGFF
10
11
  except (ImportError, ModuleNotFoundError):
11
12
  from utils import *
12
- from ORForise.src.ORForise.Aux.TabToGFF import TabToGFF
13
-
13
+ from Tools.TabToGFF.TabToGFF import TabToGFF
14
14
 
15
15
 
16
16
 
@@ -50,10 +50,37 @@ def write_gff(outpath, genome_ID, genome_DNA, input_annotation, fmt, features):
50
50
  pos_ = pos.split(',')
51
51
  start = pos_[0]
52
52
  stop = pos_[-1]
53
- strand = data['strand']
53
+ strand = data.get('strand', '.')
54
54
  if fmt == 'abricate': # Currently only supports abricate format
55
- info = 'abricate_anotation;accession='+data['accession']+';database='+data['database']+';identity='+str(data['identity'])+';coverage='+str(data['coverage'])+';product='+data['product']+';resistance='+data['resistance']
56
- entry = f"{data['seqid']}\t{fmt}\t{'CDS'}\t{start}\t{stop}\t.\t{strand}\t.\t{'ID='}{info}\n"
55
+ info = 'abricate_annotation;accession={};database={};identity={};coverage={};product={};resistance={}'.format(
56
+ data.get('accession', 'unknown'),
57
+ data.get('database', 'unknown'),
58
+ data.get('identity', ''),
59
+ data.get('coverage', ''),
60
+ data.get('product', ''),
61
+ data.get('resistance', '')
62
+ )
63
+ elif fmt in ('amrfinder', 'amrfinderplus', 'amr'):
64
+ # Build a compact attribute string for amrfinder-plus output
65
+ info = ('amrfinder_annotation;element={};element_name={};protein_id={};type={};class={};subclass={};method={};pct_cov={};pct_id={};closest_acc={};closest_name={}').format(
66
+ data.get('element_symbol', ''),
67
+ data.get('element_name', ''),
68
+ data.get('protein_id', ''),
69
+ data.get('type', ''),
70
+ data.get('class', ''),
71
+ data.get('subclass', ''),
72
+ data.get('method', ''),
73
+ data.get('pct_coverage', ''),
74
+ data.get('pct_identity', ''),
75
+ data.get('closest_accession', ''),
76
+ data.get('closest_name', '')
77
+ )
78
+ else:
79
+ # Generic fallback: try to include any seqid/gene info if present
80
+ gene_id = data.get('gene') or data.get('ID') or ''
81
+ info = f"annotation;id={gene_id}"
82
+
83
+ entry = f"{data.get('seqid', genome_ID)}\t{fmt}\tCDS\t{start}\t{stop}\t.\t{strand}\t.\tID={info}\n"
57
84
  out.write(entry)
58
85
 
59
86
 
@@ -79,7 +106,7 @@ def main():
79
106
  required = parser.add_argument_group('Required Arguments')
80
107
 
81
108
  required.add_argument('-i', dest='input_annotation', required=True, help='Input annotation file (tabular)')
82
- required.add_argument('-fmt', dest='format', required=True, help='Input format: blast, abricate, genemark')
109
+ required.add_argument('-fmt', dest='format', required=True, help='Input format: amrfinder, abricate, blast')
83
110
  required.add_argument('-o', dest='output_dir', required=True, help='Output directory')
84
111
 
85
112
  optional = parser.add_argument_group('Optional Arguments')
@@ -128,6 +128,76 @@ def parse_genemark(path, genome_seq, gene_ident=None):
128
128
  return results
129
129
 
130
130
 
131
+ def parse_amrfinderplus(path, genome_seq, gene_ident=None):
132
+ """
133
+ Parse amrfinder-plus TSV (header line present). Produces an OrderedDict
134
+ keyed by "start,stop" -> attrs dict similar to parse_abricate.
135
+ """
136
+ results = collections.OrderedDict()
137
+ count = 0
138
+ with open(path, 'r') as fh:
139
+ header = None
140
+ header_map = {}
141
+ for i, line in enumerate(fh, 1):
142
+ line = line.rstrip('\n')
143
+ if not line:
144
+ continue
145
+ # Skip comment lines but treat the first non-empty non-comment line as header
146
+ if line.startswith('#'):
147
+ continue
148
+ if header is None:
149
+ header = line.split('\t')
150
+ header_map = {h.strip(): idx for idx, h in enumerate(header)}
151
+ continue
152
+ parts = line.split('\t')
153
+ # allow lines with fewer/more columns but avoid crashes
154
+ if header and len(parts) < len(header):
155
+ logging.warning(f"Line {i}: unexpected number of columns in amrfinder line")
156
+ continue
157
+ try:
158
+ start = int(parts[header_map.get('Start')])
159
+ end = int(parts[header_map.get('Stop')])
160
+ except Exception:
161
+ logging.warning(f"Line {i}: invalid Start/Stop in amrfinder line")
162
+ continue
163
+ strand = parts[header_map.get('Strand', '')]
164
+ seqid = parts[header_map.get('Contig id', '')]
165
+ protein_id = parts[header_map.get('Protein id', '')]
166
+ element_symbol = parts[header_map.get('Element symbol', '')]
167
+ element_name = parts[header_map.get('Element name', '')]
168
+ amr_type = parts[header_map.get('Type', '')]
169
+ amr_subtype = parts[header_map.get('Subtype', '')]
170
+ amr_class = parts[header_map.get('Class', '')]
171
+ amr_subclass = parts[header_map.get('Subclass', '')]
172
+ method = parts[header_map.get('Method', '')]
173
+ pct_cov = parts[header_map.get('% Coverage of reference', '')]
174
+ pct_id = parts[header_map.get('% Identity to reference', '')]
175
+ closest_acc = parts[header_map.get('Closest reference accession', '')]
176
+ closest_name = parts[header_map.get('Closest reference name', '')]
177
+
178
+ attrs = {
179
+ 'seqid': seqid,
180
+ 'start': start,
181
+ 'end': end,
182
+ 'strand': strand,
183
+ 'protein_id': protein_id,
184
+ 'element_symbol': element_symbol,
185
+ 'element_name': element_name,
186
+ 'type': amr_type,
187
+ 'subtype': amr_subtype,
188
+ 'class': amr_class,
189
+ 'subclass': amr_subclass,
190
+ 'method': method,
191
+ 'pct_coverage': pct_cov,
192
+ 'pct_identity': pct_id,
193
+ 'closest_accession': closest_acc,
194
+ 'closest_name': closest_name
195
+ }
196
+ results[f"{start},{end}"] = attrs
197
+ count += 1
198
+ return results
199
+
200
+
131
201
  def TabToGFF(input_file, genome_seq, gene_ident='CDS', fmt='blast'):
132
202
  # Should be cleaned up to use consistent format names
133
203
  fmt = fmt.lower()
@@ -137,4 +207,6 @@ def TabToGFF(input_file, genome_seq, gene_ident='CDS', fmt='blast'):
137
207
  return parse_abricate(input_file, genome_seq, gene_ident)
138
208
  if fmt in ('genemark', 'gene_mark'):
139
209
  return parse_genemark(input_file, genome_seq, gene_ident)
210
+ if fmt in ('amrfinder', 'amrfinderplus', 'amr'):
211
+ return parse_amrfinderplus(input_file, genome_seq, gene_ident)
140
212
  raise ValueError(f"Unknown format: {fmt}")
@@ -4,7 +4,7 @@ import collections
4
4
  # Constants
5
5
  SHORT_ORF_LENGTH = 300
6
6
  MIN_COVERAGE = 75
7
- ORForise_Version = 'v1.6.4'
7
+ ORForise_Version = 'v1.6.5'
8
8
  CLOSING=("\n####\nThank you for using ORForise\nPlease report any issues to: https://github.com/NickJD/ORForise/issues\n"
9
9
  "Please Cite: https://doi.org/10.1093/bioinformatics/btab827\n"
10
10
  "#####")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ORForise
3
- Version: 1.6.4
3
+ Version: 1.6.5
4
4
  Summary: ORForise - A platform for analysing and comparing genome annotations.
5
5
  Author-email: Nicholas Dimonaco <nicholas@dimonaco.co.uk>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -662,7 +662,7 @@ Example output files from ```Annotation-Compare```, ```Aggregate-Compare```, ```
662
662
  For Help: ```Annotation-Compare -h ```
663
663
 
664
664
  ```python
665
- ORForise v1.6.4: Annotatione-Compare Run Parameters.
665
+ ORForise v1.6.5: Annotatione-Compare Run Parameters.
666
666
 
667
667
  Required Arguments:
668
668
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -730,7 +730,7 @@ ORForise can be used as the example below.
730
730
  For Help: ```Aggregate-Compare -h ```
731
731
 
732
732
  ```python
733
- ORForise v1.6.4: Aggregate-Compare Run Parameters.
733
+ ORForise v1.6.5: Aggregate-Compare Run Parameters.
734
734
 
735
735
  Required Arguments:
736
736
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -811,7 +811,7 @@ GFF-Adder combines two existing annotations (GFF or other tool formats).
811
811
  For Help: ```GFF-Adder -h ```
812
812
 
813
813
  ```python
814
- ORForise v1.6.4: GFF-Adder Run Parameters.
814
+ ORForise v1.6.5: GFF-Adder Run Parameters.
815
815
 
816
816
  Required Arguments:
817
817
  -dna GENOME_DNA Genome DNA file (.fa) which both annotations are based on
@@ -868,7 +868,7 @@ usage: Annotation_Intersector.py [-h] -ref REFERENCE_ANNOTATION -at
868
868
  [-cov COVERAGE] [--report-discordance]
869
869
  [--report-discordance-file REPORT_DISCORDANCE_FILE]
870
870
 
871
- ORForise v1.6.4: Annotation-Intersector Run Parameters
871
+ ORForise v1.6.5: Annotation-Intersector Run Parameters
872
872
 
873
873
  options:
874
874
  -h, --help show this help message and exit
@@ -939,7 +939,7 @@ Chromosome EasyGene CDS 70378 71265 . . . Status=found_in_additional_but_below_c
939
939
 
940
940
  ```
941
941
 
942
- #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses.
942
+ #### Convert-To-GFF: Converts tool-specific output files to standard GFF3 format for use in ORForise analyses (BETA!!!).
943
943
  For Help: ```Convert_To_GFF.py -h ```
944
944
  ```
945
945
  Thank you for using ORForise
@@ -947,7 +947,7 @@ Please report any issues to: https://github.com/NickJD/ORForise/issues
947
947
  #####
948
948
  usage: Convert_To_GFF.py [-h] [-dna GENOME_DNA] -i INPUT_ANNOTATION -fmt FORMAT -o OUTPUT_DIR [-gi GENE_IDENT] [--verbose]
949
949
 
950
- ORForise v1.6.4: Convert-To-GFF Run Parameters
950
+ ORForise v1.6.5: Convert-To-GFF Run Parameters
951
951
 
952
952
  Required Arguments:
953
953
  -dna GENOME_DNA Genome DNA file (.fa)
@@ -23,8 +23,6 @@ src/ORForise/Aux/StORF_Undetected/Completely_Undetected/Completey_Undetected.py
23
23
  src/ORForise/Aux/StORF_Undetected/Completely_Undetected/__init__.py
24
24
  src/ORForise/Aux/StORF_Undetected/unvitiated_Genes/__init__.py
25
25
  src/ORForise/Aux/StORF_Undetected/unvitiated_Genes/unvitiated_Missed_Genes.py
26
- src/ORForise/Aux/TabToGFF/TabToGFF.py
27
- src/ORForise/Aux/TabToGFF/__init__.py
28
26
  src/ORForise/ORForise_Analysis/__init__.py
29
27
  src/ORForise/ORForise_Analysis/cds_checker.py
30
28
  src/ORForise/ORForise_Analysis/gene_Lenghts.py
@@ -71,5 +69,7 @@ src/ORForise/Tools/Prokka/Prokka.py
71
69
  src/ORForise/Tools/Prokka/__init__.py
72
70
  src/ORForise/Tools/StORF-Reporter/StORF-Reporter.py
73
71
  src/ORForise/Tools/StORF-Reporter/__init__.py
72
+ src/ORForise/Tools/TabToGFF/TabToGFF.py
73
+ src/ORForise/Tools/TabToGFF/__init__.py
74
74
  src/ORForise/Tools/TransDecoder/TransDecoder.py
75
75
  src/ORForise/Tools/TransDecoder/__init__.py
File without changes
File without changes