# HG changeset patch # User iuc # Date 1494427541 14400 # Node ID c7620aa7e1f05b9dc25ae50c31cbb17b918f1217 # Parent 30775c836c7757458412925b268eb0eaf859cf44 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1 diff -r 30775c836c77 -r c7620aa7e1f0 fastq_dump.xml --- a/fastq_dump.xml Wed Mar 22 05:23:31 2017 -0400 +++ b/fastq_dump.xml Wed May 10 10:45:41 2017 -0400 @@ -1,5 +1,5 @@ - - in FASTQ/A format from NCBI SRA. + + format from NCBI SRA sra_macros.xml @@ -9,14 +9,21 @@ "$output_file" - #elif $input.input_select=="file_list": - "\$acc" - #else: - --stdout + + #elif $input.input_select=="accession_number": + --stdout "\$acc" > "$output_accession" ) #end if #if $input.input_select=="file_list": - ) ; done - - ; + ) ; done - - - + ; - for i in `ls *.fast* | cut -f 1 -d '_' | uniq` ; do - count=`ls \$i* | wc -l` ; - data=(\$(ls -d \$i*)); + for i in `ls *.fast* | cut -f 1 -d '_' | uniq` ; do + count=`ls \$i* | wc -l` ; + data=(\$(ls -d \$i*)); - if [ "\$count" -eq 2 ]; then - mv "\${data[0]}" "\${data[0]}"_forward.$outputformat; mv "\${data[1]}" "\${data[1]}"_reverse.$outputformat ; - elif [ "\$count" -eq 1 ]; then - mv "\${data[0]}" "\${data[0]}"__single.$outputformat ; - fi; - done + if [ "\$count" -eq 2 ]; then + mv "\${data[0]}" "\${data[0]}"_forward.$outputformat; mv "\${data[1]}" "\${data[1]}"_reverse.$outputformat ; + elif [ "\$count" -eq 1 ]; then + mv "\${data[0]}" "\${data[0]}"__single.$outputformat ; + fi; + done #end if @@ -115,129 +119,239 @@ - - - + + + +
- - - - - - + + + + - - + - - - - - + + +
- - input['input_select'] == "file_list" + + input['input_select'] == "file_list" + - - - - - input['input_select'] == "file_list" - - - - - input['input_select'] == "accession_number" - - - - - - input['input_select'] == "file" - - - - + + + + + + + input['input_select'] == "file_list" + + + + + + input['input_select'] == "accession_number" + + + + + + + input['input_select'] == "file" + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - This tool extracts reads from SRA archives using fastq-dump. - The fastq-dump program is developed at NCBI, and is available at - http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software. +
diff -r 30775c836c77 -r c7620aa7e1f0 sam_dump.xml --- a/sam_dump.xml Wed Mar 22 05:23:31 2017 -0400 +++ b/sam_dump.xml Wed May 10 10:45:41 2017 -0400 @@ -1,5 +1,5 @@ - - in SAM or BAM format from NCBI SRA. + + format from NCBI SRA sra_macros.xml @@ -11,7 +11,7 @@ for acc in `cat $input.file_list` ; do #elif $input.input_select=="accession_number": - acc="$input.accession" && + acc="${input.accession}" && #end if #if $input.input_select=="file_list" or $input.input_select=="accession_number": @@ -91,7 +91,7 @@ - + @@ -113,18 +113,18 @@ - + input['input_select'] == "file_list" - + input['input_select'] == "accession_number" - + input['input_select'] == "file" @@ -140,11 +140,59 @@ - - This tool extracts reads from sra archives using sam-dump. - The sam-dump program is developed at NCBI, and is available at - http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software. - @SRATOOLS_ATTRRIBUTION@ - + diff -r 30775c836c77 -r c7620aa7e1f0 sra_macros.xml --- a/sra_macros.xml Wed Mar 22 05:23:31 2017 -0400 +++ b/sra_macros.xml Wed May 10 10:45:41 2017 -0400 @@ -1,19 +1,28 @@ - 2.8.0 + 2.8.1 - sra-tools + sra-tools + - - + + + + + + + + + + @@ -24,39 +33,45 @@ - - + - + + help="Filter by position on genome. Can be either accession.version (ex: NC_000001.10), chromosome name (ex:chr1 or 1) or 1-based coordinates (ex: chr1:1-101)." argument="--aligned-region"/> + help="Filter by distance between matepairs. Use unknown to find matepairs split between the references. Use from-to (inclusive) to limit matepair distance on the same reference" argument="--matepair-distance"/> 10.1093/nar/gkq1019 - - Browse the NCBI SRA for SRR accessions at http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=studies. + +----- - Galaxy tool wrapper originally written by Matt Shirley (mdshw5 at gmail.com). +**How to generate accession lists** - Wrapper modified by Philip Mabon ( philip.mabon at phac-aspc.gc.ca ). + 1. Go to **SRA Run Selector** by clicking this link_ + 2. Find the study you are interested in by typing a search term within the **Search** box. This can be a word (e.g., *mitochondria*) or an accession you have gotten from a paper (e.g., *SRR1582967*). + 3. Once you click on the study of interest you will see the number of datasets in this study within the **Related SRA data** box + 4. Click on the Runs number + 5. On the page that would open you will see **Accession List** button + 6. Clicking of this button will produce a file that you will need to upload into Galaxy and use as the input to this tool. + - Tool dependencies, clean-up and bug-fixes by Marius van den Beek (m.vandenbeek at gmail.com). - - For support and bug reports contact Matt Shirley or Marius van den Beek or go to https://github.com/galaxyproject/tools-iuc. - + +Galaxy tool wrapper originally written by Matt Shirley (mdshw5 at gmail.com). +Wrapper modified by Philip Mabon ( philip.mabon at phac-aspc.gc.ca ). +Tool dependencies, clean-up and bug-fixes by Marius van den Beek (m.vandenbeek at gmail.com). +For support and bug reports contact Matt Shirley or Marius van den Beek or go to https://github.com/galaxyproject/tools-iuc. diff -r 30775c836c77 -r c7620aa7e1f0 sra_pileup.xml --- a/sra_pileup.xml Wed Mar 22 05:23:31 2017 -0400 +++ b/sra_pileup.xml Wed May 10 10:45:41 2017 -0400 @@ -1,5 +1,5 @@ - - from NCBI sra. + + from NCBI sra sra_macros.xml @@ -7,6 +7,11 @@ sra-pileup --version "$output_file" #elif $input.input_select == "accession_number": - "$input.accession" > "$output_accession" + "\$acc" > "$output_accession" #elif $input.input_select == "text": `cat "$input.text"` > "$output_text" #end if @@ -48,7 +53,16 @@ - + + + + + + + + + + @@ -60,13 +74,13 @@ - + input['input_select'] == "accession_number" - + input['input_select'] == "file" - + input['input_select'] == "text" @@ -79,10 +93,14 @@ - This tool produces pileup format from sra archives using sra-pileup. - The sra-pileup program is developed at NCBI, and is available at - http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software. - @SRATOOLS_ATTRRIBUTION@ + diff -r 30775c836c77 -r c7620aa7e1f0 test-data/fastq_dump_result.fastq.gz Binary file test-data/fastq_dump_result.fastq.gz has changed