Skip to content

Commit

Permalink
fix split msa
Browse files Browse the repository at this point in the history
  • Loading branch information
ziadbkh committed May 20, 2024
1 parent 17eef1c commit 491b355
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/local/run_alphafold2_msa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ process RUN_ALPHAFOLD2_MSA {
path ('uniprot/*')

output:
path ("${fasta.baseName}*")
path ("${fasta.baseName}.features.pkl"), emit: features
tuple val(meta), path ("${fasta.baseName}*")
tuple val(meta), path ("${fasta.baseName}.features.pkl"), emit: features
path "versions.yml" , emit: versions

when:
Expand Down
14 changes: 9 additions & 5 deletions workflows/alphafold2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ workflow ALPHAFOLD2 {
ch_versions = ch_versions.mix(RUN_ALPHAFOLD2_MSA.out.versions)

RUN_ALPHAFOLD2_MSA.out.features
.map{[it.getName().split("\\.")[0], [it]]}
.set{ch_features}

.map{[it[0].id, it[0], it[1]]}
.join(
ch_fasta
.map{[it[0].id, it[0], it[1]]}
)
.set{ch_af_all}

RUN_ALPHAFOLD2_PRED (
ch_fasta,
ch_af_all.map{[it[3], it[4]]},
full_dbs,
alphafold2_model_preset,
ch_alphafold2_params,
Expand All @@ -153,7 +157,7 @@ workflow ALPHAFOLD2 {
ch_uniref90,
ch_pdb_seqres,
ch_uniprot,
RUN_ALPHAFOLD2_MSA.out.features
ch_af_all.map{it[2]}
)
ch_multiqc_rep = RUN_ALPHAFOLD2_PRED.out.multiqc.collect()
ch_versions = ch_versions.mix(RUN_ALPHAFOLD2_PRED.out.versions)
Expand Down

0 comments on commit 491b355

Please sign in to comment.