changeset 2:cb101ec1a0dd draft

Uploaded
author greg
date Mon, 01 Oct 2018 13:36:56 -0400
parents 794951c24c86
children f56e20e010e2
files gene_family_scaffold_loader.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gene_family_scaffold_loader.py	Mon Oct 01 13:36:28 2018 -0400
+++ b/gene_family_scaffold_loader.py	Mon Oct 01 13:36:56 2018 -0400
@@ -105,7 +105,7 @@
         """
         scaffold_id = os.path.basename(self.args.scaffold_path)
         file_dir = os.path.join(self.args.scaffold_path, 'annot')
-        # The scaffol naming convention must follow this pattern:
+        # The scaffold naming convention must follow this pattern:
         # <integer1>Gv<integer2>.<integer3>
         # where integer 1 is the number of genomes in the scaffold_id.  For example:
         # 22Gv1.1 -> 22 genomes
@@ -137,6 +137,7 @@
                     if i2 == 0:
                         # Skip first line.
                         continue
+                    line = line.rstrip('\n')
                     num_genes = 0
                     num_species = 0
                     items = line.split("\t")