# HG changeset patch # User greg # Date 1587478640 14400 # Node ID f75e2ac7b6cdf5ead4531bd9533bbe56f723d944 Uploaded diff -r 000000000000 -r f75e2ac7b6cd .shed.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.shed.yml Tue Apr 21 10:17:20 2020 -0400 @@ -0,0 +1,11 @@ +name: vsnp_sample_names +owner: greg +description: | + Contains a tool that outputs a unique portion of the input file name. +homepage_url: https://github.com/USDA-VS/vSNP +long_description: | + Contains a tool that outputs a unique portion of the input file name. +remote_repository_url: https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/sequence_analysis/vsnp/vsnp_sample_names +type: unrestricted +categories: + - Sequence Analysis diff -r 000000000000 -r f75e2ac7b6cd test-data/BCG_Danish_Human_UK_SRR9596061 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/BCG_Danish_Human_UK_SRR9596061 Tue Apr 21 10:17:20 2020 -0400 @@ -0,0 +1,1 @@ +BCG_Danish_Human_UK_SRR9596061 diff -r 000000000000 -r f75e2ac7b6cd test-data/BCG_Danish_Human_UK_SRR9596061.fastq --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/BCG_Danish_Human_UK_SRR9596061.fastq Tue Apr 21 10:17:20 2020 -0400 @@ -0,0 +1,14 @@ +@SRR9596061.1 1 length=100 +GACCCCGGTTCAGGCTTCACCACAGTGTGGAACGCGGTCGTCTCCGAACTTAACGGCGACCCTAAGGTTGACGACGGACCCAGCAGTGATGCTAATCTCA ++SRR9596061.1 1 length=100 +??AB>@B;755?<<>C:>?C@############################ +@SRR9596061.2 2 length=100 +GCTGAGATTAGCATCACTGCTGGGTCCGTCGTCAACCTTAGGGTCGCCGTTAAGTTCGGAGACGACCGCGTTCCACACTGTGGTGAAGCCTGAACCGGGG ++SRR9596061.2 2 length=100 +?<<++A2=?ADDDEEI9A?>AECEA9CFEEEC??:BDIIEB9?9?@ACDA;;CCCDDD/;=;;034+>>>>AA93<>::A8>2<>A?>9;9 +@SRR9596061.3 3 length=100 +GCTCGATTTCGTTTTGGACAAAGCTGCTCGGCACGGATAACAGAGCAAAACCCTCGACGATGGTCAATGGCTTGACTAAATTGAGCCAAGCCATTTCGCG ++SRR9596061.3 3 length=100 +????D?DDBA?DGEEGGGGGFGGGHGHHFGFGGFGGGFFHFFHHHHHHFHHHHHHHFHFGHHHHHEGGGGGGGHHGFGHEGFFAF?CGGHFFFGGGGGCGGHFDGGCC/CHGHGFHHGGG@DHHFHHGGGGCHHHHHBGGHHGDGC?BCAGGEGGGGFEC9ADC?.ADFFFFFAFFFE?E./BBFFFDFFFEDFBFFF/;.;@@;ACFFF-=;-BFEEEFFFDF?--.;9-9AFBFB/BFFF.D>ED.9.. diff -r 000000000000 -r f75e2ac7b6cd test-data/Mbov_Cattle_NI_SRR10993937 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/Mbov_Cattle_NI_SRR10993937 Tue Apr 21 10:17:20 2020 -0400 @@ -0,0 +1,1 @@ +Mbov_Cattle_NI_SRR10993937 diff -r 000000000000 -r f75e2ac7b6cd test-data/Mbov_Cattle_NI_SRR10993937.fastq --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/Mbov_Cattle_NI_SRR10993937.fastq Tue Apr 21 10:17:20 2020 -0400 @@ -0,0 +1,6 @@ +@M00963:204:000000000-B953L:1:1102:18443:7739 1:N:0:16 +GCACCTGAGATTGACACCGCCCGCGAATACGAAGTAACCGCCGAATACCAGTCCTGGCGGGCCGTCTAGGGAAGCGACGCAGCATTACTTACGGTCGGCGTCGGGATAGGCCCGGCCATCCCCCTCGGGTGGCTCACGTTAGCGAACCGGCACCCGGACAAACCTGGGGCGGCCGCGAACCCAGCCCCTGCGGGGCTAACAACACGGTCCGCGCCCACCGCCGCCCCCCCGTCAACCGAGCCAATACCACA ++ +AAAAAFFFBFFFG11G11E1A0EGCGG?/1A//AFD2AAE/A/A>/FFGBCGHBFGHFGG////>/0/21?BGA///>< + + 0: + #set sample_name = $sample_name.split(".")[0] + #end if + #if $sample_name.find("_") > 0: + #set sample_name = $sample_name.split("_")[0] + #end if + echo $sample_name > $output +#else: + #for $i in $input_type_cond.reads_collection: + #set sample_name = $os.path.basename($i.element_identifier) + #if $sample_name.find(".") > 0: + #set sample_name = $sample_name.split(".")[0] + #end if + #set output_file = $os.path.join($output_dir, $sample_name) + && echo $sample_name > $output_file + #end for +#end if +]]> + + + + + + + + + + + + + + + + + input_type_cond['input_type'] == 'single' + + + + input_type_cond['input_type'] == 'collection' + + + + + + + + + + + + + + + + + + + + +**What it does** + +Accepts one or more sample files and extracts a unique portion of the file name as the content of the output file(s). These +text files are then used as workflow parameter values for the Read Group Identifier parameter in the bwa-mem tool. + +**Required Options** + + * **Choose the category of the files to be analyzed** - select "Single files" or "Collections of files", then select the appropriate history items (single or paired fastqsanger reads or collections of fastqsanger reads) based on the selected option. + + + + @misc{None, + journal = {None}, + author = {1. Stuber T}, + title = {Manuscript in preparation}, + year = {None}, + url = {https://github.com/USDA-VS/vSNP},} + + + +