From 18259c64338fa69f6ff52b13fb1e016937d21bdf Mon Sep 17 00:00:00 2001 From: NMarthe <nina.marthe@ird.fr> Date: Tue, 9 Jan 2024 13:34:20 +0100 Subject: [PATCH] modified output form --- inference.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inference.py b/inference.py index 58dae2e..146c9c8 100644 --- a/inference.py +++ b/inference.py @@ -259,11 +259,12 @@ for feature in Features.values(): # add the sequence of all features # analysing the variations for all the mrna : for mrna_id in mrna_var.keys(): + print("analysis of the variations in the mRNA",mrna_id,":\n") cds_var=mrna_var[mrna_id] for cds_id in cds_var: cds=Features[cds_id] - print("analysis of the variations in the CDS",cds_id,":\n") + print("\nCDS",cds_id,":") frameshift=0 for index, var in enumerate(cds_var[cds_id]): #Â for each variation in the current cds : type_var=var[8] @@ -280,7 +281,7 @@ for mrna_id in mrna_var.keys(): else: length_alt=len(var[10]) - print("variation",index+1, ":") + print("\nvariation",index+1, ":") if posVar[0]<3: print("variation of the start codon, mRNA most likely wont be translated") @@ -354,5 +355,3 @@ for mrna_id in mrna_var.keys(): # possible that it prints too many variations : for ex if we have a snp on the first and the last base of a codon, # while printing the effect of the first snp we aso use the second one. - print("\n") - -- GitLab