diff --git a/intact/intact.py b/intact/intact.py index 95af45c..11bd6f0 100644 --- a/intact/intact.py +++ b/intact/intact.py @@ -64,6 +64,7 @@ class FoundORF: @dataclass class HolisticInfo: + intact: bool = dataclasses.field(default=None) qlen: int = dataclasses.field(default=None) hypermutation_probablility: float = dataclasses.field(default=None) inferred_subtype: str = dataclasses.field(default=None) @@ -884,7 +885,7 @@ def analyse_single_sequence(writer, sequence, blast_rows): if error: sequence_errors.append(error) - is_intact = len(sequence_errors) == 0 + holistic.intact = len(sequence_errors) == 0 # add the small orf errors after the intactness check if not included if not include_small_orfs: @@ -892,9 +893,8 @@ def analyse_single_sequence(writer, sequence, blast_rows): orfs = [x.__dict__ for x in hxb2_found_orfs] errors = [x.__dict__ for x in sequence_errors] - holistic = holistic.__dict__ subtype = aligned_sequence.reference - writer.write(sequence, subtype, is_intact, orfs, errors, holistic) + writer.write(sequence, subtype, holistic.intact, orfs, errors, holistic.__dict__) with OutputWriter(working_dir, "csv" if output_csv else "json") as writer: diff --git a/tests/expected-results-edgy/holistic.json b/tests/expected-results-edgy/holistic.json index 32fe7cb..9e66d8f 100644 --- a/tests/expected-results-edgy/holistic.json +++ b/tests/expected-results-edgy/holistic.json @@ -1,5 +1,6 @@ { "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455": { + "intact": true, "qlen": 9718, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -12,6 +13,7 @@ "blast_n_conseqs": 3 }, "small-sequence[REVERSE_COMPLEMENT]": { + "intact": false, "qlen": 19, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -24,6 +26,7 @@ "blast_n_conseqs": 0 }, "singleton-sequence": { + "intact": false, "qlen": 1, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -36,6 +39,7 @@ "blast_n_conseqs": 0 }, "empty-sequence": { + "intact": false, "qlen": 0, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -48,6 +52,7 @@ "blast_n_conseqs": 0 }, "empty-sequence2": { + "intact": false, "qlen": 0, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -60,6 +65,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.WITH.SOME.LOWERCASES": { + "intact": false, "qlen": 9714, "hypermutation_probablility": 0.1679778416620883, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -72,6 +78,7 @@ "blast_n_conseqs": 0 }, "small-sequence-with-lowercases": { + "intact": false, "qlen": 16, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -84,6 +91,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.REVERSECOMPLEMENTED[REVERSE_COMPLEMENT]": { + "intact": false, "qlen": 9718, "hypermutation_probablility": 0.13527282947774355, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -96,6 +104,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.REVERSED": { + "intact": false, "qlen": 9718, "hypermutation_probablility": 7.126591271466864e-05, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -108,6 +117,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.WITH-XS[REVERSE_COMPLEMENT]": { + "intact": false, "qlen": 9711, "hypermutation_probablility": 0.13527282947774355, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -120,6 +130,7 @@ "blast_n_conseqs": 0 }, "small-sequence-with-xs": { + "intact": false, "qlen": 12, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -132,6 +143,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.WITH-BAD-SYMBOLS[REVERSE_COMPLEMENT]": { + "intact": false, "qlen": 9711, "hypermutation_probablility": 0.13527282947774355, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -144,6 +156,7 @@ "blast_n_conseqs": 0 }, "small-sequence-with-bad-symbols": { + "intact": false, "qlen": 12, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -156,6 +169,7 @@ "blast_n_conseqs": 0 }, "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455.BUT.WITH-DASHES[REVERSE_COMPLEMENT]": { + "intact": false, "qlen": 9711, "hypermutation_probablility": 0.13527282947774355, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", @@ -168,6 +182,7 @@ "blast_n_conseqs": 0 }, "small-sequence-with-dashes": { + "intact": false, "qlen": 12, "hypermutation_probablility": 0.0, "inferred_subtype": "Ref.01_AE.AF.07.569M.GQ477441", diff --git a/tests/expected-results-large-csv/holistic.csv b/tests/expected-results-large-csv/holistic.csv index 26dee0c..ec78ef8 100644 --- a/tests/expected-results-large-csv/holistic.csv +++ b/tests/expected-results-large-csv/holistic.csv @@ -1,42 +1,42 @@ -seqid,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs -KX505501.1,1997,0.7087072014754221,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,1997,0.2498456472525211,1.2158237356034052,0.17666166916541728,789,8793,4 -MN691959,9493,0.19667690182893238,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9493,1.0817040543321672,1.1086063415148004,1.0,789,8793,3 -MN692074,4178,0.36378645339477633,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,4178,0.5042189750977567,1.1728099569171853,0.411544227886057,789,8793,4 -MN692145,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 -MN090335,9069,0.1771850809736527,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9069,0.9842560197571517,1.0603153600176425,1.000374812593703,789,8793,3 -MN090376,8985,0.026415767987601813,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,8985,0.9784935171846059,1.0604340567612687,0.9943778110944528,789,8793,3 -MK115581.1,9495,0.6919440876652894,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9495,0.987034369211772,1.0046340179041602,1.0,789,8793,2 -MK115690.1,9689,0.051230576250981485,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.004630582424367,1.0113530808132933,1.0,789,8793,3 -MK115571.1,9394,0.8029570594372466,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9394,0.9866227618851615,1.0113902490951672,1.0,789,8793,2 -MK115514.1,9382,0.6482462132632603,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9382,0.9864169582218564,1.0173736943082499,1.0,789,8793,2 -MK115488.1,9623,0.6534999185838631,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9623,1.0255196542498457,1.0325262392185388,1.0,789,8793,6 -MK115030.1,9126,0.032014462397289556,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9126,0.994031693764149,1.0655270655270654,1.0,789,8793,3 -MK115498.1,9461,0.83547963060225,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9461,0.9866227618851615,1.0080329774865235,1.0,789,8793,2 -MK115211.1,9032,0.11818291879607423,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9032,0.995060712080675,1.0598981399468557,1.0,789,8793,3 -MK115158.1,9143,0.002572269807584293,Ref.47_BF.ES.08.P1942.GQ372987,9143,0.9921577414295317,0.9699223449633599,1.0,234,8211,1 -MK114705.1,9411,0.14584270737492833,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9411,1.098065445564931,1.122622463075125,1.0,789,8793,6 -MK114856.1,9477,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9477,1.0485696645400289,1.0812493405085997,1.0,789,8793,4 -MK115009.1,9207,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9207,0.9965013377238114,1.0590854784403172,1.0,789,8793,3 -MK115387.1,9136,0.5436355526687852,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9136,0.9796254373327845,1.040936952714536,1.0,789,8793,2 -MK115491.1,9422,0.8961809048805741,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9422,1.0037044659394938,1.0299299511780937,1.0,789,8793,2 -MK116110.1,8967,0.07021438897893317,Ref.B.TH.90.BK132.AY173951,8967,0.9957759004001778,0.9972119995539199,0.9986220719027934,140,8123,3 -MK115527.1,9481,0.770862998910788,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9481,0.9867256637168141,1.0056956017297753,1.0,789,8793,2 -MK114997.1,9055,0.05560625344150194,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9055,0.9784935171846059,1.0516841524019878,1.0,789,8793,2 -MK115518.1,9537,0.6408152618300496,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9537,0.9847705289154147,0.9996854356715948,1.0,789,8793,3 -MK115065.1,9214,0.033954952452739495,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9214,1.0080263428689031,1.069459518124593,1.0,789,8793,6 -MK115464.1,9663,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9663,0.9838444124305412,0.9893407844354756,1.0,789,8793,2 -MK115530.1,9544,0.5812621948015355,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9544,0.9866227618851615,0.9992665549036044,1.0,789,8793,2 -MK115520.1,9589,0.5225247969864292,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9589,0.9786993208479111,0.987902805297737,1.012118940529735,789,8793,3 -MK115503.1,9617,0.42870398270204335,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9617,0.987034369211772,0.9953207861079338,1.0,789,8793,2 -MK115570.1,9485,0.7406166892211931,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9485,0.9866227618851615,1.0057986294148655,1.0,789,8793,2 -MK115509.1,9353,0.7883768413537747,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9353,0.9866227618851615,1.0197797498128942,1.0,789,8793,2 -MK115702.1,9098,0.1454272422215308,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9098,0.9874459765383824,1.0596834469114091,1.0198650674662668,789,8793,4 -MK115095.1,9137,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9137,0.9907388351512657,1.060085367188355,1.0,789,8793,2 -MK115490.1,9347,0.8875203448314265,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9347,0.9848734307470673,1.0204343639670483,1.0,789,8793,3 -MK115576.1,9266,0.8197662757563093,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9266,0.9917678534677917,1.0342110943233327,1.0,789,8793,3 -OQ092466,9686,0.3858261890626,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9686,1.1015641078411196,1.1192442700805285,1.0,789,8793,3 -OQ092463,9605,0.21628713708846803,Ref.B.TH.90.BK132.AY173951,9605,1.0529124055135617,0.9884435190005205,1.0,140,8123,2 -OQ092465,9659,0.02412789935966586,Ref.28_BF.BR.99.BREPM12817.DQ085874,9659,1.0429696287964005,0.9620043482762191,1.0,200,8207,2 -OQ092462,9714,0.10883643311676816,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9714,1.1306853261988064,1.1301214741610048,1.0,789,8793,3 -OQ092464,9556,0.006887768010151674,Ref.28_BF.BR.99.BREPM12817.DQ085874,9556,1.0427446569178853,0.9678735872750105,1.0,200,8207,2 -OQ092467,9936,0.6438715160567257,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9936,1.1308911298621116,1.0962157809983897,1.0,789,8793,3 +seqid,intact,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs +KX505501.1,False,1997,0.7087072014754221,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,1997,0.2498456472525211,1.2158237356034052,0.17666166916541728,789,8793,4 +MN691959,False,9493,0.19667690182893238,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9493,1.0817040543321672,1.1086063415148004,1.0,789,8793,3 +MN692074,False,4178,0.36378645339477633,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,4178,0.5042189750977567,1.1728099569171853,0.411544227886057,789,8793,4 +MN692145,True,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 +MN090335,False,9069,0.1771850809736527,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9069,0.9842560197571517,1.0603153600176425,1.000374812593703,789,8793,3 +MN090376,False,8985,0.026415767987601813,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,8985,0.9784935171846059,1.0604340567612687,0.9943778110944528,789,8793,3 +MK115581.1,True,9495,0.6919440876652894,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9495,0.987034369211772,1.0046340179041602,1.0,789,8793,2 +MK115690.1,False,9689,0.051230576250981485,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.004630582424367,1.0113530808132933,1.0,789,8793,3 +MK115571.1,False,9394,0.8029570594372466,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9394,0.9866227618851615,1.0113902490951672,1.0,789,8793,2 +MK115514.1,False,9382,0.6482462132632603,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9382,0.9864169582218564,1.0173736943082499,1.0,789,8793,2 +MK115488.1,False,9623,0.6534999185838631,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9623,1.0255196542498457,1.0325262392185388,1.0,789,8793,6 +MK115030.1,False,9126,0.032014462397289556,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9126,0.994031693764149,1.0655270655270654,1.0,789,8793,3 +MK115498.1,True,9461,0.83547963060225,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9461,0.9866227618851615,1.0080329774865235,1.0,789,8793,2 +MK115211.1,False,9032,0.11818291879607423,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9032,0.995060712080675,1.0598981399468557,1.0,789,8793,3 +MK115158.1,False,9143,0.002572269807584293,Ref.47_BF.ES.08.P1942.GQ372987,9143,0.9921577414295317,0.9699223449633599,1.0,234,8211,1 +MK114705.1,False,9411,0.14584270737492833,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9411,1.098065445564931,1.122622463075125,1.0,789,8793,6 +MK114856.1,False,9477,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9477,1.0485696645400289,1.0812493405085997,1.0,789,8793,4 +MK115009.1,False,9207,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9207,0.9965013377238114,1.0590854784403172,1.0,789,8793,3 +MK115387.1,False,9136,0.5436355526687852,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9136,0.9796254373327845,1.040936952714536,1.0,789,8793,2 +MK115491.1,True,9422,0.8961809048805741,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9422,1.0037044659394938,1.0299299511780937,1.0,789,8793,2 +MK116110.1,False,8967,0.07021438897893317,Ref.B.TH.90.BK132.AY173951,8967,0.9957759004001778,0.9972119995539199,0.9986220719027934,140,8123,3 +MK115527.1,True,9481,0.770862998910788,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9481,0.9867256637168141,1.0056956017297753,1.0,789,8793,2 +MK114997.1,False,9055,0.05560625344150194,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9055,0.9784935171846059,1.0516841524019878,1.0,789,8793,2 +MK115518.1,True,9537,0.6408152618300496,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9537,0.9847705289154147,0.9996854356715948,1.0,789,8793,3 +MK115065.1,False,9214,0.033954952452739495,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9214,1.0080263428689031,1.069459518124593,1.0,789,8793,6 +MK115464.1,False,9663,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9663,0.9838444124305412,0.9893407844354756,1.0,789,8793,2 +MK115530.1,True,9544,0.5812621948015355,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9544,0.9866227618851615,0.9992665549036044,1.0,789,8793,2 +MK115520.1,False,9589,0.5225247969864292,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9589,0.9786993208479111,0.987902805297737,1.012118940529735,789,8793,3 +MK115503.1,True,9617,0.42870398270204335,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9617,0.987034369211772,0.9953207861079338,1.0,789,8793,2 +MK115570.1,False,9485,0.7406166892211931,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9485,0.9866227618851615,1.0057986294148655,1.0,789,8793,2 +MK115509.1,True,9353,0.7883768413537747,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9353,0.9866227618851615,1.0197797498128942,1.0,789,8793,2 +MK115702.1,False,9098,0.1454272422215308,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9098,0.9874459765383824,1.0596834469114091,1.0198650674662668,789,8793,4 +MK115095.1,False,9137,1.0,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9137,0.9907388351512657,1.060085367188355,1.0,789,8793,2 +MK115490.1,True,9347,0.8875203448314265,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9347,0.9848734307470673,1.0204343639670483,1.0,789,8793,3 +MK115576.1,True,9266,0.8197662757563093,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9266,0.9917678534677917,1.0342110943233327,1.0,789,8793,3 +OQ092466,False,9686,0.3858261890626,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9686,1.1015641078411196,1.1192442700805285,1.0,789,8793,3 +OQ092463,False,9605,0.21628713708846803,Ref.B.TH.90.BK132.AY173951,9605,1.0529124055135617,0.9884435190005205,1.0,140,8123,2 +OQ092465,False,9659,0.02412789935966586,Ref.28_BF.BR.99.BREPM12817.DQ085874,9659,1.0429696287964005,0.9620043482762191,1.0,200,8207,2 +OQ092462,False,9714,0.10883643311676816,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9714,1.1306853261988064,1.1301214741610048,1.0,789,8793,3 +OQ092464,False,9556,0.006887768010151674,Ref.28_BF.BR.99.BREPM12817.DQ085874,9556,1.0427446569178853,0.9678735872750105,1.0,200,8207,2 +OQ092467,False,9936,0.6438715160567257,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9936,1.1308911298621116,1.0962157809983897,1.0,789,8793,3 diff --git a/tests/expected-results-large-hxb2/holistic.json b/tests/expected-results-large-hxb2/holistic.json index 250dea5..8bbde37 100644 --- a/tests/expected-results-large-hxb2/holistic.json +++ b/tests/expected-results-large-hxb2/holistic.json @@ -1,5 +1,6 @@ { "KX505501.1": { + "intact": false, "qlen": 1997, "hypermutation_probablility": 0.7087072014754221, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -12,6 +13,7 @@ "blast_n_conseqs": 4 }, "MN691959": { + "intact": false, "qlen": 9493, "hypermutation_probablility": 0.19667690182893238, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -24,6 +26,7 @@ "blast_n_conseqs": 3 }, "MN692074": { + "intact": false, "qlen": 4178, "hypermutation_probablility": 0.36378645339477633, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -36,6 +39,7 @@ "blast_n_conseqs": 4 }, "MN692145": { + "intact": true, "qlen": 9689, "hypermutation_probablility": 0.1672411051048176, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -48,6 +52,7 @@ "blast_n_conseqs": 3 }, "MN090335": { + "intact": false, "qlen": 9069, "hypermutation_probablility": 0.1771850809736527, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -60,6 +65,7 @@ "blast_n_conseqs": 3 }, "MN090376": { + "intact": false, "qlen": 8985, "hypermutation_probablility": 0.026415767987601813, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -72,6 +78,7 @@ "blast_n_conseqs": 3 }, "MK115581.1": { + "intact": true, "qlen": 9495, "hypermutation_probablility": 0.6919440876652894, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -84,6 +91,7 @@ "blast_n_conseqs": 2 }, "MK115690.1": { + "intact": false, "qlen": 9689, "hypermutation_probablility": 0.051230576250981485, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -96,6 +104,7 @@ "blast_n_conseqs": 3 }, "MK115571.1": { + "intact": false, "qlen": 9394, "hypermutation_probablility": 0.8029570594372466, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -108,6 +117,7 @@ "blast_n_conseqs": 2 }, "MK115514.1": { + "intact": false, "qlen": 9382, "hypermutation_probablility": 0.6482462132632603, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -120,6 +130,7 @@ "blast_n_conseqs": 2 }, "MK115488.1": { + "intact": false, "qlen": 9623, "hypermutation_probablility": 0.6534999185838631, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -132,6 +143,7 @@ "blast_n_conseqs": 6 }, "MK115030.1": { + "intact": false, "qlen": 9126, "hypermutation_probablility": 0.032014462397289556, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -144,6 +156,7 @@ "blast_n_conseqs": 3 }, "MK115498.1": { + "intact": true, "qlen": 9461, "hypermutation_probablility": 0.83547963060225, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -156,6 +169,7 @@ "blast_n_conseqs": 2 }, "MK115211.1": { + "intact": false, "qlen": 9032, "hypermutation_probablility": 0.11818291879607423, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -168,6 +182,7 @@ "blast_n_conseqs": 3 }, "MK115158.1": { + "intact": false, "qlen": 9143, "hypermutation_probablility": 0.06758916889824729, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -180,6 +195,7 @@ "blast_n_conseqs": 2 }, "MK114705.1": { + "intact": false, "qlen": 9411, "hypermutation_probablility": 0.14584270737492833, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -192,6 +208,7 @@ "blast_n_conseqs": 6 }, "MK114856.1": { + "intact": false, "qlen": 9477, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -204,6 +221,7 @@ "blast_n_conseqs": 4 }, "MK115009.1": { + "intact": false, "qlen": 9207, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -216,6 +234,7 @@ "blast_n_conseqs": 3 }, "MK115387.1": { + "intact": false, "qlen": 9136, "hypermutation_probablility": 0.5436355526687852, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -228,6 +247,7 @@ "blast_n_conseqs": 2 }, "MK115491.1": { + "intact": true, "qlen": 9422, "hypermutation_probablility": 0.8961809048805741, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -240,6 +260,7 @@ "blast_n_conseqs": 2 }, "MK116110.1": { + "intact": false, "qlen": 8967, "hypermutation_probablility": 0.07900386365437118, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -252,6 +273,7 @@ "blast_n_conseqs": 4 }, "MK115527.1": { + "intact": true, "qlen": 9481, "hypermutation_probablility": 0.770862998910788, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -264,6 +286,7 @@ "blast_n_conseqs": 2 }, "MK114997.1": { + "intact": false, "qlen": 9055, "hypermutation_probablility": 0.05560625344150194, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -276,6 +299,7 @@ "blast_n_conseqs": 2 }, "MK115518.1": { + "intact": true, "qlen": 9537, "hypermutation_probablility": 0.6408152618300496, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -288,6 +312,7 @@ "blast_n_conseqs": 3 }, "MK115065.1": { + "intact": false, "qlen": 9214, "hypermutation_probablility": 0.033954952452739495, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -300,6 +325,7 @@ "blast_n_conseqs": 6 }, "MK115464.1": { + "intact": false, "qlen": 9663, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -312,6 +338,7 @@ "blast_n_conseqs": 2 }, "MK115530.1": { + "intact": true, "qlen": 9544, "hypermutation_probablility": 0.5812621948015355, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -324,6 +351,7 @@ "blast_n_conseqs": 2 }, "MK115520.1": { + "intact": false, "qlen": 9589, "hypermutation_probablility": 0.5225247969864292, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -336,6 +364,7 @@ "blast_n_conseqs": 3 }, "MK115503.1": { + "intact": true, "qlen": 9617, "hypermutation_probablility": 0.42870398270204335, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -348,6 +377,7 @@ "blast_n_conseqs": 2 }, "MK115570.1": { + "intact": false, "qlen": 9485, "hypermutation_probablility": 0.7406166892211931, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -360,6 +390,7 @@ "blast_n_conseqs": 2 }, "MK115509.1": { + "intact": true, "qlen": 9353, "hypermutation_probablility": 0.7883768413537747, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -372,6 +403,7 @@ "blast_n_conseqs": 2 }, "MK115702.1": { + "intact": false, "qlen": 9098, "hypermutation_probablility": 0.1454272422215308, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -384,6 +416,7 @@ "blast_n_conseqs": 4 }, "MK115095.1": { + "intact": false, "qlen": 9137, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -396,6 +429,7 @@ "blast_n_conseqs": 2 }, "MK115490.1": { + "intact": true, "qlen": 9347, "hypermutation_probablility": 0.8875203448314265, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -408,6 +442,7 @@ "blast_n_conseqs": 3 }, "MK115576.1": { + "intact": true, "qlen": 9266, "hypermutation_probablility": 0.8197662757563093, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -420,6 +455,7 @@ "blast_n_conseqs": 3 }, "OQ092466": { + "intact": false, "qlen": 9686, "hypermutation_probablility": 0.3858261890626, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -432,6 +468,7 @@ "blast_n_conseqs": 3 }, "OQ092463": { + "intact": false, "qlen": 9605, "hypermutation_probablility": 0.4036857753053361, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -444,6 +481,7 @@ "blast_n_conseqs": 3 }, "OQ092465": { + "intact": false, "qlen": 9659, "hypermutation_probablility": 0.5473020413873195, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -456,6 +494,7 @@ "blast_n_conseqs": 3 }, "OQ092462": { + "intact": false, "qlen": 9714, "hypermutation_probablility": 0.10883643311676816, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -468,6 +507,7 @@ "blast_n_conseqs": 3 }, "OQ092464": { + "intact": false, "qlen": 9556, "hypermutation_probablility": 0.47853703424568406, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -480,6 +520,7 @@ "blast_n_conseqs": 3 }, "OQ092467": { + "intact": false, "qlen": 9936, "hypermutation_probablility": 0.6438715160567257, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", diff --git a/tests/expected-results-large/holistic.json b/tests/expected-results-large/holistic.json index 6e9005c..2e0741a 100644 --- a/tests/expected-results-large/holistic.json +++ b/tests/expected-results-large/holistic.json @@ -1,5 +1,6 @@ { "KX505501.1": { + "intact": false, "qlen": 1997, "hypermutation_probablility": 0.7087072014754221, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -12,6 +13,7 @@ "blast_n_conseqs": 4 }, "MN691959": { + "intact": false, "qlen": 9493, "hypermutation_probablility": 0.19667690182893238, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -24,6 +26,7 @@ "blast_n_conseqs": 3 }, "MN692074": { + "intact": false, "qlen": 4178, "hypermutation_probablility": 0.36378645339477633, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -36,6 +39,7 @@ "blast_n_conseqs": 4 }, "MN692145": { + "intact": true, "qlen": 9689, "hypermutation_probablility": 0.1672411051048176, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -48,6 +52,7 @@ "blast_n_conseqs": 3 }, "MN090335": { + "intact": false, "qlen": 9069, "hypermutation_probablility": 0.1771850809736527, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -60,6 +65,7 @@ "blast_n_conseqs": 3 }, "MN090376": { + "intact": false, "qlen": 8985, "hypermutation_probablility": 0.026415767987601813, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -72,6 +78,7 @@ "blast_n_conseqs": 3 }, "MK115581.1": { + "intact": true, "qlen": 9495, "hypermutation_probablility": 0.6919440876652894, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -84,6 +91,7 @@ "blast_n_conseqs": 2 }, "MK115690.1": { + "intact": false, "qlen": 9689, "hypermutation_probablility": 0.051230576250981485, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -96,6 +104,7 @@ "blast_n_conseqs": 3 }, "MK115571.1": { + "intact": false, "qlen": 9394, "hypermutation_probablility": 0.8029570594372466, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -108,6 +117,7 @@ "blast_n_conseqs": 2 }, "MK115514.1": { + "intact": false, "qlen": 9382, "hypermutation_probablility": 0.6482462132632603, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -120,6 +130,7 @@ "blast_n_conseqs": 2 }, "MK115488.1": { + "intact": false, "qlen": 9623, "hypermutation_probablility": 0.6534999185838631, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -132,6 +143,7 @@ "blast_n_conseqs": 6 }, "MK115030.1": { + "intact": false, "qlen": 9126, "hypermutation_probablility": 0.032014462397289556, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -144,6 +156,7 @@ "blast_n_conseqs": 3 }, "MK115498.1": { + "intact": true, "qlen": 9461, "hypermutation_probablility": 0.83547963060225, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -156,6 +169,7 @@ "blast_n_conseqs": 2 }, "MK115211.1": { + "intact": false, "qlen": 9032, "hypermutation_probablility": 0.11818291879607423, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -168,6 +182,7 @@ "blast_n_conseqs": 3 }, "MK115158.1": { + "intact": false, "qlen": 9143, "hypermutation_probablility": 0.002572269807584293, "inferred_subtype": "Ref.47_BF.ES.08.P1942.GQ372987", @@ -180,6 +195,7 @@ "blast_n_conseqs": 1 }, "MK114705.1": { + "intact": false, "qlen": 9411, "hypermutation_probablility": 0.14584270737492833, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -192,6 +208,7 @@ "blast_n_conseqs": 6 }, "MK114856.1": { + "intact": false, "qlen": 9477, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -204,6 +221,7 @@ "blast_n_conseqs": 4 }, "MK115009.1": { + "intact": false, "qlen": 9207, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -216,6 +234,7 @@ "blast_n_conseqs": 3 }, "MK115387.1": { + "intact": false, "qlen": 9136, "hypermutation_probablility": 0.5436355526687852, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -228,6 +247,7 @@ "blast_n_conseqs": 2 }, "MK115491.1": { + "intact": true, "qlen": 9422, "hypermutation_probablility": 0.8961809048805741, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -240,6 +260,7 @@ "blast_n_conseqs": 2 }, "MK116110.1": { + "intact": false, "qlen": 8967, "hypermutation_probablility": 0.07021438897893317, "inferred_subtype": "Ref.B.TH.90.BK132.AY173951", @@ -252,6 +273,7 @@ "blast_n_conseqs": 3 }, "MK115527.1": { + "intact": true, "qlen": 9481, "hypermutation_probablility": 0.770862998910788, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -264,6 +286,7 @@ "blast_n_conseqs": 2 }, "MK114997.1": { + "intact": false, "qlen": 9055, "hypermutation_probablility": 0.05560625344150194, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -276,6 +299,7 @@ "blast_n_conseqs": 2 }, "MK115518.1": { + "intact": true, "qlen": 9537, "hypermutation_probablility": 0.6408152618300496, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -288,6 +312,7 @@ "blast_n_conseqs": 3 }, "MK115065.1": { + "intact": false, "qlen": 9214, "hypermutation_probablility": 0.033954952452739495, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -300,6 +325,7 @@ "blast_n_conseqs": 6 }, "MK115464.1": { + "intact": false, "qlen": 9663, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -312,6 +338,7 @@ "blast_n_conseqs": 2 }, "MK115530.1": { + "intact": true, "qlen": 9544, "hypermutation_probablility": 0.5812621948015355, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -324,6 +351,7 @@ "blast_n_conseqs": 2 }, "MK115520.1": { + "intact": false, "qlen": 9589, "hypermutation_probablility": 0.5225247969864292, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -336,6 +364,7 @@ "blast_n_conseqs": 3 }, "MK115503.1": { + "intact": true, "qlen": 9617, "hypermutation_probablility": 0.42870398270204335, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -348,6 +377,7 @@ "blast_n_conseqs": 2 }, "MK115570.1": { + "intact": false, "qlen": 9485, "hypermutation_probablility": 0.7406166892211931, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -360,6 +390,7 @@ "blast_n_conseqs": 2 }, "MK115509.1": { + "intact": true, "qlen": 9353, "hypermutation_probablility": 0.7883768413537747, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -372,6 +403,7 @@ "blast_n_conseqs": 2 }, "MK115702.1": { + "intact": false, "qlen": 9098, "hypermutation_probablility": 0.1454272422215308, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -384,6 +416,7 @@ "blast_n_conseqs": 4 }, "MK115095.1": { + "intact": false, "qlen": 9137, "hypermutation_probablility": 1.0, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -396,6 +429,7 @@ "blast_n_conseqs": 2 }, "MK115490.1": { + "intact": true, "qlen": 9347, "hypermutation_probablility": 0.8875203448314265, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -408,6 +442,7 @@ "blast_n_conseqs": 3 }, "MK115576.1": { + "intact": true, "qlen": 9266, "hypermutation_probablility": 0.8197662757563093, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -420,6 +455,7 @@ "blast_n_conseqs": 3 }, "OQ092466": { + "intact": false, "qlen": 9686, "hypermutation_probablility": 0.3858261890626, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -432,6 +468,7 @@ "blast_n_conseqs": 3 }, "OQ092463": { + "intact": false, "qlen": 9605, "hypermutation_probablility": 0.21628713708846803, "inferred_subtype": "Ref.B.TH.90.BK132.AY173951", @@ -444,6 +481,7 @@ "blast_n_conseqs": 2 }, "OQ092465": { + "intact": false, "qlen": 9659, "hypermutation_probablility": 0.02412789935966586, "inferred_subtype": "Ref.28_BF.BR.99.BREPM12817.DQ085874", @@ -456,6 +494,7 @@ "blast_n_conseqs": 2 }, "OQ092462": { + "intact": false, "qlen": 9714, "hypermutation_probablility": 0.10883643311676816, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -468,6 +507,7 @@ "blast_n_conseqs": 3 }, "OQ092464": { + "intact": false, "qlen": 9556, "hypermutation_probablility": 0.006887768010151674, "inferred_subtype": "Ref.28_BF.BR.99.BREPM12817.DQ085874", @@ -480,6 +520,7 @@ "blast_n_conseqs": 2 }, "OQ092467": { + "intact": false, "qlen": 9936, "hypermutation_probablility": 0.6438715160567257, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", diff --git a/tests/expected-results-single-csv/holistic.csv b/tests/expected-results-single-csv/holistic.csv index b317787..d4ce92e 100644 --- a/tests/expected-results-single-csv/holistic.csv +++ b/tests/expected-results-single-csv/holistic.csv @@ -1,2 +1,2 @@ -seqid,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs -MN692145,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 +seqid,intact,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs +MN692145,True,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 diff --git a/tests/expected-results-single-hxb2/holistic.json b/tests/expected-results-single-hxb2/holistic.json index 43acd43..0de5351 100644 --- a/tests/expected-results-single-hxb2/holistic.json +++ b/tests/expected-results-single-hxb2/holistic.json @@ -1,5 +1,6 @@ { "MN692145": { + "intact": true, "qlen": 9689, "hypermutation_probablility": 0.1672411051048176, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", diff --git a/tests/expected-results-single/holistic.json b/tests/expected-results-single/holistic.json index 43acd43..0de5351 100644 --- a/tests/expected-results-single/holistic.json +++ b/tests/expected-results-single/holistic.json @@ -1,5 +1,6 @@ { "MN692145": { + "intact": true, "qlen": 9689, "hypermutation_probablility": 0.1672411051048176, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", diff --git a/tests/expected-results-small-csv/holistic.csv b/tests/expected-results-small-csv/holistic.csv index c47d0e7..ab99a72 100644 --- a/tests/expected-results-small-csv/holistic.csv +++ b/tests/expected-results-small-csv/holistic.csv @@ -1,6 +1,6 @@ -seqid,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs -KX505501.1,1997,0.7087072014754221,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,1997,0.2498456472525211,1.2158237356034052,0.17666166916541728,789,8793,4 -MN691959,9493,0.19667690182893238,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9493,1.0817040543321672,1.1086063415148004,1.0,789,8793,3 -MN692074,4178,0.36378645339477633,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,4178,0.5042189750977567,1.1728099569171853,0.411544227886057,789,8793,4 -MN692145,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 -MN090335,9069,0.1771850809736527,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9069,0.9842560197571517,1.0603153600176425,1.000374812593703,789,8793,3 +seqid,intact,qlen,hypermutation_probablility,inferred_subtype,blast_matched_qlen,blast_sseq_coverage,blast_qseq_coverage,blast_sseq_orfs_coverage,orfs_start,orfs_end,blast_n_conseqs +KX505501.1,False,1997,0.7087072014754221,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,1997,0.2498456472525211,1.2158237356034052,0.17666166916541728,789,8793,4 +MN691959,False,9493,0.19667690182893238,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9493,1.0817040543321672,1.1086063415148004,1.0,789,8793,3 +MN692074,False,4178,0.36378645339477633,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,4178,0.5042189750977567,1.1728099569171853,0.411544227886057,789,8793,4 +MN692145,True,9689,0.1672411051048176,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9689,1.130479522535501,1.1271545051088863,1.0,789,8793,3 +MN090335,False,9069,0.1771850809736527,Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455,9069,0.9842560197571517,1.0603153600176425,1.000374812593703,789,8793,3 diff --git a/tests/expected-results-small/holistic.json b/tests/expected-results-small/holistic.json index b806eda..3a2afeb 100644 --- a/tests/expected-results-small/holistic.json +++ b/tests/expected-results-small/holistic.json @@ -1,5 +1,6 @@ { "KX505501.1": { + "intact": false, "qlen": 1997, "hypermutation_probablility": 0.7087072014754221, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -12,6 +13,7 @@ "blast_n_conseqs": 4 }, "MN691959": { + "intact": false, "qlen": 9493, "hypermutation_probablility": 0.19667690182893238, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -24,6 +26,7 @@ "blast_n_conseqs": 3 }, "MN692074": { + "intact": false, "qlen": 4178, "hypermutation_probablility": 0.36378645339477633, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -36,6 +39,7 @@ "blast_n_conseqs": 4 }, "MN692145": { + "intact": true, "qlen": 9689, "hypermutation_probablility": 0.1672411051048176, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455", @@ -48,6 +52,7 @@ "blast_n_conseqs": 3 }, "MN090335": { + "intact": false, "qlen": 9069, "hypermutation_probablility": 0.1771850809736527, "inferred_subtype": "Ref.B.FR.83.HXB2_LAI_IIIB_BRU.K03455",