Commit 8418caf7 authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: -X with too large numbers still works

One may give a -X option greater than the number of input sequences,
as in should-vdj-to-tap.py (7305d28a). This now works.
parent 8170f55f
......@@ -884,6 +884,9 @@ int main (int argc, char **argv)
if (max_reads_processed_sample != NO_LIMIT_VALUE)
{
only_nth_read = nb_sequences_in_fasta(f_reads) / max_reads_processed_sample;
if (only_nth_read == 0)
only_nth_read = 1 ;
max_reads_processed = max_reads_processed_sample ;
cout << "Processing every " << only_nth_read << "th read" << endl ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment