src/fastq_filter/__init__.py
def filter_fastq(filter_string: str,
                 input_file: str,
                 output_file: str,
                 compression_level: int = DEFAULT_COMPRESSION_LEVEL):
    """
    Filter a FASTQ input file with the filters in filter_string and write
    the results to the output file.

    :param filter_string: A string representing one or multiple filters. For
    more information see the documentation.
    :param input_file: A FASTQ input filename. Compressed files are handled
    automatically.
    :param output_file: A FASTQ output filename. Compressed files are handled
    automatically.
    :param compression_level: Compression level for the output files (if
    applicable)
    """
    fastq_records = file_to_fastq_records(input_file)
    filtered_fastq_records: Iterable[dnaio.Sequence] = fastq_records
    for filter_func in filter_string_to_filters(filter_string):
        filtered_fastq_records = filter(filter_func, filtered_fastq_records)
    fastq_records_to_file(filtered_fastq_records, output_file,
                          compression_level=compression_level)

    Filter a FASTQ input file with the filters in filter_string and write
    the results to the output file.

    :param filter_string: A string representing one or multiple filters. For
    more information see the documentation.
    :param input_file: A FASTQ input filename. Compressed files are handled
    automatically.
    :param output_file: A FASTQ output filename. Compressed files are handled
    automatically.
    :param compression_level: Compression level for the output files (if
    applicable)
    
Filter a FASTQ input file with the filters in filter_string and write
the results to the output file.
Filter a FASTQ input file with the filters in filter_string and write the results to the output file .
def filter_fastq(filter_string: str,
                 input_file: str,
                 output_file: str,
                 compression_level: int = DEFAULT_COMPRESSION_LEVEL):
    fastq_records = file_to_fastq_records(input_file)
    filtered_fastq_records: Iterable[dnaio.Sequence] = fastq_records
    for filter_func in filter_string_to_filters(filter_string):
        filtered_fastq_records = filter(filter_func, filtered_fastq_records)
    fastq_records_to_file(filtered_fastq_records, output_file,
                          compression_level=compression_level)
def filter_fastq ( filter_string : str , input_file : str , output_file : str , compression_level : int = DEFAULT_COMPRESSION_LEVEL ) : fastq_records = file_to_fastq_records ( input_file ) filtered_fastq_records : Iterable [ dnaio . Sequence ] = fastq_records for filter_func in filter_string_to_filters ( filter_string ) : filtered_fastq_records = filter ( filter_func , filtered_fastq_records ) fastq_records_to_file ( filtered_fastq_records , output_file , compression_level = compression_level )
Filter a FASTQ input file with the filters in filter_string and write
the results to the output file.
Filter a FASTQ input file with the filters in filter_string and write the results to the output file .
"""
    Filter a FASTQ input file with the filters in filter_string and write
    the results to the output file.

    :param filter_string: A string representing one or multiple filters. For
    more information see the documentation.
    :param input_file: A FASTQ input filename. Compressed files are handled
    automatically.
    :param output_file: A FASTQ output filename. Compressed files are handled
    automatically.
    :param compression_level: Compression level for the output files (if
    applicable)
    """
filter_string
str
A string representing one or multiple filters. For
more information see the documentation.
A string representing one or multiple filters . For more information see the documentation .
input_file
str
A FASTQ input filename. Compressed files are handled
automatically.
A FASTQ input filename . Compressed files are handled automatically .
output_file
str
A FASTQ output filename. Compressed files are handled
automatically.
A FASTQ output filename . Compressed files are handled automatically .
compression_level
int
Compression level for the output files (if
applicable)
Compression level for the output files ( if applicable )