Skip to content
Snippets Groups Projects
Commit 7595475f authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Write contig name as i005 instead of 005i

parent a193e548
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,6 @@ def handle_genome(args): ...@@ -165,7 +165,6 @@ def handle_genome(args):
format_one_genome = fprodigal.format_one_genome format_one_genome = fprodigal.format_one_genome
else: else:
format_one_genome = fprokka.format_one_genome format_one_genome = fprokka.format_one_genome
# Set logger for this process # Set logger for this process
qh = logging.handlers.QueueHandler(q) qh = logging.handlers.QueueHandler(q)
root = logging.getLogger() root = logging.getLogger()
...@@ -234,7 +233,7 @@ def write_gene(gtype, locus_num, gene_name, product, crispr_num, cont_loc, ...@@ -234,7 +233,7 @@ def write_gene(gtype, locus_num, gene_name, product, crispr_num, cont_loc,
gene_name = "crispr" gene_name = "crispr"
product = "crispr-array" product = "crispr-array"
crispr_num += 1 crispr_num += 1
locus_name = "{}.{}{}_{}".format(genome, str(cont_num).zfill(4), cont_loc, locus_name = "{}.{}{}_{}".format(genome, cont_loc, str(cont_num).zfill(4),
str(locus_num).zfill(5)) str(locus_num).zfill(5))
# If '|' character found in those fields, replace by '_' to avoid problems while parsing # If '|' character found in those fields, replace by '_' to avoid problems while parsing
more_info = "| {} | {} | {} | {}".format(product.replace("|", "_"), more_info = "| {} | {} | {} | {}".format(product.replace("|", "_"),
......
154 656 C CDS ESCO.0216.00005.i0015_5621221 abc | new product | 454.12.5 | more information... dfd _ with _ pipe_characters... 154 656 C CDS ESCO.0216.00005.i0015_5621221 abc | new product | 454.12.5 | more information... dfd _ with _ pipe_characters... | mydb_pipe
154 656 D CRISPR ESCO.0216.00005.b0015_CRISPR1 crispr | crispr-array | NA | more information... dfd _ with _ pipe_characters... 154 656 D CRISPR ESCO.0216.00005.b0015_CRISPR1 crispr | crispr-array | NA | more information... dfd _ with _ pipe_characters... | mydb_pipe
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment