Skip to content

Commit

Permalink
Fixed errors associated to Issue CAMI-challenge#132
Browse files Browse the repository at this point in the history
  • Loading branch information
EttoreRocchi committed May 24, 2022
1 parent 001a339 commit 707d884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion defaults/mini_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata=defaults/metadata.tsv
id_to_genome_file=defaults/genome_to_id.tsv
id_to_gff_file=
genomes_total=24
genomes_real=24
num_real_genomes=24
max_strains_per_otu=1
ratio=1
mode=differential
Expand Down
6 changes: 4 additions & 2 deletions scripts/StrainSimulationWrapper/strainsimulationwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ def _simulate_strains(self, genome_id_to_amounts, genome_id_to_file_path_genome,
file_path_empty_file = self.get_full_path(tempfile.mktemp(dir=self._tmp_dir))
touch(file_path_empty_file)

for genome_id in genome_id_to_file_path_genome.keys():
genome_id_to_file_path_genome_copy = genome_id_to_file_path_genome.copy()
for genome_id in genome_id_to_file_path_genome_copy.keys():
if self._keep_original and genome_id_to_amounts[genome_id] == 1:
continue
directory_strain = self._directory_strain.format(gid=genome_id)
Expand Down Expand Up @@ -501,7 +502,8 @@ def _pick_random_strains(self, meta_table, genome_id_to_amounts, genome_id_to_fi
"""
assert isinstance(meta_table, MetadataTable)

for genome_id in genome_id_to_file_path_genome.keys():
genome_id_to_file_path_genome_copy2 = genome_id_to_file_path_genome.copy()
for genome_id in genome_id_to_file_path_genome_copy2.keys():
if self._keep_original and genome_id_to_amounts[genome_id] == 1:
continue
directory_strain = self._directory_strain.format(gid=genome_id)
Expand Down

0 comments on commit 707d884

Please sign in to comment.