Skip to content

Commit b159ea1

Browse files
committed
bcftools --help instead of -h, no_sort store_false is an _action_, not a _default_
1 parent f76d771 commit b159ea1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/cmo_bcftools

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LPAD_CONFIG_LOC = "/opt/common/CentOS_6-dev/cmo/fireworks_config_files/"
99

1010
def find_bcftools_options(bcftools_version, subcommand):
1111
bcftools_cmd = cmo.util.programs['bcftools'][bcftools_version]
12-
bcftools_help = subprocess.Popen(" ".join([bcftools_cmd, subcommand, "-h"]), shell=True, stderr=subprocess.PIPE).communicate()[1]
12+
bcftools_help = subprocess.Popen(" ".join([bcftools_cmd, subcommand, "--help"]), shell=True, stderr=subprocess.PIPE).communicate()[1]
1313
lines = bcftools_help.split("\n")
1414
last_sarg=''
1515
last_larg=''

bin/cmo_list2bed

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if __name__ =='__main__':
2424
#he's a very mean individual
2525
parser.add_argument("-i", "--input_file", help="picard interval list", required=True)
2626
parser.add_argument("-o", "--output_file", help="output bed file", required=True)
27-
parser.add_argument("-ns", "--no_sort", help="sort bed file output", default='store_false')
27+
parser.add_argument("-ns", "--no_sort", help="sort bed file output", action='store_false')
2828
args = parser.parse_args()
2929
args_dict = vars(args)
3030
cmd = [script]

0 commit comments

Comments
 (0)