import re


def get_rna_filtered_reads(wildcards, config):
    """ 
    get the clean reads for a sample
    then insert requested sequence type name into fastsq file name
    eg: turn sample.clean.fastq -> sample.clean.SSU.fastq
    """
    cleaned_reads = config["sample_data"][wildcards.sample]["clean"]
    rrna_subset = wildcards.rna
    return re.sub(r"\.(fast[aq])$", r".{}.\1".format(rrna_subset), cleaned_reads)