Repository revision
Select a revision to inspect and download versions of Galaxy utilities from this repository.

Repository seq_filter_by_mapping
Owner: peterjc
Synopsis: Filter sequencing reads using SAM/BAM mapping files
This tool is a short Python script (using Biopython library functions) which divides
a FASTA, FASTQ, or SFF file in two, those sequences which do or do not map according
to given SAM/BAM file(s).

Example uses include mapping of FASTQ reads against a known contaminant in order
to remove reads prior to a de novo assembly.

See https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_filter_by_mapping
Type: unrestricted
Revision: 4:f82868a026ea
This revision can be installed: True
Times cloned / installed: 592

Repository README files - may contain important installation or license information

Galaxy tool to filter FASTA, FASTQ or SFF sequences by SAM/BAM mapping ====================================================================== This tool is copyright 2014-2017 by Peter Cock, The James Hutton Institute (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved. See the licence text below. This tool is a short Python script (using Biopython library functions) which divides a FASTA, FASTQ, or SFF file in two, those sequences which do or do not map according to given SAM/BAM file(s). Example uses include mapping of FASTQ reads against a known contaminant in order to remove reads prior to a de novo assembly. This tool is available from the Galaxy Tool Shed at: * http://toolshed.g2.bx.psu.edu/view/peterjc/seq_filter_by_mapping See also related tools: * http://toolshed.g2.bx.psu.edu/view/peterjc/seq_filter_by_id * http://toolshed.g2.bx.psu.edu/view/peterjc/seq_select_by_id * http://toolshed.g2.bx.psu.edu/view/peterjc/seq_rename Automated Installation ====================== This should be straightforward using the Galaxy Tool Shed, which should be able to automatically install the dependency on Biopython and samtools and then install this tool and run its unit tests. Manual Installation =================== There are just two files to install to use this tool from within Galaxy: * ``seq_filter_by_mapping.py`` (the Python script) * ``seq_filter_by_mapping.xml`` (the Galaxy tool definition) The suggested location is a dedicated ``tools/seq_filter_by_mapping/`` folder. You will also need to modify the ``tools_conf.xml`` file to tell Galaxy to offer the tool. One suggested location is in the filters section. Simply add the line:: If you wish to run the unit tests, also move/copy the ``test-data/`` files under Galaxy's ``test-data/`` folder. Then:: $ ./run_tests.sh -id seq_filter_by_mapping You will also need to install Biopython 1.54 or later. That's it. History ======= ======= ====================================================================== Version Changes ------- ---------------------------------------------------------------------- v0.0.1 - Initial version. v0.0.2 - Fixed some error messages. v0.0.3 - Report counts for FASTQ as done for FASTA and SFF files. v0.0.4 - Use the ``format_source=...`` tag. - Reorder XML elements (internal change only). - Planemo for Tool Shed upload (``.shed.yml``, internal change only). v0.0.5 - Python script cleanups (internal change only). - Depends on Biopython 1.67 via legacy Tool Shed package or bioconda. - Use ```` (internal change only). - Single quote command line arguments (internal change only). v0.0.6 - Python 3 compatible print function. v0.0.7 - Script works on Python 2 and 3 (fixed input file mode) ======= ====================================================================== Developers ========== Development is on this GitHub repository: https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_filter_by_mapping Much of the code was copied from my older tool: https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_filter_by_id For pushing a release to the test or main "Galaxy Tool Shed", use the following Planemo commands (which requires you have set your Tool Shed access details in ``~/.planemo.yml`` and that you have access rights on the Tool Shed):: $ planemo shed_update -t testtoolshed --check_diff tools/seq_filter_by_mapping/ ... or:: $ planemo shed_update -t toolshed --check_diff tools/seq_filter_by_mapping/ ... To just build and check the tar ball, use:: $ planemo shed_upload --tar_only tools/seq_filter_by_mapping/ ... $ tar -tzf shed_upload.tar.gz test-data/SRR639755_mito_pairs.fastq.gz test-data/SRR639755_sample_by_coord.sam test-data/SRR639755_sample_lax.fastq test-data/SRR639755_sample_strict.fastq tools/seq_filter_by_mapping/README.rst tools/seq_filter_by_mapping/seq_filter_by_mapping.py tools/seq_filter_by_mapping/seq_filter_by_mapping.xml tools/seq_filter_by_mapping/tool_dependencies.xml Licence (MIT) ============= Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependencies of this repository

Repository package_numpy_1_9 revision 83d12e13dbbd owned by iuc (prior install required)
Repository package_atlas_3_10 revision 98c017ec230d owned by iuc (prior install required)
Repository package_python_2_7 revision f761bd14343e owned by iuc (prior install required)
Repository package_zlib_1_2_8 revision 411985b46ae8 owned by iuc (prior install required)
Repository package_readline_6_3 revision ca1a9400d4e1 owned by iuc (prior install required)
Repository package_bzlib_1_0 revision af4887e1f595 owned by iuc (prior install required)
Repository package_xz_5_0_5 revision 944f93d45594 owned by iuc (prior install required)
Repository package_sqlite_3_8_3 revision c8a5c11cc921 owned by iuc (prior install required)
Repository package_gdbm_1_11 revision ed2537bccffc owned by iuc (prior install required)
Repository package_ncurses_6_0 revision 0efde9889efd owned by iuc (prior install required)
Repository package_ncurses_6_0 revision 0efde9889efd owned by iuc (prior install required)
Repository package_libtool_2_4 revision 7f67694b167c owned by iuc (prior install required)
Repository package_samtools_0_1_19 revision c9bd782f5342 owned by iuc

Name Version Type
biopython 1.67 package
samtools 0.1.19 package

Contents of this repository

Name Description Version Minimum Galaxy Version
from SAM/BAM file 0.0.7 16.01

Categories
Assembly - Tools for working with assemblies
Fasta Manipulation - Tools for manipulating fasta data
Fastq Manipulation - Tools for manipulating fastq data
Next Gen Mappers - Tools for the analysis and handling of Next Gen sequencing data
SAM - Tools for manipulating alignments in the SAM format
Sequence Analysis - Tools for performing Protein and DNA/RNA analysis