diff --git a/PanACoTA/utils.py b/PanACoTA/utils.py index 17f1e582048dd4d24cbe50930c1866079094034d..61e3ad995577419e6c78707cefdaeb3961b4b01f 100755 --- a/PanACoTA/utils.py +++ b/PanACoTA/utils.py @@ -1148,7 +1148,7 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile, logger): # - add its name with its original name to # - write header ("<contig name> <size>") to replicon file if prev_cont: - cont = "\t".join([prev_cont, str(cont_size)]) + "\n" + cont = " ".join([prev_cont, str(cont_size)]) + "\n" prevcont_nohead = prev_cont.split(">")[1] prev_orig_name_nohead = prev_orig_name.split(">")[1] if prev_orig_name_nohead: @@ -1172,7 +1172,7 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile, logger): cont_size += len(line.strip()) # Write last contig, if there is one (if gpath not empty) if prev_cont: - cont = "\t".join([prev_cont, str(cont_size)]) + "\n" + cont = " ".join([prev_cont, str(cont_size)]) + "\n" prevcont_nohead = "".join(prev_cont.split(">")[1:]) prev_orig_name_nohead = prev_orig_name.split(">")[1] if prev_orig_name_nohead: diff --git a/test/data/annotate/exp_files/H299_H561.fasta_small-prodigalRes/test_runprodigal_small_H299.gff b/test/data/annotate/exp_files/H299_H561.fasta_small-prodigalRes/test_runprodigal_small_H299.gff index 5b7583146c7571f2fffb12d2cb880e97d321f5db..5073298438a080d30890f5506992cc9e6d3e88c0 100644 --- a/test/data/annotate/exp_files/H299_H561.fasta_small-prodigalRes/test_runprodigal_small_H299.gff +++ b/test/data/annotate/exp_files/H299_H561.fasta_small-prodigalRes/test_runprodigal_small_H299.gff @@ -1,4 +1,4 @@ -##gff-version 3 +##gff-version 3 # Sequence Data: seqnum=1;seqlen=3480;seqhdr="H561_S27 L001_R1_001_(paired)_contig_1" # Model Data: version=Prodigal.v2.6.3;run_type=Metagenomic;model="20|Escherichia_coli_UMN026|B|50.7|11|1";gc_cont=50.70;transl_table=11;uses_sd=1 H561_S27 Prodigal_v2.6.3 CDS 3 140 31.2 - 0 ID=1_1;partial=10;start_type=ATG;rbs_motif=GGAG/GAGG;rbs_spacer=5-10bp;gc_cont=0.580;conf=99.92;score=31.21;cscore=19.39;sscore=11.82;rscore=11.19;uscore=-3.31;tscore=3.95; diff --git a/test/data/annotate/exp_files/res_formatAll/prodigal/Replicons/test_runprokka_H299.fna b/test/data/annotate/exp_files/res_formatAll/prodigal/Replicons/test_runprokka_H299.fna index d3a4a1981ef3c007d131cf5d3b708a7a239ec122..dc5aac7ad8348d6d1ebb8599f9f08a4f006694ee 100644 --- a/test/data/annotate/exp_files/res_formatAll/prodigal/Replicons/test_runprokka_H299.fna +++ b/test/data/annotate/exp_files/res_formatAll/prodigal/Replicons/test_runprokka_H299.fna @@ -1,4 +1,4 @@ ->test_runprokka_H299.0001 3480 +>test_runprokka_H299.0001 3480 AGCAGCACGCTTTTTAATCCGTCCACCGGACCTTCAACCGGCCCTTCGCTGATGGCATCG ATCACACTCAGCAGCTGCGTGGACTTCAGGTTGTCCTTCGCTTCGCGCGGGGTATGCCCC TTACTGCTGCCTTTACCCATTCGTCATGCTCCATAAACGATAAAACCGCCCGGAGGCGGT diff --git a/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test.0417.00002.gff b/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test.0417.00002.gff index 1529acfc565707d29e3a7751e2bb78a9509401d4..ba4e9adb3197d6357261077189d24a83242b2d43 100644 --- a/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test.0417.00002.gff +++ b/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test.0417.00002.gff @@ -1,4 +1,4 @@ -##gff-version 3 +##gff-version 3 ##sequence-region test.0417.00002.0001 1 9603 ##sequence-region test.0417.00002.0002 1 22446 ##sequence-region test.0417.00002.0003 1 51012 diff --git a/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test_runprokka_H299.gff b/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test_runprokka_H299.gff index 447289fba534194eb5fdd729155503d1fc626eaa..b9cc64fa60429be2ee6d33488d6ad60f1f6fd05a 100644 --- a/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test_runprokka_H299.gff +++ b/test/data/annotate/exp_files/res_formatAll/prodigal/gff3/test_runprokka_H299.gff @@ -1,4 +1,4 @@ -##gff-version 3 +##gff-version 3 ##sequence-region test_runprokka_H299.0001 1 3480 ##sequence-region test_runprokka_H299.0002 1 7080 ##sequence-region test_runprokka_H299.0003 1 2583 diff --git a/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test.0417.00002.fna b/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test.0417.00002.fna index 1375f72fee07a61fed2a6a3100b9d5b67c88833f..6ca8e4891f36a6bf7b6954a33e33dd1a7e4495d8 100644 --- a/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test.0417.00002.fna +++ b/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test.0417.00002.fna @@ -1,4 +1,4 @@ ->test.0417.00002.0001 9603 +>test.0417.00002.0001 9603 TCTCATACTACCCAATTTCTTAAAAGTGCAAATTTGTGAAGCTTATCCTGTTATTATTTT AAGTTTCATGCCAAATTCTCTCACCAGATAATGCCGCCCTCTTCCGAAAAATAATCAAGA GGCCAAACAATATCTAAAATGATACAACTGTATCTATTCCCCTGAAAAATACATTATTCA diff --git a/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test_runprokka_H299.fna b/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test_runprokka_H299.fna index d3a4a1981ef3c007d131cf5d3b708a7a239ec122..dc5aac7ad8348d6d1ebb8599f9f08a4f006694ee 100644 --- a/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test_runprokka_H299.fna +++ b/test/data/annotate/exp_files/res_formatAll/prokka/Replicons/test_runprokka_H299.fna @@ -1,4 +1,4 @@ ->test_runprokka_H299.0001 3480 +>test_runprokka_H299.0001 3480 AGCAGCACGCTTTTTAATCCGTCCACCGGACCTTCAACCGGCCCTTCGCTGATGGCATCG ATCACACTCAGCAGCTGCGTGGACTTCAGGTTGTCCTTCGCTTCGCGCGGGGTATGCCCC TTACTGCTGCCTTTACCCATTCGTCATGCTCCATAAACGATAAAACCGCCCGGAGGCGGT diff --git a/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test.0417.00002.gff b/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test.0417.00002.gff index de76a5c3e7501d25b4720044a5b573fa3728f66f..e674cb2c13fd06a0ce51c5d37c083cf5f1ad00e0 100644 --- a/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test.0417.00002.gff +++ b/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test.0417.00002.gff @@ -1,4 +1,4 @@ -##gff-version 3 +##gff-version 3 ##sequence-region test.0417.00002.0001 1 9603 ##sequence-region test.0417.00002.0002 1 22446 ##sequence-region test.0417.00002.0003 1 51012 diff --git a/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test_runprokka_H299.gff b/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test_runprokka_H299.gff index aa8c22d7d40a1e32bb0ddcba3c61177a84c5faf7..f444a497fd1914a9e7261133fa9a458bfe3e2bd2 100644 --- a/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test_runprokka_H299.gff +++ b/test/data/annotate/exp_files/res_formatAll/prokka/gff3/test_runprokka_H299.gff @@ -1,4 +1,4 @@ -##gff-version 3 +##gff-version 3 ##sequence-region test_runprokka_H299.0001 1 3480 ##sequence-region test_runprokka_H299.0002 1 7080 ##sequence-region test_runprokka_H299.0003 1 2583