Mercurial > repos > peterjc > seq_select_by_id
comparison tools/filters/seq_select_by_id.py @ 3:19e26966ed3e draft
Uploaded v0.0.6, handles Biopython dependency via the ToolShed, adopted MIT license, using reStructuredTest for the README file.
No functional changes.
author | peterjc |
---|---|
date | Mon, 29 Jul 2013 09:13:13 -0400 |
parents | 28d52478ace9 |
children |
comparison
equal
deleted
inserted
replaced
2:28d52478ace9 | 3:19e26966ed3e |
---|---|
15 Cock et al 2009. Biopython: freely available Python tools for computational | 15 Cock et al 2009. Biopython: freely available Python tools for computational |
16 molecular biology and bioinformatics. Bioinformatics 25(11) 1422-3. | 16 molecular biology and bioinformatics. Bioinformatics 25(11) 1422-3. |
17 http://dx.doi.org/10.1093/bioinformatics/btp163 pmid:19304878. | 17 http://dx.doi.org/10.1093/bioinformatics/btp163 pmid:19304878. |
18 | 18 |
19 This script is copyright 2011-2013 by Peter Cock, The James Hutton Institute UK. | 19 This script is copyright 2011-2013 by Peter Cock, The James Hutton Institute UK. |
20 All rights reserved. See accompanying text file for licence details (MIT/BSD | 20 All rights reserved. See accompanying text file for licence details (MIT |
21 style). | 21 license). |
22 | 22 |
23 This is version 0.0.4 of the script. | 23 This is version 0.0.6 of the script. |
24 """ | 24 """ |
25 import sys | 25 import sys |
26 | 26 |
27 def stop_err(msg, err=1): | 27 def stop_err(msg, err=1): |
28 sys.stderr.write(msg.rstrip() + "\n") | 28 sys.stderr.write(msg.rstrip() + "\n") |
29 sys.exit(err) | 29 sys.exit(err) |
30 | 30 |
31 if "-v" in sys.argv or "--version" in sys.argv: | 31 if "-v" in sys.argv or "--version" in sys.argv: |
32 print "v0.0.4" | 32 print "v0.0.6" |
33 sys.exit(0) | 33 sys.exit(0) |
34 | 34 |
35 #Parse Command Line | 35 #Parse Command Line |
36 try: | 36 try: |
37 tabular_file, col_arg, in_file, seq_format, out_file = sys.argv[1:] | 37 tabular_file, col_arg, in_file, seq_format, out_file = sys.argv[1:] |