Skip to content

Commit

Permalink
test gzi if fasta ref is gz
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelhomme committed Nov 18, 2015
1 parent 0909aa6 commit b945e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions needlestack.nf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ try { assert fasta_ref.exists() : "\n WARNING : fasta reference not located in e
if (fasta_ref.exists()) {assert fasta_ref_fai.exists() : "input fasta reference does not seem to have a .fai index (use samtools faidx)"}
try { assert bed.exists() : "\n WARNING : bed file not located in execution directory" } catch (AssertionError e) { println e.getMessage() }
try { assert file(params.bam_folder).exists() : "\n WARNING : input BAM folder not located in execution directory" } catch (AssertionError e) { println e.getMessage() }
if ( fasta_ref.exists() && params.fasta_ref.tokenize('.')[-1] == 'gz') {assert fasta_ref_gzi.exists() : "input gz fasta reference does not seem to have a .gzi index (use samtools faidx)"}
assert (params.min_dp > 0) : "minimum coverage must be higher than 0 (--min_dp)"
assert (params.max_DP > 1) : "maximum coverage before downsampling must be higher than 1 (--max_DP)"
assert (params.min_ao > 0) : "minimum alternative reads must be higher than 0 (--min_ao)"
Expand Down

1 comment on commit b945e3c

@tdelhomme
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #65

Please sign in to comment.