# HG changeset patch # User devteam # Date 1506797773 14400 # Node ID 7ea141c4c8344cf865eef59d84876d03aaea1dd1 # Parent 16d28d67ebebb3ebb920d9995a6afa0e1a3112a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/galaxy_sequence_utils/fastq_manipulation commit f2582539542b33240234e8ea6093e25d0aee9b6a diff -r 16d28d67ebeb -r 7ea141c4c834 fastq_manipulation.py --- a/fastq_manipulation.py Fri Dec 18 19:28:39 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -#Dan Blankenberg -import sys, os, shutil -import imp -from galaxy_utils.sequence.fastq import fastqReader, fastqWriter - -def main(): - #Read command line arguments - input_filename = sys.argv[1] - script_filename = sys.argv[2] - output_filename = sys.argv[3] - additional_files_path = sys.argv[4] - input_type = sys.argv[5] or 'sanger' - - #Save script file for debuging/verification info later - os.mkdir( additional_files_path ) - shutil.copy( script_filename, os.path.join( additional_files_path, 'debug.txt' ) ) - - fastq_manipulator = imp.load_module( 'fastq_manipulator', open( script_filename ), script_filename, ( '', 'r', imp.PY_SOURCE ) ) - - out = fastqWriter( open( output_filename, 'wb' ), format = input_type ) - - i = None - reads_manipulated = 0 - for i, fastq_read in enumerate( fastqReader( open( input_filename ), format = input_type ) ): - new_read = fastq_manipulator.match_and_manipulate_read( fastq_read ) - if new_read: - out.write( new_read ) - if new_read != fastq_read: - reads_manipulated += 1 - out.close() - if i is None: - print "Your file contains no valid FASTQ reads." - else: - print 'Manipulated %s of %s reads (%.2f%%).' % ( reads_manipulated, i + 1, float( reads_manipulated ) / float( i + 1 ) * 100.0 ) - -if __name__ == "__main__": - main() diff -r 16d28d67ebeb -r 7ea141c4c834 fastq_manipulation.xml --- a/fastq_manipulation.xml Fri Dec 18 19:28:39 2015 -0500 +++ b/fastq_manipulation.xml Sat Sep 30 14:56:13 2017 -0400 @@ -1,198 +1,54 @@ - - - - galaxy_sequence_utils - - reads on various attributes - fastq_manipulation.py $input_file $fastq_manipulation_file $output_file $output_file.files_path '${input_file.extension[len( 'fastq' ):]}' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int( float( value ) ) == float( value ) - - - int( float( value ) ) == float( value ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##create an importable module + + + reads on various attributes + + galaxy_sequence_utils + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> 10.1093/bioinformatics/btq281 diff -r 16d28d67ebeb -r 7ea141c4c834 test-data/sanger_full_range_as_rna.fastqsanger.bz2 Binary file test-data/sanger_full_range_as_rna.fastqsanger.bz2 has changed diff -r 16d28d67ebeb -r 7ea141c4c834 test-data/sanger_full_range_as_rna.fastqsanger.gz Binary file test-data/sanger_full_range_as_rna.fastqsanger.gz has changed diff -r 16d28d67ebeb -r 7ea141c4c834 tool_dependencies.xml --- a/tool_dependencies.xml Fri Dec 18 19:28:39 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - -