Mercurial > repos > erasmus-medical-center > mycrobiota
comparison recover_samples_discarded_by_subsample.xml @ 1:e93e39c121b1 draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/mycrobiota commit aadbfac9c48191cac625f10590082a6d1a0bfd09
author | erasmus-medical-center |
---|---|
date | Tue, 29 Jan 2019 12:13:23 -0500 |
parents | 607c5e7e0a64 |
children |
comparison
equal
deleted
inserted
replaced
0:607c5e7e0a64 | 1:e93e39c121b1 |
---|---|
17 | 17 |
18 ## get.groups on in_fasta with this list of groups, if list not empty, otherwise create empty file | 18 ## get.groups on in_fasta with this list of groups, if list not empty, otherwise create empty file |
19 && | 19 && |
20 if [ -z "\$samples"]; | 20 if [ -z "\$samples"]; |
21 then | 21 then |
22 touch fasta.pick.dat; | 22 cp fasta2.dat final_fasta; |
23 touch group.pick.dat; | 23 cp group2.dat final_group; |
24 else | 24 else |
25 echo "get.groups(fasta=fasta.dat, group=group.dat, groups=\$samples)" | sed 's/ //g' | mothur; | 25 echo "get.groups(fasta=fasta.dat, group=group.dat, groups=\$samples)" | sed 's/ //g' | mothur; |
26 | |
27 ## merge selected reads (fasta.pick.dat) with the fasta file from after sub.sample | |
28 echo "merge.files(input=fasta2.dat-fasta.pick.dat, output=final_fasta)" | sed 's/ //g' | mothur; | |
29 | |
30 ## merge group files | |
31 echo "merge.files(input=group2.dat-group.pick.dat, output=final_group)" | sed 's/ //g' | mothur; | |
26 fi | 32 fi |
27 | |
28 ## merge selected reads (fasta.pick.dat) with the fasta file from after sub.sample | |
29 && echo "merge.files(input=fasta2.dat-fasta.pick.dat, output=final_fasta)" | sed 's/ //g' | mothur | |
30 | |
31 ## merge group files | |
32 && echo "merge.files(input=group2.dat-group.pick.dat, output=final_group)" | sed 's/ //g' | mothur | |
33 | 33 |
34 ]]></command> | 34 ]]></command> |
35 <inputs> | 35 <inputs> |
36 <param name="in_fasta" type="data" format="fasta" label="Fasta before subsample"/> | 36 <param name="in_fasta" type="data" format="fasta" label="Fasta before subsample"/> |
37 <param name="in_fasta_subsampled" type="data" format="fasta" label="Fasta after subsample"/> | 37 <param name="in_fasta_subsampled" type="data" format="fasta" label="Fasta after subsample"/> |
51 <param name="in_group_subsampled" value="groups_after_subsample_small.groups" ftype="mothur.groups"/> | 51 <param name="in_group_subsampled" value="groups_after_subsample_small.groups" ftype="mothur.groups"/> |
52 <param name="threshold" value="3"/> | 52 <param name="threshold" value="3"/> |
53 <output name="out_fasta" file="recovered.fasta"/> | 53 <output name="out_fasta" file="recovered.fasta"/> |
54 <output name="out_group" file="recovered.groups"/> | 54 <output name="out_group" file="recovered.groups"/> |
55 </test> | 55 </test> |
56 <test><!-- test case where nothing was discarded --> | |
57 <param name="in_fasta" value="fasta_before_subsample_small.fasta" ftype="fasta"/> | |
58 <param name="in_fasta_subsampled" value="fasta_after_subsample_small.fasta" ftype="fasta"/> | |
59 <param name="in_group" value="groups_before_subsample_small.groups" ftype="mothur.groups"/> | |
60 <param name="in_group_subsampled" value="groups_after_subsample_small.groups" ftype="mothur.groups"/> | |
61 <param name="threshold" value="1"/> | |
62 <output name="out_fasta" file="fasta_after_subsample_small.fasta"/> | |
63 <output name="out_group" file="groups_after_subsample_small.groups"/> | |
64 </test> | |
56 </tests> | 65 </tests> |
57 <help><![CDATA[ | 66 <help><![CDATA[ |
58 **What it does** | 67 **What it does** |
59 filter fasta file by group based on number of sequences in the group. | 68 filter fasta file by group based on number of sequences in the group. |
60 ]]></help> | 69 ]]></help> |