-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
662 additions
and
418 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.DS_Store | ||
!.gitignore | ||
.vscode | ||
# backup files | ||
/build | ||
|
||
*~ | ||
\#*# |
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef PEPSIRF_VERSION_HH_INCLUDED | ||
#define PEPSIRF_VERSION_HH_INCLUDED | ||
|
||
#define PEPSIRF_VERSION "1.4.0" | ||
#define PEPSIRF_VERSION "1.5.0" | ||
|
||
#endif |
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,54 @@ | ||
#ifndef FIF_PARSER_HH_INCLUDED | ||
#define FIF_PARSER_HH_INCLUDED | ||
#include <string> | ||
#include <vector> | ||
#include <unordered_set> | ||
#include <stdexcept> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <utility> | ||
#include <boost/algorithm/string.hpp> | ||
|
||
class flex_idx | ||
{ | ||
public: | ||
std::string idx_name; // name corresponding to header name in samplesheet | ||
std::string read_name; // name should either be R1 or R2 | ||
std::size_t idx_start; // index start location (0-based, inclusive) | ||
std::size_t idx_len; // index length | ||
std::size_t num_mismatch; // number of mismatches allowed | ||
std::unordered_set<std::string> barcode_ids; | ||
|
||
flex_idx( std::string col1, std::string col2, std::string col3, std::string col4, std::string col5 ) | ||
{ | ||
idx_name = col1; | ||
read_name = col2; | ||
idx_start = std::stoi( col3 ); | ||
idx_len = std::stoi( col4 ); | ||
num_mismatch = std::stoi( col5 ); | ||
} | ||
|
||
flex_idx( std::string col1, std::string col2, std::size_t col3, std::size_t col4, std::size_t col5 ) | ||
{ | ||
idx_name = col1; | ||
read_name = col2; | ||
idx_start = col3 ; | ||
idx_len = col4; | ||
num_mismatch = col5; | ||
} | ||
}; | ||
class fif_parser | ||
{ | ||
public: | ||
/** | ||
* Parse flexible index file containing index information. | ||
* See help message for (--fif,-f) for more info. | ||
* @param d_opts contains name of input file to generate flexible index | ||
* data and useful info to identify index data for return vec. | ||
* @return returns vector with each element as data for a single index. | ||
*/ | ||
std::vector<flex_idx> parse( const std::string fif_fname ); | ||
|
||
}; | ||
|
||
#endif // FIF_PARSER_HH_INCLUDED |
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.