Skip to content

Commit

Permalink
default output to STDOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjpage committed Jan 29, 2018
1 parent a323a50 commit a601b73
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ Bioconda produce a Docker container so you can use the software out of the box.
```
Usage: snp-sites [-mvph] [-o output_filename] <file>
This program finds snp sites from a multi fasta alignment file.
-r output internal pseudo reference sequence
-m output a multi fasta alignment file (default)
-v output a VCF file
-p output a phylip file
-o specify an output filename
-h this help message
-V print version and exit
<file> input alignment file which can optionally be gzipped
-r output internal pseudo reference sequence
-m output a multi fasta alignment file (default)
-v output a VCF file
-p output a phylip file
-o STR specify an output filename [STDOUT]
-c only output columns containing exclusively ACGT
-b output monomorphic sites, used for BEAST
-h this help message
-V print version and exit
<file> input alignment file which can optionally be gzipped
```

This application takes in a multi fasta alignment, finds all the SNP sites, then outputs the SNP sites in the following formats:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.3
2.4.0
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static void print_usage()
printf(" -m output a multi fasta alignment file (default)\n");
printf(" -v output a VCF file\n");
printf(" -p output a phylip file\n");
printf(" -o STR specify an output filename\n");
printf(" -o STR specify an output filename [STDOUT]\n");
printf(" -c only output columns containing exclusively ACGT\n");
printf(" -b output monomorphic sites, used for BEAST\n");
printf(" -h this help message\n");
Expand All @@ -62,7 +62,7 @@ static void print_version()

int main (int argc, char **argv) {
char multi_fasta_filename[FILENAME_MAX] = {""};
char output_filename[FILENAME_MAX] = {""};
char output_filename[FILENAME_MAX] = {"/dev/stdout"};

int c;
int index;
Expand Down

0 comments on commit a601b73

Please sign in to comment.