Mercurial > repos > devteam > fastq_trimmer
comparison fastq_trimmer.py @ 2:fdff6f6a8763 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/galaxy_sequence_utils/fastq_trimmer commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
| author | devteam |
|---|---|
| date | Fri, 18 Dec 2015 19:31:05 -0500 |
| parents | feb5479a48ff |
| children |
comparison
equal
deleted
inserted
replaced
| 1:3be753901f6e | 2:fdff6f6a8763 |
|---|---|
| 19 left_column_offset = int( round( float( left_offset ) / 100.0 * float( len( fastq_read ) ) ) ) | 19 left_column_offset = int( round( float( left_offset ) / 100.0 * float( len( fastq_read ) ) ) ) |
| 20 right_column_offset = int( round( float( right_offset ) / 100.0 * float( len( fastq_read ) ) ) ) | 20 right_column_offset = int( round( float( right_offset ) / 100.0 * float( len( fastq_read ) ) ) ) |
| 21 else: | 21 else: |
| 22 left_column_offset = int( left_offset ) | 22 left_column_offset = int( left_offset ) |
| 23 right_column_offset = int( right_offset ) | 23 right_column_offset = int( right_offset ) |
| 24 if right_column_offset > 0: | 24 if right_column_offset != 0: |
| 25 right_column_offset = -right_column_offset | 25 right_column_offset = -right_column_offset |
| 26 else: | 26 else: |
| 27 right_column_offset = None | 27 right_column_offset = None |
| 28 fastq_read = fastq_read.slice( left_column_offset, right_column_offset ) | 28 fastq_read = fastq_read.slice( left_column_offset, right_column_offset ) |
| 29 if keep_zero_length or len( fastq_read ): | 29 if keep_zero_length or len( fastq_read ): |
