8000 local module: peptidePrediction · Issue #96 · nf-core/epitopeprediction · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

local module: peptidePrediction #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marissaDubbelaar opened this issue Oct 27, 2021 · 2 comments
Closed

local module: peptidePrediction #96

marissaDubbelaar opened this issue Oct 27, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@marissaDubbelaar
Copy link
Contributor

Uses epaa.py that is dependent on fred2 and mhcflurry(?)

@marissaDubbelaar marissaDubbelaar self-assigned this Oct 28, 2021
@marissaDubbelaar
Copy link
Contributor Author
// Import generic module functions
include { initOptions; saveFiles; getSoftwareName; getProcessName } from './functions'

params.options = [:]
options        = initOptions(params.options)

process PEPTIDE_PREDICTION {
    publishDir "${params.outdir}",
        mode: params.publish_dir_mode,
        saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'', meta:[:], publish_by_meta:[]) }

    // Change the container
    conda (params.enable_conda ? "conda-forge::snpsift:4.2" : null)
    if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
        container "https://depot.galaxyproject.org/singularity/snpsift:4.2--hdfd78af_5"
    } else {
        container "quay.io/biocontainers/snpsift:4.2--hdfd78af_5"
    }
    
    input:
        tuple val(meta), path(splitted_files) // combine the different paths?
    output:
        tuple val(meta), path("*.tsv"), path("*.json"), path("*.fasta"), emit predicted

    script:
        // def input_type = params.peptides ? "--peptides ${splitted_files}" : params.proteins ?  "--peptides ${splitted_files}" : "--somatic_mutations ${splitted_files}" // Add this in the groovy file
        // def ref_prot = params.proteome ? "--proteome ${params.proteome}" : "" // Add this in the groovy file
        // def wt = params.wild_type ? "--wild_type" : "" // Add this in the groovy file
        // def fasta_output = params.fasta_output ? "--fasta_output" : "" // Add this in the groovy file

        // $options.args = include ref_prot, wt, fasta_output, input_type there (finish with the input_type)


    // Is it necessary to keep software versions in, it is only used atm to include the version of syfpheiti 
    """
    epaa.py ${input_type} --identifier ${splitted_files.baseName} \
                        --alleles ${meta.alleles} \
                        --mhcclass ${params.mhc_class} \
                        --max_length ${params.max_peptide_length} \
                        --min_length ${params.min_peptide_length} \
                        --tools ${params.tools} \
                        --versions ${software_versions} \
                        --reference ${params.genome_version} \
                        $options.args ${splitted_files}
    """

}

@marissaDubbelaar marissaDubbelaar added dsl2 enhancement New feature or request labels Oct 28, 2021
@ggabernet
Copy link
Member

Added in #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
0