Mercurial > repos > iuc > dada2_primercheck
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1:c7d45735c578 | 2:c05ea8df8ad2 |
|---|---|
| 37 df <- NULL; | 37 df <- NULL; |
| 38 #for $i, $read in enumerate($paired_cond.reads): | 38 #for $i, $read in enumerate($paired_cond.reads): |
| 39 #set elid = re.sub('[^\w\-\.]', '_', str($read.element_identifier)) | 39 #set elid = re.sub('[^\w\-\.]', '_', str($read.element_identifier)) |
| 40 #if $paired_cond.paired_select == "single" | 40 #if $paired_cond.paired_select == "single" |
| 41 #set fwd_reads = $read | 41 #set fwd_reads = $read |
| 42 #elif $paired_cond.paired_select == "separate" | |
| 43 #set fwd_reads = $read | |
| 44 #set rev_reads = $paired_cond.sdaer[i] | |
| 45 #else | 42 #else |
| 46 #set fwd_reads = $read.forward | 43 #set fwd_reads = $read.forward |
| 47 #set rev_reads = $read.reverse | 44 #set rev_reads = $read.reverse |
| 48 #end if | 45 #end if |
| 49 df <- rbind(df, c('$elid', 'FWD', 'FWD', sapply(FWD.orients, primerHits, fn = '$fwd_reads'))) | 46 df <- rbind(df, c('$elid', 'FWD', 'FWD', sapply(FWD.orients, primerHits, fn = '$fwd_reads'))) |
| 50 df <- rbind(df, c('$elid', 'REV', 'FWD', sapply(REV.orients, primerHits, fn = '$fwd_reads'))) | 47 df <- rbind(df, c('$elid', 'REV', 'FWD', sapply(REV.orients, primerHits, fn = '$fwd_reads'))) |
| 51 #if $paired_cond.paired_select != "single" | 48 #if $paired_cond.paired_select != "single" |
| 52 #if $paired_cond.paired_select == "separate" | |
| 53 #set elid = re.sub('[^\w\-\.]', '_', str($paired_cond.sdaer[i].element_identifier)) | |
| 54 #end if | |
| 55 df <- rbind(df, c('$elid', 'FWD', 'REV', sapply(FWD.orients, primerHits, fn = '$rev_reads'))) | 49 df <- rbind(df, c('$elid', 'FWD', 'REV', sapply(FWD.orients, primerHits, fn = '$rev_reads'))) |
| 56 df <- rbind(df, c('$elid', 'REV', 'REV', sapply(REV.orients, primerHits, fn = '$rev_reads'))) | 50 df <- rbind(df, c('$elid', 'REV', 'REV', sapply(REV.orients, primerHits, fn = '$rev_reads'))) |
| 57 #end if | 51 #end if |
| 58 #end for | 52 #end for |
| 59 colnames(df) <- c('Sample', 'Primer', 'ReadDir', 'Sequence', 'Complement', 'Reverse', 'RevComp') | 53 colnames(df) <- c('Sample', 'Primer', 'ReadDir', 'Sequence', 'Complement', 'Reverse', 'RevComp') |
| 102 <has_n_lines n="9"/> | 96 <has_n_lines n="9"/> |
| 103 <has_n_columns n="7"/> | 97 <has_n_columns n="7"/> |
| 104 </assert_contents> | 98 </assert_contents> |
| 105 </output> | 99 </output> |
| 106 </test> | 100 </test> |
| 107 <!-- paired data in separate collection --> | |
| 108 <test expect_num_outputs="1"> | |
| 109 <conditional name="paired_cond"> | |
| 110 <param name="paired_select" value="separate"/> | |
| 111 <param name="reads" value="F3D0_S188_L001_R1_001.fastq.gz,F3D141_S207_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> | |
| 112 <param name="sdaer" value="F3D0_S188_L001_R2_001.fastq.gz,F3D141_S207_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/> | |
| 113 </conditional> | |
| 114 | |
| 115 <param name="forward_primer" value="ACCTGCGGARGGATCA"/> | |
| 116 <param name="reverse_primer" value="GAGATCCRTTGYTRAAAGTT"/> | |
| 117 <output name="out"> | |
| 118 <assert_contents> | |
| 119 <has_n_lines n="9"/> | |
| 120 <has_n_columns n="7"/> | |
| 121 </assert_contents> | |
| 122 </output> | |
| 123 </test> | |
| 124 <!-- single end data --> | 101 <!-- single end data --> |
| 125 <test expect_num_outputs="1"> | 102 <test expect_num_outputs="1"> |
| 126 <conditional name="paired_cond"> | 103 <conditional name="paired_cond"> |
| 127 <param name="paired_select" value="single"/> | 104 <param name="paired_select" value="single"/> |
| 128 <param name="reads" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> | 105 <param name="reads" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> |
