Mercurial > repos > peterjc > fasta_filter_by_id
diff tools/fasta_tools/fasta_filter_by_id.py @ 1:5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
author | peterjc |
---|---|
date | Tue, 07 Jun 2011 17:22:48 -0400 |
parents | 2e5f8ad1a096 |
children | 5b552b3005f2 |
line wrap: on
line diff
--- a/tools/fasta_tools/fasta_filter_by_id.py Tue Jun 07 17:22:24 2011 -0400 +++ b/tools/fasta_tools/fasta_filter_by_id.py Tue Jun 07 17:22:48 2011 -0400 @@ -3,8 +3,9 @@ Takes five command line options, tabular filename, ID column numbers (comma separated list using one based counting), input FASTA filename, and -two output FASTA filenames (for records with and without any BLAST hits). -If the either output filename is just a minus sign, that file is not created. +two output FASTA filenames (for records with and without the given IDs). + +If either output filename is just a minus sign, that file is not created. This is intended to allow output for just the matched (or just the non-matched) records. @@ -51,7 +52,7 @@ print "Using %i IDs from tabular file" % (len(ids)) handle.close() -#Write filtered FASTA file based on IDs from BLAST file +#Write filtered FASTA file based on IDs from tabular file reader = fastaReader(open(in_file, "rU")) if out_positive_file != "-" and out_negative_file != "-": print "Generating two FASTA files"