Input can now be stdin if there is only one dataset to compare with

itself.
This commit is contained in:
Celine Mercier
2016-02-22 15:38:31 +01:00
parent 580902e0c3
commit 7667eb862b
3 changed files with 4 additions and 6 deletions

View File

@ -20,7 +20,7 @@
#include "./sumalibs/libutils/utilities.h" #include "./sumalibs/libutils/utilities.h"
#include "mtcompare_sumatra.h" #include "mtcompare_sumatra.h"
#define VERSION "1.0.10" #define VERSION "1.0.20"
/* ----------------------------------------------- */ /* ----------------------------------------------- */
@ -84,7 +84,7 @@ static void PrintHelp()
static void ExitUsage(stat) static void ExitUsage(stat)
int stat; int stat;
{ {
PP "usage: sumatra [-l|L|a|n|r|d|g|x] [-t threshold_value] [-p number of threads] dataset1 [dataset2]\n"); PP "usage: sumatra [-l|L|a|n|r|d|g|x] [-t threshold_value] [-p number of threads] [dataset1] [dataset2]\n");
PP "type \"sumatra -h\" for help\n"); PP "type \"sumatra -h\" for help\n");
if (stat) if (stat)
@ -425,8 +425,6 @@ int main(int argc, char **argv)
} }
ndb = argc - optind; ndb = argc - optind;
if (ndb < 1)
errflag++;
if (errflag) if (errflag)
ExitUsage(errflag); ExitUsage(errflag);

View File

@ -40,12 +40,12 @@ Sumatra computes the pairwise alignment scores from one dataset or between two d
#### Input #### Input
Files must be in FASTA format. If there is one dataset, the input can be either the standard input (stdin), or a file in FASTA format. If there are two datasets to compare, the input must be two files in FASTA format.
#### Usage #### Usage
``` ```
sumatra [-l|L|a|n|r|d|g|x] [-t threshold_value] [-p number of threads] dataset1 [dataset2] sumatra [-l|L|a|n|r|d|g|x] [-t threshold_value] [-p number of threads] [dataset1] [dataset2]
``` ```
First argument: the sequence dataset in fasta format to analyse. First argument: the sequence dataset in fasta format to analyse.

Binary file not shown.