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

Complete docstring on parameter types

parent 7595475f
No related branches found
No related tags found
No related merge requests found
...@@ -1084,9 +1084,9 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile): ...@@ -1084,9 +1084,9 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile):
Returns Returns
------- -------
tuple tuple
- List of all contigs with their original and new name: - List of all contigs with their original and new name: (list of str)
["contig1'\t'orig_name1", "contig2'\t'orig_name2" ...] ["contig1'\t'orig_name1", "contig2'\t'orig_name2" ...]
- List of all contigs with their size: - List of all contigs with their size: (list of str)
["contig1'\t'size1", "contig2'\t'size2" ...] ["contig1'\t'size1", "contig2'\t'size2" ...]
""" """
# Initialize variables # Initialize variables
...@@ -1095,9 +1095,9 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile): ...@@ -1095,9 +1095,9 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile):
contig_num = 1 contig_num = 1
# contig size # contig size
cont_size = 0 cont_size = 0
# List of contigs [<name>\t<orig_name>] # List of contigs (str) [<name>\t<orig_name>]
contigs = [] contigs = []
# List of contigs with their sizes [<name>\t<size>] # List of contigs (str) with their sizes [<name>\t<size>]
sizes = [] sizes = []
# Name of previous contig (to put to contigs, as we need to wait for the next # Name of previous contig (to put to contigs, as we need to wait for the next
# contig to know the size of the previous one) # contig to know the size of the previous one)
...@@ -1124,6 +1124,7 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile): ...@@ -1124,6 +1124,7 @@ def get_genome_contigs_and_rename(gembase_name, gpath, outfile):
contigs.append(cor) contigs.append(cor)
grf.write(cont) grf.write(cont)
grf.write(seq) grf.write(seq)
prev_cont = ">" + gembase_name + "." + str(contig_num).zfill(4) prev_cont = ">" + gembase_name + "." + str(contig_num).zfill(4)
prev_orig_name = line prev_orig_name = line
contig_num += 1 contig_num += 1
......
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