Skip to content

Commit

Permalink
add option to skip checks at start of preprocess_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
heller committed Oct 26, 2017
1 parent 9560ccc commit 2bf01a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/preprocess_dataset
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ The version of the genome can be given as an optional parameter. It defaults to
parser.add_argument('--min_length', type=int, default=8, help='minimum binding site length (default: 8)')
parser.add_argument('--max_length', type=int, default=75, help='maximum binding site length (default: 75)')
parser.add_argument('--elongation', '-e', type=int, default=20, help='span for up- and downstream elongation of binding sites (default: 20)')
parser.add_argument('--skip_check', '-s', action='store_true', help='skip check for installed prerequisites')
return parser.parse_args()

def checkPrereqs():
Expand Down Expand Up @@ -238,7 +239,7 @@ def main(args):
options = parseArguments(args)

#Check required programs bedtools, RNAshapes, and RNAstructures
if not checkPrereqs():
if not options.skip_check and not checkPrereqs():
return

#Prepare folder structure
Expand Down

0 comments on commit 2bf01a4

Please sign in to comment.