Skip to content

Commit

Permalink
Added option to toggle ABCENTH full_pseudoexon_search if using ABCENT…
Browse files Browse the repository at this point in the history
…H as annotator
  • Loading branch information
biorover committed Dec 6, 2021
1 parent c6bae0f commit 3841d11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HAPpy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,9 @@ def main():
the "--annotator ABCENTH" option.')
addl_args.add_argument('--annotator', default = "genewise", help = 'Program to use for building final annotations. Currently the options \
are "genewise" (default) and "ABCENTH". I plan to add support for hint-guided AUGUSTUS at some point.')
run_args.add_argument('--ABCENTH_full_pseudoexon_search', default = True, help = 'Speficies whether ABCENTH should use genewise to \
extend pseudogenized exon hits (default = True). Specifying "False" can substantially speed up ABCENTH on highly fragmented genome \
at the expense of recovering slightly less sequence for pseudogenes (genes without frameshifts/internal stop codons are unaffected)')
run_args.add_argument('--augustus_profile_dir', default = None, help = 'directory of augustus profiles corresponding to entries in "--hmm_dir" \
(for optional use with "--hmm_dir <dir>" and "--annotator augustus")')
run_args.add_argument('--augustus_species', default = 'fly', help = 'species name for augustus parameters (default = "fly")')
Expand Down Expand Up @@ -942,7 +945,7 @@ def main():
stdout = open(args.output_dir + '/abcenth_cluster_info.tsv','w'))
subprocess.call(shlex.split('ABCENTH --genome ' + args.target_genome + ' --table ' +
args.output_dir + '/abcenth_filtered_hit_table.tsv --query_exon_info_table ' + args.output_dir +
'/abcenth_cluster_info.tsv'), stdout = open(args.output_dir + '/ABCENTH.gtf','w'))
'/abcenth_cluster_info.tsv --full_pseudoexon_search ' + str(args.ABCENTH_full_pseudoexon_search)), stdout = open(args.output_dir + '/ABCENTH.gtf','w'))

if 'genewise' in args.annotator:
os.environ['WISECONFIGDIR'] = path_dict['program_dir'] + '/' + 'cfgFiles'
Expand Down

0 comments on commit 3841d11

Please sign in to comment.