-
Notifications
You must be signed in to change notification settings - Fork 418
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
[WIP] Update cd-hit to 4.8.1, add cd-hit-454, cd-hit-dup, cd-hit-lap #3328
Open
stephanflemming
wants to merge
20
commits into
galaxyproject:main
Choose a base branch
from
shubh2565:cdhit4.8.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
10d84cb
updated cdhit tool wrapper file
shubh2565 547f7c5
Update cd_hit.xml
shubh2565 9e0e4e7
Update cd_hit.xml
shubh2565 9a68d51
Update cd_hit.xml
shubh2565 239f4d3
Update cd_hit.xml
shubh2565 1e580c5
added a new wrapper file for cd-hit subcommands
shubh2565 afa157b
added wrapper files for cd-hit-lap and cd-hit-div subcommands
shubh2565 fb1c40c
added wrapper file for cd-hit-du and updated wrapper file for cd-hit-lap
shubh2565 9b8ed62
add macros.xml
stephanflemming 42e977a
some cleanups
stephanflemming 003f105
some cleanups
stephanflemming e9490d0
add cd-hit-dup
stephanflemming 52c8135
bump auxtools to 4.8.1
stephanflemming a70fbb5
some fixes
stephanflemming 2f322f0
add more tests to cd-hit
stephanflemming 4b81255
add paired-end option
stephanflemming bc335b4
some fixes
stephanflemming c202d17
some fixes
stephanflemming 79c5ec6
remove unused files
stephanflemming e71791e
remove unused files
stephanflemming 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
<tool id="cd_hit_454" name="CD-HIT 454" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> | ||
<description>identifies duplicates from 454 reads</description> | ||
<macros> | ||
<import>macros.xml</import> | ||
</macros> | ||
<expand macro="requirements"/> | ||
<version_command><![CDATA[cd-hit | grep "CD-HIT version" | cut -d" " -f 4]]></version_command> | ||
<command detect_errors="exit_code"><![CDATA[ | ||
cd-hit-454 | ||
-i '$i' | ||
-o 'result' | ||
-b $b | ||
-c $c | ||
-n $n | ||
-aL $aL | ||
-AL $AL | ||
-aS $aS | ||
-AS $AS | ||
$g | ||
-D $D | ||
-match $match | ||
-mismatch $mismatch | ||
-gap $gap | ||
-gap-ext $gapext | ||
$out.bak | ||
-M \${GALAXY_MEMORY_MB:-0} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is 0 a useful default? |
||
-T \${GALAXY_SLOTS:-1} | ||
@LOG@ | ||
]]></command> | ||
<inputs> | ||
<param argument="-i" type="data" format="fasta" label="Select file with reads"/> | ||
<expand macro="c" default="0.98"/> | ||
<expand macro="b" default="10"/> | ||
<expand macro="n" default="10"/> | ||
<expand macro="aL"/> | ||
<expand macro="AL"/> | ||
<expand macro="aS"/> | ||
<expand macro="AS"/> | ||
<expand macro="g"/> | ||
<param argument="-D" type="integer" value="1" label="Set maximum size per indel"/> | ||
<expand macro="match"/> | ||
<expand macro="mismatch" default="-1"/> | ||
<expand macro="gap" default="-3"/> | ||
<expand macro="gapext"/> | ||
<section name="out" title="Output options"> | ||
<expand macro="bak"/> | ||
<expand macro="log"/> | ||
</section> | ||
</inputs> | ||
<outputs> | ||
<expand macro="out_clusters"/> | ||
<expand macro="out_clusters_backup"/> | ||
<expand macro="out_sequences"/> | ||
<expand macro="out_log"/> | ||
</outputs> | ||
<tests> | ||
<!-- #1 default --> | ||
<test expect_num_outputs="4"> | ||
<param name="i" value="nucleotide_sequences.fasta"/> | ||
<section name="out"> | ||
<param name="bak" value="true"/> | ||
<param name="log" value="true"/> | ||
</section> | ||
<output name="out_clusters"> | ||
<assert_contents> | ||
<has_n_lines n="65"/> | ||
<has_line line=">Cluster 27"/> | ||
<has_text_matching expression="0.+183nt.+"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_clusters_backup"> | ||
<assert_contents> | ||
<has_n_lines n="37"/> | ||
<has_text_matching expression="6.+241nt"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_sequences"> | ||
<assert_contents> | ||
<has_n_lines n="56"/> | ||
<has_line line=">M44Fcsw_200453"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_log"> | ||
<assert_contents> | ||
<has_line line="program completed !"/> | ||
</assert_contents> | ||
</output> | ||
</test> | ||
<!-- #2 custom --> | ||
<test expect_num_outputs="4"> | ||
<param name="i" value="nucleotide_sequences.fasta"/> | ||
<param name="c" value="0.97"/> | ||
<param name="b" value="9"/> | ||
<param name="n" value="11"/> | ||
<param name="aL" value="0.9"/> | ||
<param name="AL" value="99999998"/> | ||
<param name="aS" value="0.9"/> | ||
<param name="AS" value="99999998"/> | ||
<param name="g" value="true"/> | ||
<param name="D" value="2"/> | ||
<param name="match" value="3"/> | ||
<param name="mismatch" value="-2"/> | ||
<param name="gap" value="-4"/> | ||
<param name="gapext" value="-2"/> | ||
<section name="out"> | ||
<param name="bak" value="true"/> | ||
<param name="log" value="true"/> | ||
</section> | ||
<output name="out_clusters"> | ||
<assert_contents> | ||
<has_n_lines n="60"/> | ||
<has_line line=">Cluster 22"/> | ||
<has_text_matching expression="0.+183nt.+"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_clusters_backup"> | ||
<assert_contents> | ||
<has_n_lines n="37"/> | ||
<has_text_matching expression="3.+241nt.+"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_sequences"> | ||
<assert_contents> | ||
<has_n_lines n="46"/> | ||
<has_line line=">M43Fcsw_250770"/> | ||
</assert_contents> | ||
</output> | ||
<output name="out_log"> | ||
<assert_contents> | ||
<has_line line="program completed !"/> | ||
</assert_contents> | ||
</output> | ||
</test> | ||
</tests> | ||
<help><![CDATA[ | ||
.. class:: infomark | ||
|
||
**What it does** | ||
|
||
@WID@ | ||
|
||
*CD-HIT-454* is part of CD-HIT and identifies duplicated 454 reads by reengineering *CD-HIT-EST*. Duplicates are either exactly identical or meet these criteria: | ||
|
||
(1) they start at the same position | ||
(2) their lengths can be different, but shorter one must be fully aligned with the longer one (the seed) | ||
(3) they can only have 4% mismatches (insertion, deletion, and substitution) | ||
(4) only 1 base is allowed per insertion or deletion | ||
|
||
Here, 3. and 4. can be adjusted by users. Mismatches are allowed in order to tolerate sequencing errors. Visit the `project wiki <https://github.com/weizhongli/cdhit/wiki/3.-User's-Guide#CDHIT454_clustering>`_ for a detailed description. | ||
|
||
**Input** | ||
|
||
Reads in FASTA format. | ||
|
||
**Output** | ||
|
||
- Representative sequences in FASTA format | ||
@CLUSTER@ | ||
@CLUSTER_BACKUP@ | ||
- Log file | ||
|
||
.. class:: infomark | ||
|
||
**References** | ||
|
||
@REFERENCES@ | ||
]]></help> | ||
<expand macro="citations"/> | ||
</tool> |
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.
please add a recent profile
edam_topics, edam_operations and xrefs would be nice to have as well