/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Nextflow config file for running minimal tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Defines input files and everything required to run a fast and simple pipeline test.

    Use as follows:
        nextflow run nf-core/ampliseq -profile test,<docker/singularity> --outdir <OUTDIR>

----------------------------------------------------------------------------------------
*/

process {
    resourceLimits = [
        cpus: 4,
        memory: '15.GB',
        time: '2.h'
    ]
}

params {
    config_profile_name = 'Test profile'
    config_profile_description = 'Minimal test dataset to check pipeline function'

    // Input data
    FW_primer = "GTGYCAGCMGCCGCGGTAA"
    RV_primer = "GGACTACNVGGGTWTCTAAT"
    input = params.pipelines_testdata_base_path + "ampliseq/samplesheets/Samplesheet.tsv"
    metadata = params.pipelines_testdata_base_path + "ampliseq/samplesheets/Metadata.tsv"
    dada_ref_taxonomy = "gtdb=R07-RS207"
    cut_dada_ref_taxonomy = true
    qiime_ref_taxonomy = "greengenes85"
    max_len_asv = 255
    filter_ssu = "bac"

    //this is to remove low abundance ASVs to reduce runtime of downstream processes
    min_samples = 2
    min_frequency = 10

    //produce average barplots
    metadata_category_barplot = "treatment1,badpairwise10"

    //restrict ANCOM analysis to higher taxonomic levels
    tax_agglom_max = 4

    sbdiexport = true

    qiime_adonis_formula = "treatment1,mix8"

    diversity_rarefaction_depth = 500

    vsearch_cluster = true

    // Test ANCOMBC
    ancombc = true
    ancombc_formula = "treatment1"
    ancombc_formula_reflvl = "treatment1::b"
    ancombc_effect_size = 2
    ancombc_significance = 0.00001
}
