Skip to content

Commit

Permalink
feat(run_alphafold2_msa): Removed hardcoded paths and changed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nbtm-sh committed Aug 8, 2024
1 parent c218ad2 commit edff052
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/local/run_alphafold2_msa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ process RUN_ALPHAFOLD2_MSA {

script:
def args = task.ext.args ?: ''
def db_preset = db_preset ? "full_dbs --bfd_database_path=${params.bfd_variable}bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt --uniclust30_database_path=${params.uniclust30_variable}uniclust30_2018_08" :
"reduced_dbs --small_bfd_database_path=${params.small_bfd_path}bfd-first_non_consensus_sequences.fasta"
def db_preset = db_preset ? "full_dbs --bfd_database_path=${params.bfd_dir_path}${params.bfd_metaclust_clu_complete_id30_c90_final_seq_sorted_opt_name} --uniclust30_database_path=${params.uniclust30_dir_path}${uniclust30_db_name}" :
"reduced_dbs --small_bfd_database_path=${params.small_bfd_path}${params.bfd_first_non_consensus_sequences_name}"
if (alphafold2_model_preset == 'multimer') {
alphafold2_model_preset += " --pdb_seqres_database_path=${params.pdb_seqres_variable}pdb_seqres.txt --uniprot_database_path=${params.uniprot_variable}/uniprot.fasta "
alphafold2_model_preset += " --pdb_seqres_database_path=${params.pdb_seqres_dir_path}${params.pdb_seqres_txt_name} --uniprot_database_path=${params.uniprot_dir_path}/${params.uniprot_fasta_name} "
}
else {
alphafold2_model_preset += " --pdb70_database_path=${params.pdb70_variable}pdb70 "
alphafold2_model_preset += " --pdb70_database_path=${params.pdb70_dir_path}${params.pdb70_name} "
}
"""
#if [ -f pdb_seqres/pdb_seqres.txt ]
Expand All @@ -55,8 +55,8 @@ process RUN_ALPHAFOLD2_MSA {
--db_preset=${db_preset} \
--output_dir=\$PWD \
--data_dir=\$PWD \
--uniref90_database_path=${params.uniref90_variable}uniref90.fasta \
--mgnify_database_path=${params.mgnify_database_path}/mgy_clusters_2022_05.fa \
--uniref90_database_path=${params.uniref90_dir_path}/${params.uniref90_fasta_name} \
--mgnify_database_path=${params.mgnify_database_path}/${params.mgy_clusters_fasta_name} \
--template_mmcif_dir=${params.template_mmcif_dir} \
--obsolete_pdbs_path=${params.obsolete_pdbs_path} \
$args
Expand Down

0 comments on commit edff052

Please sign in to comment.