forked from marbl/canu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement splitToWords so it can split path names too.
- Loading branch information
1 parent
a432247
commit 0b4ce31
Showing
11 changed files
with
233 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
/****************************************************************************** | ||
* | ||
* This file is part of canu, a software program that assembles whole-genome | ||
* sequencing reads into contigs. | ||
* | ||
* This software is based on: | ||
* 'Celera Assembler' (http://wgs-assembler.sourceforge.net) | ||
* the 'kmer package' (http://kmer.sourceforge.net) | ||
* both originally distributed by Applera Corporation under the GNU General | ||
* Public License, version 2. | ||
* | ||
* Canu branched from Celera Assembler at its revision 4587. | ||
* Canu branched from the kmer project at its revision 1994. | ||
* | ||
* Modifications by: | ||
* | ||
* Brian P. Walenz beginning on 2016-MAY-01 | ||
* are a 'United States Government Work', and | ||
* are released in the public domain | ||
* | ||
* File 'README.licenses' in the root directory of this distribution contains | ||
* full conditions and disclaimers for each license. | ||
*/ | ||
|
||
#include "splitToWords.H" | ||
|
||
int | ||
main(int argc, char **argv) { | ||
splitToWords W; | ||
splitType type = splitWords; | ||
|
||
for (uint32 arg=1; arg<argc; arg++) { | ||
if (strcmp(argv[arg], "-p") == 0) { | ||
type = splitPaths; | ||
continue; | ||
} | ||
|
||
if (strcmp(argv[arg], "-w") == 0) { | ||
type = splitWords; | ||
continue; | ||
} | ||
|
||
W.split(argv[arg], type); | ||
|
||
fprintf(stderr, "'%s'\n", argv[arg]); | ||
|
||
for (uint32 ii=0; ii<W.numWords(); ii++) | ||
fprintf(stderr, "%02u - '%s'\n", ii, W[ii]); | ||
} | ||
|
||
exit(0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.