comparison tools/filters/seq_select_by_id.py @ 2:28d52478ace9 draft

Uploaded v0.0.4 which adds a unit test.
author peterjc
date Mon, 15 Apr 2013 12:28:51 -0400
parents 50a8a6917a9c
children 19e26966ed3e
comparison
equal deleted inserted replaced
1:50a8a6917a9c 2:28d52478ace9
14 14
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-2012 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/BSD
21 style). 21 style).
22 22
23 This is version 0.0.3 of the script. 23 This is version 0.0.4 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
31 if "-v" in sys.argv or "--version" in sys.argv:
32 print "v0.0.4"
33 sys.exit(0)
30 34
31 #Parse Command Line 35 #Parse Command Line
32 try: 36 try:
33 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:]
34 except ValueError: 38 except ValueError: