Skip to content

Commit

Permalink
fix: flake8 linter issues (W293)
Browse files Browse the repository at this point in the history
  • Loading branch information
tensulin committed Aug 28, 2024
1 parent 81d0b50 commit 713d92d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/marbel/data_generations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def draw_random_species(number_of_species):
def create_ortholgous_group_rates(number_of_orthogous_groups, max_species_per_group, seed=None):
"""
Creates a list of group sizes for orthogroups, such that the maximum group size is less than or equal to
the specified maximum species per group and the total number of orthogroups matches the specified number
the specified maximum species per group and the total number of orthogroups matches the specified number
of orthogroups.
Parameters:
Expand Down Expand Up @@ -285,11 +285,11 @@ def aggregate_gene_data(species, species_abundances, selected_ortho_groups, read
def convert_fasta_dir_to_fastq_dir(fasta_dir, gzipped=True):
"""
Converts a directory containing .fasta files to a directory containing .fastq files. If gzipped is True, the output files will be gzipped.
Parameters:
- fasta_dir (str): The path to the directory containing the .fasta files.
- gzipped (bool): Whether the output files should be gzipped.
Note that the input .fasta files will be removed after the conversion is done.
"""
fasta_dir = Path(fasta_dir)
Expand All @@ -312,7 +312,7 @@ def write_as_fastq_gz(fa_path, fq_path):
"""
Converts a .fasta file to a .fastq.gz file. The function reads the .fasta file,
adds phred quality scores to each sequence and writes the output to a .fastq.gz file.
Args:
fa_path (str): Path to the input .fasta file.
fq_path (str): Path to the output .fastq.gz file.
Expand All @@ -327,7 +327,7 @@ def write_as_fastq(fa_path, fq_path):
"""
Converts a .fasta file to a .fastq file. The function reads the .fasta file,
adds phred quality scores to each sequence and writes the output to a .fastq file.
Args:
fa_path (str): Path to the input .fasta file.
fq_path (str): Path to the output .fastq file.
Expand All @@ -342,7 +342,7 @@ def summarize_parameters(number_of_orthogous_groups, number_of_species, number_o
outdir, max_phylo_distance, min_identity, deg_ratio, seed, output_format, read_length, result_file):
"""
Writes the simulation parameters to the result_file.
Args:
number_of_orthogous_groups (int): The number of orthologous groups.
number_of_species (int): The number of species.
Expand Down

0 comments on commit 713d92d

Please sign in to comment.