Mercurial > repos > galaxy-australia > alphafold2
diff alphafold.xml @ 24:31f648b7555a draft
planemo upload for repository https://github.com/usegalaxy-au/tools-au commit 44db277529c0e189149235cf60a627193a792fba
| author | galaxy-australia |
|---|---|
| date | Sat, 05 Jul 2025 03:56:38 +0000 |
| parents | 2891385d6ace |
| children | c62f678e5555 |
line wrap: on
line diff
--- a/alphafold.xml Wed Apr 16 05:46:58 2025 +0000 +++ b/alphafold.xml Sat Jul 05 03:56:38 2025 +0000 @@ -17,7 +17,7 @@ <xref type="bio.tools">alphafold_2</xref> </xrefs> <requirements> - <container type="docker">neoformit/alphafold:v2.3.2_2</container> + <container type="docker">neoformit/alphafold:v2.3.2_0</container> </requirements> <required_files> <include path="scripts/outputs.py" /> @@ -52,23 +52,6 @@ #end if > alphafold.fasta -## Read MSA input ------------------------------------------------------------- - -#if $advanced.reuse_msa.selected and $advanced.reuse_msa.msas: - #for msa in $advanced.reuse_msa.msas: - #if $model_preset.selection == 'multimer': - && MSA_DIR=output/alphafold/msas/${msa.chain}/ - #else - && MSA_DIR=output/alphafold/msas/ - #end if - && mkdir -p \$MSA_DIR - && ln -s '$msa.file' ${msa.chain}.zip - && unzip ${msa.chain}.zip -d \$MSA_DIR - && rm ${msa.chain}.zip - #end for -#end if - - ## Env vars ------------------------------------------------------------------- && export TF_FORCE_UNIFIED_MEMORY=1 && export XLA_PYTHON_CLIENT_MEM_FRACTION=4.0 @@ -78,7 +61,7 @@ #if os.environ.get('PLANEMO_TESTING'): ## Run in testing mode (mocks a successful AlphaFold run by copying outputs) && echo "Creating dummy outputs for model_preset=$model_preset.selection..." - && bash '$__tool_directory__/scripts/mock_alphafold.sh' $model_preset.selection + && bash '$__tool_directory__/scripts/mock_alphafold.sh' $model_preset #else: ## Run AlphaFold && python /app/alphafold/run_alphafold.py @@ -116,18 +99,15 @@ --pdb70_database_path \${ALPHAFOLD_DB:-/data}/@TOOL_MINOR_VERSION@/pdb70/pdb70 #end if - #if $advanced.reuse_msa.selected and $advanced.reuse_msa.msas: - --use_precomputed_msas + ## Galaxy-specific options -------------------------------------------- + ## See https://github.com/neoformit/alphafold/tree/release_2.3.2_galaxy + #if $advanced.disable_amber_relax: + --disable_amber_relax #end if - ## Galaxy-specific options -------------------------------------------- - ## See https://github.com/neoformit/alphafold/tree/release_2.3.2_galaxy #if $advanced.limit_model_outputs: --output_models=$limit_model_outputs #end if - - $advanced.disable_amber_relax - $advanced.exit_after_msa ## End Galaxy-specific options ---------------------------------------- #end if @@ -139,10 +119,7 @@ $outputs.pae_csv $outputs.plots $outputs.plot_msa -$outputs.msa -$advanced.exit_after_msa -#if not $advanced.exit_after_msa: ## HTML output && mkdir -p '${ html.files_path }' && cp output/alphafold/extra/alphafold.html '${html}' @@ -152,17 +129,8 @@ ## The working directory ends up two levels deep and the visualization html page ## fails to load the PDB files as static assets. && (([ -d working ] && cp -r working/* .) || true) -#end if ]]></command> - <stdio> - <regex - match="concatenation axis must match exactly" - source="stderr" - level="fatal" - description="This error usually indicates that you are re-using an MSA that does not match the query sequence at the specified chain (e.g. position A should match the first sequence in the FASTA file)." - /> - </stdio> <inputs> <conditional name="fasta_or_text"> <param name="input_mode" type="select" label="Fasta Input" help="Protein sequence(s) to fold. Input can be fasta file from history, or text. Sequence must be valid IUPAC amino acid characters. We recommend submitting sequences with a maximum length of 3000AA, because run time scales exponentially with sequence length. If multiple-sequence FASTA file provided, multimer mode must be selected."> @@ -190,20 +158,20 @@ </param> <conditional name="model_preset"> - <param + <param name="selection" - type="select" - label="Model preset" - help="Select which prediction model to run. The monomer model is the most accurate for single protein prediction. The multimer model allows prediction of protein complexes." - > - <option value="monomer" selected="true">monomer - default prediction model</option> - <option value="monomer_ptm"> - monomer_ptm - slightly less accurate version of the monomer model, but provides a pairwise alignment error (PAE) matrix - </option> - <option value="multimer"> - multimer - model a protein complex (requires multi-sequence FASTA input) - </option> - </param> + type="select" + label="Model preset" + help="Select which prediction model to run. The monomer model is the most accurate for single protein prediction. The multimer model allows prediction of protein complexes." + > + <option value="monomer" selected="true">monomer - default prediction model</option> + <option value="monomer_ptm"> + monomer_ptm - slightly less accurate version of the monomer model, but provides a pairwise alignment error (PAE) matrix + </option> + <option value="multimer"> + multimer - model a protein complex (requires multi-sequence FASTA input) + </option> + </param> <when value="monomer"></when> <when value="monomer_ptm"></when> <when value="multimer"> @@ -219,7 +187,6 @@ </when> </conditional> - <section name="advanced" title="Advanced options" expanded="false"> <param name="max_template_date" @@ -242,8 +209,6 @@ label="Disable Amber relaxation" value="false" optional="true" - truevalue="--disable_amber_relax" - falsevalue="" help="Amber relaxation can be disabled to speed up processing time. Amber relaxation is used to refine predicted structures by removing stereochemical violations, resulting in more accurate prediction of side-chain geometry. Disabling this option with large proteins may lead to artefacts in the predicted structure. Disabling amber relax will result in the unrelaxed models being collected as PDB outputs." /> @@ -256,59 +221,13 @@ min="1" max="5" /> - - <param - name="exit_after_msa" - type="boolean" - label="MSA generation only" - value="false" - optional="true" - truevalue="--msa_only" - falsevalue="" - help="If you only want to collect MSAs, this option will exit early. MSAs will be collected and no prediction will be made." - /> - - <conditional name="reuse_msa"> - <param - name="selected" - type="boolean" - checked="false" - label="Reuse MSAs" - help="Reuse the multiple sequence alignments (MSAs) from a previous AlphaFold run. This can be useful if you are modelling the same protein sequence(s) in numerous runs (as a different multimer complex, for example), as it eliminates redundant processing and speeds up the run time. MSA collection can be enabled below under "Optional outputs"." - /> - <when value="true"> - <repeat name="msas" title="MSA archive(s)" help="The order of the MSAs provided here should match the order of your FASTA sequences. e.g. if you have an 'MSA-A' (collected from a previous job), and your first FASTA sequence matches the first sequence in the original job, then you should select that MSA and label it as chain 'A'. If the MSA matches the second sequence in your current FASTA file, you should label it as 'chain B', and so on."> - <param name="chain" type="select" label="Chain" help="Which chain in your query FASTA does this MSA correspond to? Note that the letter denotes the position in your FASTA input e.g. 'A' would be the first sequence."> - <option value="A">A</option> - <option value="B">B</option> - <option value="C">C</option> - <option value="D">D</option> - <option value="E">E</option> - <option value="F">F</option> - <option value="G">G</option> - <option value="H">H</option> - <option value="I">I</option> - <option value="J">J</option> - </param> - <param - name="file" - type="data" - multiple="false" - format="zip" - label="MSA ZIP archive" - optional="false" - help="ZIP archive extracted from a previous AlphaFold2 job. HINT - click the breadcrumbs to pick a dataset from within a collection." - /> - </repeat> - </when> - </conditional> </section> <section name="outputs" title="Optional outputs" expanded="false"> <param name="plots" type="boolean" - checked="true" + checked="false" truevalue="--plot" falsevalue="" label="pLDDT and PAE matrix plots (per model)" @@ -371,23 +290,12 @@ label="timings.json" help="A JSON file with timings reported for each phase of the AlphaFold run." /> - <param - name="msa" - type="boolean" - checked="false" - truevalue="--msa" - falsevalue="" - label="Multiple sequence alignments (MSAs)" - help="A ZIP archive of multiple sequence alignments which can be re-used in subsequent AlphaFold runs for increased efficiency. This is only useful if you will be modelling the same protein sequence again (in a different multimer complex, for example). For multimer runs, a ZIP archive will be created for each protein sequence input. The datasets will be labelled as an alphabetical sequence (e.g. A, B, C, ...) corresponding to the order of the FASTA sequence input." - /> </section> </inputs> <outputs> <expand macro="output_pdb_models" /> - <data name="html" format="html" label="${tool.name} on ${on_string}: Visualization"> - <filter>not advanced['exit_after_msa']</filter> - </data> + <data name="html" format="html" label="${tool.name} on ${on_string}: Visualization" /> <!-- Optional outputs --> <expand macro="output_plddts" /> <expand macro="output_msa_plot" /> @@ -397,7 +305,6 @@ <expand macro="output_plots" /> <expand macro="output_relax_json" /> <expand macro="output_timings_json" /> - <expand macro="output_msa" /> </outputs> <tests> @@ -510,7 +417,7 @@ | - **Inputs** + **Input** *Amino acid sequence* @@ -595,29 +502,6 @@ | | - *MSAs (optional)* - - | A collection of multiple sequence alignments (MSAs) in ZIP format. - | For each sequence in the input FASTA file, a separate ZIP archive will be created and labelled in alphabetical sequence (e.g. A, B, C) with respect to the position of the sequence in the query FASTA file. - | If "MSAs only" is selected, this output will be collected automatically. - | - | - - **Advanced features** - - *Reusing MSAs* - - | You can now re-use multiple sequence alignments (MSAs) from a previous AlphaFold run to speed up processing time. This is only useful if you wish to compute models for the same protein multiple times, for example in a one-to-many series of multimers. In these cases, the MSA for a given protein chain can be computed once and then re-used in subsequent jobs. To do this, you must begin by enabling the "Multiple sequence alignments (MSAs)" output in the "Optional outputs" section. This should result in a collection of ZIP archives being collected as an output. - | - | Once you have a collection of MSAs that you can re-use, you can then select "Reuse MSAs" in the "Advanced options" section. This will allow you to select the MSA ZIP archive(s) from your history. It is important that you select an MSA archive corresponding to a specific chain in your input FASTA file. If your MSA archive relates to the first chain in your FASTA file, you should select position "A". If your MSA archive relates to the second chain in your FASTA file, you should select position "B", and so on. Note that an MSA archive labelled MSA-A corresponds to the sequence order in the generating run. This does not necessarily correspond to the current run! Be sure to check the order of your sequences/chains. To avoid confusion here, you could re-label the MSA archives in your History to match the name of the protein/chain they were generated for. - | - - *MSA-only mode* - - | To speed up generation of MSAs, you can run AlphaFold in "MSA generation only" mode, available under "Advanced options". Use this mode if you only want to obtain MSAs and don't want to waste time computing a model. If you have a list of MSAs that you want to generate, you can put them all into one FASTA file and submit them as an MSA-only job in multimer mode. This will result in a collection of MSA archives - one for each sequence provided. To make things less confusing when you come to reuse these MSAs, you may wish to rename each archive in the collection to match the corresponding protein/chain in your input FASTA file - this makes it easy to select the right one when you come to reuse them in a later job! - | - | - **AlphaFold configuration** | We have configured AlphaFold to run with the parameters suggested by default on `AlphaFold's GitHub <https://github.com/deepmind/alphafold>`_.
