Skip to content
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

replace kofamscan with eggnog #17

Open
taylorreiter opened this issue Oct 5, 2020 · 0 comments
Open

replace kofamscan with eggnog #17

taylorreiter opened this issue Oct 5, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@taylorreiter
Copy link
Member

Or add eggnog as a separate module. I think eggnog is probably more widely used, and it is definitely more user friendly. I'm not sure that eggnog does an hmm search though, so kofamscan may still be a good option for e.g. environmental metagenomes etc.

Some code for how to run eggnog

rule eggnog_multifasta_query_genes:
    input:
        faa = "outputs/gather_matches_loso_multifasta/all-multifasta-query-results.faa",
        db = "inputs/eggnog_db/eggnog.db"
    output: "outputs/gather_matches_loso_multifasta/all-multifasta-query-results.emapper.annotations"
    params:
        cpus = 8, 
        outdir = "outputs/gather_matches_loso_multifasta/",
        dbdir = "inputs/eggnog_db",
        out_prefix = "all-multifasta-query-results"
    conda: 'envs/eggnog.yml'
    shell:'''
    emapper.py --cpu {params.cpus} -i {input.faa} --output {params.out_prefix} --output_dir {params.outdir} \
                           -m diamond -d none --tax_scope auto --go_evidence non-electronic --target_orthologs all \
                           --seed_ortholog_evalue 0.001 --seed_ortholog_score 60 --query-cover 20 --subject-cover 0 \
                           --override --temp_dir tmp/ -d bact --data_dir {params.dbdir}
    '''
@taylorreiter taylorreiter added enhancement New feature or request help wanted Extra attention is needed labels Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant