Mercurial > repos > iuc > dada2_primercheck
annotate dada2_primercheck.xml @ 2:c05ea8df8ad2 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dada2 commit f65944aa0547c2fbe4b746cf443c85b2a76e9a48
| author | iuc |
|---|---|
| date | Sat, 20 Dec 2025 14:08:25 +0000 |
| parents | c7d45735c578 |
| children |
| rev | line source |
|---|---|
|
1
c7d45735c578
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit bbbc0e71b1db299a7c7296f25ac7adcccd27fbe3
iuc
parents:
0
diff
changeset
|
1 <tool id="dada2_primerCheck" name="dada2: primer check" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
|
0
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
2 <description></description> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
3 <macros> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
5 </macros> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
6 <expand macro="bio_tools"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
8 <expand macro="stdio"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
9 <expand macro="version_command"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
10 <command detect_errors="exit_code"><![CDATA[ |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
11 Rscript '$dada2_script' |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
12 ]]></command> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
13 <configfiles> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
14 <configfile name="dada2_script"><![CDATA[ |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
15 #import re |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
16 library(Biostrings, quietly=T) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
17 library(ShortRead, quietly=T) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
18 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
19 FWD <- "$forward_primer" |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
20 REV <- "$reverse_primer" |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
21 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
22 allOrients <- function(primer) { |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
23 # Create all orientations of the input sequence |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
24 dna <- DNAString(primer) # The Biostrings works w/ DNAString objects rather than character vectors |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
25 orients <- c(Forward = dna, Complement = Biostrings::complement(dna), Reverse = Biostrings::reverse(dna), RevComp = Biostrings::reverseComplement(dna)) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
26 return(sapply(orients, toString)) # Convert back to character vector |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
27 } |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
28 FWD.orients <- allOrients(FWD) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
29 REV.orients <- allOrients(REV) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
30 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
31 primerHits <- function(primer, fn) { |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
32 ## Counts number of reads in which the primer is found |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
33 nhits <- vcountPattern(primer, sread(readFastq(fn)), fixed = FALSE) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
34 return(sum(nhits > 0)) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
35 } |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
36 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
37 df <- NULL; |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
38 #for $i, $read in enumerate($paired_cond.reads): |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
39 #set elid = re.sub('[^\w\-\.]', '_', str($read.element_identifier)) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
40 #if $paired_cond.paired_select == "single" |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
41 #set fwd_reads = $read |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
42 #else |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
43 #set fwd_reads = $read.forward |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
44 #set rev_reads = $read.reverse |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
45 #end if |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
46 df <- rbind(df, c('$elid', 'FWD', 'FWD', sapply(FWD.orients, primerHits, fn = '$fwd_reads'))) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
47 df <- rbind(df, c('$elid', 'REV', 'FWD', sapply(REV.orients, primerHits, fn = '$fwd_reads'))) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
48 #if $paired_cond.paired_select != "single" |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
49 df <- rbind(df, c('$elid', 'FWD', 'REV', sapply(FWD.orients, primerHits, fn = '$rev_reads'))) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
50 df <- rbind(df, c('$elid', 'REV', 'REV', sapply(REV.orients, primerHits, fn = '$rev_reads'))) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
51 #end if |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
52 #end for |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
53 colnames(df) <- c('Sample', 'Primer', 'ReadDir', 'Sequence', 'Complement', 'Reverse', 'RevComp') |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
54 write.table(df, "$out", quote=F, sep="\t", row.names = F, col.names = T) |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
55 ]]></configfile> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
56 </configfiles> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
57 <inputs> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
58 <expand macro="fastq_input" multiple="True" collection_type="list:paired" argument_fwd="fl" argument_rev="fl"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
59 <param name="forward_primer" type="text" label="Forward primer sequence"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
60 <validator type="empty_field" message="You need to specify a forward primer sequence"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
61 </param> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
62 <param name="reverse_primer" type="text" label="Reverse primer sequence"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
63 <validator type="empty_field" message="You need to specify a reverse primer sequence"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
64 </param> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
65 </inputs> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
66 <outputs> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
67 <data name="out" format="tabular"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
68 </outputs> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
69 <tests> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
70 <!-- paired data in paired collection --> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
71 <test expect_num_outputs="1"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
72 <conditional name="paired_cond"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
73 <param name="paired_select" value="paired"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
74 <param name="reads"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
75 <collection type="list:paired"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
76 <element name="F3D0_S188_L001"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
77 <collection type="paired"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
78 <element name="forward" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
79 <element name="reverse" value="F3D0_S188_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
80 </collection> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
81 </element> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
82 <element name="F3D141_S207_L001"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
83 <collection type="paired"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
84 <element name="forward" value="F3D141_S207_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
85 <element name="reverse" value="F3D141_S207_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
86 </collection> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
87 </element> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
88 </collection> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
89 </param> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
90 </conditional> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
91 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
92 <param name="forward_primer" value="ACCTGCGGARGGATCA"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
93 <param name="reverse_primer" value="GAGATCCRTTGYTRAAAGTT"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
94 <output name="out"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
95 <assert_contents> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
96 <has_n_lines n="9"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
97 <has_n_columns n="7"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
98 </assert_contents> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
99 </output> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
100 </test> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
101 <!-- single end data --> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
102 <test expect_num_outputs="1"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
103 <conditional name="paired_cond"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
104 <param name="paired_select" value="single"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
105 <param name="reads" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
106 </conditional> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
107 <param name="forward_primer" value="ACCTGCGGARGGATCA"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
108 <param name="reverse_primer" value="GAGATCCRTTGYTRAAAGTT"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
109 <output name="out"> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
110 <assert_contents> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
111 <has_n_lines n="3"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
112 <has_n_columns n="7"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
113 </assert_contents> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
114 </output> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
115 </test> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
116 </tests> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
117 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
118 <help><![CDATA[ |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
119 Description |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
120 ........... |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
121 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
122 Simple check for primer sequences in sequencing data. The tool counts the number |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
123 of occurrences of the primer sequence, its complement, the reverse and the |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
124 reverse complement. |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
125 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
126 See also: https://benjjneb.github.io/dada2/ITS_workflow.html#identify-primers |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
127 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
128 Usage |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
129 ..... |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
130 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
131 **Input** FASTQ datasets and forward and reverse primers |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
132 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
133 **Output** a table listing the counts of the different occurrences in the read files. |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
134 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
135 |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
136 @HELP_OVERVIEW@ |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
137 ]]></help> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
138 <expand macro="citations"/> |
|
40cd037434d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit 3dd3145db6ed58efc3bf5f71e96515173967fc72
iuc
parents:
diff
changeset
|
139 </tool> |
