# HG changeset patch # User devteam # Date 1506794117 14400 # Node ID 9bbe5b7ffa12387af0ecac9b21d7361c430b81cd # Parent c80bce242eecea17fa3e8a2e7f3b89cd1e13cefa planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/galaxy_sequence_utils/fastq_paired_end_splitter commit f2582539542b33240234e8ea6093e25d0aee9b6a diff -r c80bce242eec -r 9bbe5b7ffa12 fastq_paired_end_splitter.py --- a/fastq_paired_end_splitter.py Wed Nov 11 12:42:17 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -#Dan Blankenberg -import sys, os, shutil -from galaxy_utils.sequence.fastq import fastqReader, fastqWriter, fastqSplitter - -def main(): - #Read command line arguments - input_filename = sys.argv[1] - input_type = sys.argv[2] or 'sanger' - output1_filename = sys.argv[3] - output2_filename = sys.argv[4] - - splitter = fastqSplitter() - out1 = fastqWriter( open( output1_filename, 'wb' ), format = input_type ) - out2 = fastqWriter( open( output2_filename, 'wb' ), format = input_type ) - - i = None - skip_count = 0 - for i, fastq_read in enumerate( fastqReader( open( input_filename, 'rb' ), format = input_type ) ): - read1, read2 = splitter.split( fastq_read ) - if read1 and read2: - out1.write( read1 ) - out2.write( read2 ) - else: - skip_count += 1 - out1.close() - out2.close() - if i is None: - print "Your file contains no valid FASTQ reads." - else: - print 'Split %s of %s reads (%.2f%%).' % ( i - skip_count + 1, i + 1, float( i - skip_count + 1 ) / float( i + 1 ) * 100.0 ) - -if __name__ == "__main__": - main() diff -r c80bce242eec -r 9bbe5b7ffa12 fastq_paired_end_splitter.xml --- a/fastq_paired_end_splitter.xml Wed Nov 11 12:42:17 2015 -0500 +++ b/fastq_paired_end_splitter.xml Sat Sep 30 13:55:17 2017 -0400 @@ -1,27 +1,29 @@ - - on joined paired end reads - - galaxy_sequence_utils - - fastq_paired_end_splitter.py '$input1_file' '${input1_file.extension[len( 'fastq' ):]}' '$output1_file' '$output2_file' - - - - - - - - - - - - - - - + + on joined paired end reads + + galaxy_sequence_utils + + + + + + + + + + + + + + + + + - - - 10.1093/bioinformatics/btq281 - - + ]]> + + 10.1093/bioinformatics/btq281 + diff -r c80bce242eec -r 9bbe5b7ffa12 tool_dependencies.xml --- a/tool_dependencies.xml Wed Nov 11 12:42:17 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - -