Skip to content

Commit

Permalink
Cleaned up help screen
Browse files Browse the repository at this point in the history
  • Loading branch information
campanam authored May 25, 2018
1 parent 6ba36c5 commit 136cc49
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions vcf2aln.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def self.parse(options)
args.split_regions = 0 #Don't activate region-split subroutine by default
opt_parser = OptionParser.new do |opts|
opts.banner = "Command-line usage: ruby vcf2aln.rb [options]"
opts.separator ""
opts.separator "I/O options:"
opts.on("-i","--input [FILE]", String, "Input VCF file") do |vcf|
args.infile = vcf
end
Expand All @@ -156,12 +158,6 @@ def self.parse(options)
opts.on("-s", "--skip", "Skip missing sites in vcf") do
args.skip = true
end
opts.on("-m","--mincalls [VALUE]", Integer, "Minimum number of calls to include site (Default = 0)") do |msnps|
args.mincalls = msnps if msnps != nil
end
opts.on("-x","--maxmissing [VALUE]", Float, "Maximum percent missing data to include sequence (Default = 100.0)") do |missing|
args.maxmissing = missing if missing != nil
end
opts.on("-O", "--onehap", "Print only one haplotype for diploid data") do
args.onehap = true
end
Expand All @@ -178,8 +174,13 @@ def self.parse(options)
opts.on("-g", "--split_regions [VALUE]", Integer, "Split alignment into subregional alignments for phylogenetic analysis") do |regions|
args.split_regions = regions if regions != nil
end
opts.on("-t", "--typefields", "Display VCF genotype field information, then quit the program.") do
args.type_fields = true
opts.separator ""
opts.separator "Filtration options:"
opts.on("-m","--mincalls [VALUE]", Integer, "Minimum number of calls to include site (Default = 0)") do |msnps|
args.mincalls = msnps if msnps != nil
end
opts.on("-x","--maxmissing [VALUE]", Float, "Maximum percent missing data to include sequence (Default = 100.0)") do |missing|
args.maxmissing = missing if missing != nil
end
opts.on("-q", "--qual_filter [VALUE]", Integer, "Minimum accepted value for QUAL (per site) (Default = 0)") do |qual|
args.qual_filter = qual if qual != nil
Expand Down Expand Up @@ -220,6 +221,11 @@ def self.parse(options)
opts.on("-A", "--adepth [VALUE]", Integer, "Minimum allowed allele depth. (Default = No filter)") do |ad|
args.adepth = ad if ad != nil
end
opts.separator ""
opts.separator "General information:"
opts.on("-t", "--typefields", "Display VCF genotype field information, then quit the program.") do
args.type_fields = true
end
opts.on("-v", "--version", "Print program version.") do
abort("vcf2aln v." + VCF2ALNVER + "\n")
end
Expand Down

0 comments on commit 136cc49

Please sign in to comment.