# HG changeset patch # User galaxyp # Date 1481883567 18000 # Node ID 74144834b0bdb1e0610e2bc009d1f991cb778350 # Parent 2904d46167daa633bf9aa17f7c025cc7a10e7eb1 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/fasta_merge_files_and_filter_unique_sequences commit 9f9eba8df62b4db1ef35718d880a1bcda7457b99 diff -r 2904d46167da -r 74144834b0bd README.md --- a/README.md Fri Sep 26 14:02:14 2014 -0400 +++ b/README.md Fri Dec 16 05:19:27 2016 -0500 @@ -1,7 +1,7 @@ -GalaxyP - Protein Database Downloader -===================================== +GalaxyP - FASTA Merge Files and Filter Unique Sequences +======================================================= -* Home: +* Home: * Galaxy Tool Shed: * Tool ID: `fasta_merge_files_and_filter_unique_sequences` @@ -15,9 +15,9 @@ GalaxyP Community ----------------- -Current governing community policies for [GalaxyP](https://bitbucket.org/galaxyp/) and other information can be found at: +Current governing community policies for [GalaxyP](https://github.com/galaxyproteomics/) and other information can be found at: - + License @@ -35,7 +35,7 @@ Contributing ------------ -Contributions to this repository are reviewed through pull requests. If you would like your work acknowledged, please also add yourself to the Authors section. If your pull request is accepted, you will also be acknowledged in unless you opt-out. +Contributions to this repository are reviewed through pull requests. If you would like your work acknowledged, please also add yourself to the Authors section. If your pull request is accepted, you will also be acknowledged in Authors diff -r 2904d46167da -r 74144834b0bd fasta_merge_files_and_filter_unique_sequences.py --- a/fasta_merge_files_and_filter_unique_sequences.py Fri Sep 26 14:02:14 2014 -0400 +++ b/fasta_merge_files_and_filter_unique_sequences.py Fri Dec 16 05:19:27 2016 -0500 @@ -1,7 +1,7 @@ #!/usr/bin/env python -import sys,os +import os +import sys -#====================================================================== Classes class Sequence: ''' Holds protein sequence information ''' def __init__(self): @@ -56,7 +56,6 @@ pass else: seen_sequences.add(protein.sequence) - out_file.write(protein.header) out_file.write(os.linesep) out_file.write(protein.sequence) diff -r 2904d46167da -r 74144834b0bd fasta_merge_files_and_filter_unique_sequences.xml --- a/fasta_merge_files_and_filter_unique_sequences.xml Fri Sep 26 14:02:14 2014 -0400 +++ b/fasta_merge_files_and_filter_unique_sequences.xml Fri Dec 16 05:19:27 2016 -0500 @@ -1,23 +1,40 @@ - - - Concatenate FASTA database files together. Only first appearence - of each unique sequence will appear in output. - - - fasta_merge_files_and_filter_unique_sequences.py - $output - #for input in $inputs - $input.input - #end for - - - - - - - - - - - + + Concatenate FASTA database files together + + python + + + python '$__tool_directory__/fasta_merge_files_and_filter_unique_sequences.py' + '$output' + #for $input in $inputs: + '$input' + #end for + + + + + + + + + + + + + + + + diff -r 2904d46167da -r 74144834b0bd test-data/1.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/1.fa Fri Dec 16 05:19:27 2016 -0500 @@ -0,0 +1,6 @@ +>one +ACGTACGT +>two +GGTGTGTACGT +>three +ACGTACG diff -r 2904d46167da -r 74144834b0bd test-data/2.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/2.fa Fri Dec 16 05:19:27 2016 -0500 @@ -0,0 +1,6 @@ +>one_2 +ACGTACGT +>two_2 +GGTGTGTACGT +>three_2 +ACGTACGACTTTGGTTGTGT diff -r 2904d46167da -r 74144834b0bd test-data/res.fa --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/res.fa Fri Dec 16 05:19:27 2016 -0500 @@ -0,0 +1,8 @@ +>one +ACGTACGT +>two +GGTGTGTACGT +>three +ACGTACG +>three_2 +ACGTACGACTTTGGTTGTGT