Mercurial > repos > galaxy-australia > alphafold2
comparison alphafold.xml @ 1:6c92e000d684 draft
"planemo upload for repository https://github.com/usegalaxy-au/galaxy-local-tools commit a510e97ebd604a5e30b1f16e5031f62074f23e86"
author | galaxy-australia |
---|---|
date | Tue, 01 Mar 2022 02:53:05 +0000 |
parents | 7ae9d78b06f5 |
children | 58854e2e6654 |
comparison
equal
deleted
inserted
replaced
0:7ae9d78b06f5 | 1:6c92e000d684 |
---|---|
1 <tool id="alphafold" name="alphafold" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01"> | 1 <tool id="alphafold" name="alphafold" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01"> |
2 <description>Alphafold v2.0: AI-guided 3D structure prediction of proteins</description> | 2 <description>Alphafold v2.0: AI-guided 3D structure prediction of proteins</description> |
3 <macros> | 3 <macros> |
4 <token name="@TOOL_VERSION@">2.0.0</token> | 4 <token name="@TOOL_VERSION@">2.0.0</token> |
5 <token name="@VERSION_SUFFIX@">0</token> | 5 <token name="@VERSION_SUFFIX@">0</token> |
6 </macros> | 6 </macros> |
7 <edam_topics> | 7 <edam_topics> |
8 <edam_topic>topic_0082</edam_topic> | 8 <edam_topic>topic_0082</edam_topic> |
9 </edam_topics> | 9 </edam_topics> |
10 <edam_operations> | 10 <edam_operations> |
11 <edam_operation>operation_0474</edam_operation> | 11 <edam_operation>operation_0474</edam_operation> |
12 </edam_operations> | 12 </edam_operations> |
13 <xrefs> | |
14 <xref type="bio.tools">alphafold_2.0</xref> | |
15 </xrefs> | |
13 <requirements> | 16 <requirements> |
14 <container type="docker">neoformit/alphafold-galaxy@sha256:6adf7f07062b307d08c11130c39a28abc7c290b23f6c347b09c2c649c054c338</container> | 17 <container type="docker">neoformit/alphafold:latest</container> |
15 </requirements> | 18 </requirements> |
16 <command detect_errors="exit_code"><![CDATA[ | 19 <command detect_errors="exit_code"><![CDATA[ |
17 ## fasta setup ---------------------------- | 20 |
18 #if $fasta_or_text.input_mode == 'history': | 21 ## $ALPHAFOLD_DB variable should point to the location of the AlphaFold |
19 cp '$fasta_or_text.fasta_file' input.fasta && | 22 ## databases - defaults to /data |
20 | 23 |
21 #elif $fasta_or_text.input_mode == 'textbox': | 24 ## fasta setup ---------------------------- |
22 echo '$fasta_or_text.fasta_text' > input.fasta && | 25 #if $fasta_or_text.input_mode == 'history': |
23 #end if | 26 cp '$fasta_or_text.fasta_file' input.fasta && |
24 | 27 |
25 python3 '$__tool_directory__/validate_fasta.py' input.fasta && | 28 #elif $fasta_or_text.input_mode == 'textbox': |
26 | 29 echo '$fasta_or_text.fasta_text' > input.fasta && |
27 ## env vars ------------------------------- | 30 #end if |
28 export TF_FORCE_UNIFIED_MEMORY=1 && | 31 |
29 export XLA_PYTHON_CLIENT_MEM_FRACTION=4.0 && | 32 python3 '$__tool_directory__/validate_fasta.py' input.fasta && |
30 export DATE=`date +"%Y-%m-%d"` && | 33 |
31 | 34 ## env vars ------------------------------- |
32 ## run alphafold ------------------------- | 35 export TF_FORCE_UNIFIED_MEMORY=1 && |
33 ln -s /app/alphafold/alphafold alphafold && | 36 export XLA_PYTHON_CLIENT_MEM_FRACTION=4.0 && |
34 python /app/alphafold/run_alphafold.py | 37 export DATE=`date +"%Y-%m-%d"` && |
35 --fasta_paths alphafold.fasta | 38 |
36 --output_dir output | 39 ## run alphafold ------------------------- |
37 --data_dir /data ## location of the alphafold databases on pulsar node --> could this maybe a env var? $ALPHAFOLD_DB --> \${ALPHAFOLD_DB:-/data} | 40 python /app/alphafold/run_alphafold.py |
38 --uniref90_database_path /data/uniref90/uniref90.fasta | 41 --fasta_paths alphafold.fasta |
39 --mgnify_database_path /data/mgnify/mgy_clusters_2018_12.fa | 42 --output_dir output |
40 --pdb70_database_path /data/pdb70/pdb70 | 43 --data_dir \${ALPHAFOLD_DB:-/data} |
41 --template_mmcif_dir /data/pdb_mmcif/mmcif_files | 44 --uniref90_database_path \${ALPHAFOLD_DB:-/data}/uniref90/uniref90.fasta |
42 --obsolete_pdbs_path /data/pdb_mmcif/obsolete.dat | 45 --mgnify_database_path \${ALPHAFOLD_DB:-/data}/mgnify/mgy_clusters_2018_12.fa |
43 --max_template_date=\$DATE | 46 --pdb70_database_path \${ALPHAFOLD_DB:-/data}/pdb70/pdb70 |
44 --bfd_database_path /data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt | 47 --template_mmcif_dir \${ALPHAFOLD_DB:-/data}/pdb_mmcif/mmcif_files |
45 --uniclust30_database_path /data/uniclust30/uniclust30_2018_08/uniclust30_2018_08 | 48 --obsolete_pdbs_path \${ALPHAFOLD_DB:-/data}/pdb_mmcif/obsolete.dat |
46 && | 49 --max_template_date=\$DATE |
47 | 50 --bfd_database_path \${ALPHAFOLD_DB:-/data}/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt |
48 ## for dry run testing | 51 --uniclust30_database_path \${ALPHAFOLD_DB:-/data}/uniclust30/uniclust30_2018_08/uniclust30_2018_08 |
49 ## cp -r '$__tool_directory__/output' . && | 52 --use_gpu_relax=True |
50 | 53 && |
51 ## generate extra outputs ----------------- | 54 |
52 ## plddts | 55 ## Uncomment for "dummy run" - skip alphafold run and read output from test-data |
53 python3 '$__tool_directory__/gen_extra_outputs.py' output/alphafold $output_plddts && | 56 ## cp -r '$__tool_directory__/output' . && |
54 | 57 |
55 ## html | 58 ## Generate additional outputs ------------ |
56 mkdir -p '${ html.files_path }' && | 59 python3 '$__tool_directory__/gen_extra_outputs.py' output/alphafold $output_plddts && |
57 cp '$__tool_directory__/alphafold.html' ${html} && | 60 |
58 cp output/alphafold/ranked_*.pdb '${html.files_path}' && | 61 ## HTML output |
59 | 62 mkdir -p '${ html.files_path }' && |
60 ## For some reason the working directory ends up being one level too deep! | 63 cp '$__tool_directory__/alphafold.html' '${html}' && |
61 mv working/* . | 64 cp output/alphafold/ranked_*.pdb '${html.files_path}' |
65 | |
62 ]]></command> | 66 ]]></command> |
63 <inputs> | 67 <inputs> |
64 <conditional name="fasta_or_text"> | 68 <conditional name="fasta_or_text"> |
65 <param name="input_mode" type="select" label="Fasta Input" help="Single protein sequence to fold. Input can be fasta file from history, or text. Provide only 1 sequence per job."> | 69 <param name="input_mode" type="select" label="Fasta Input" help="Single protein sequence to fold. Input can be fasta file from history, or text. Provide only 1 sequence per job."> |
66 <option value="history">Use fasta from history</option> | 70 <option value="history">Use fasta from history</option> |