File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ int JunctionsExtractor::parse_options(int argc, char *argv[]) {
41
41
optind = 1 ; // Reset before parsing again.
42
42
int c;
43
43
stringstream help_ss;
44
- while ((c = getopt (argc, argv, " ha:m:M:o:r:s:" )) != -1 ) {
44
+ while ((c = getopt (argc, argv, " ha:m:M:o:r:t: s:" )) != -1 ) {
45
45
switch (c) {
46
46
case ' a' :
47
47
min_anchor_length_ = atoi (optarg);
@@ -58,6 +58,9 @@ int JunctionsExtractor::parse_options(int argc, char *argv[]) {
58
58
case ' r' :
59
59
region_ = string (optarg);
60
60
break ;
61
+ case ' t' :
62
+ strand_tag_ = string (optarg);
63
+ break ;
61
64
case ' h' :
62
65
usage (help_ss);
63
66
throw common::cmdline_help_exception (help_ss.str ());
@@ -104,6 +107,8 @@ int JunctionsExtractor::usage(ostream& out) {
104
107
<< " \t\t\t " << " in \" chr:start-end\" format. Entire BAM by default." << endl;
105
108
out << " \t\t " << " -s INT\t Strand specificity of RNA library preparation \n "
106
109
<< " \t\t\t " << " (0 = unstranded, 1 = first-strand/RF, 2, = second-strand/FR). REQUIRED" << endl;
110
+ out << " \t\t " << " -t STR\t Tag used in bam to label strand. [XS]" << endl;
111
+
107
112
out << endl;
108
113
return 0 ;
109
114
}
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ class JunctionsExtractor {
155
155
string region_;
156
156
// strandness of data; 0 = unstranded, 1 = RF, 2 = FR
157
157
int strandness_;
158
+ // tag used in BAM to denote strand, default "XS"
159
+ string strand_tag_;
158
160
public:
159
161
// Default constructor
160
162
JunctionsExtractor () {
@@ -163,6 +165,7 @@ class JunctionsExtractor {
163
165
max_intron_length_ = 500000 ;
164
166
junctions_sorted_ = false ;
165
167
strandness_ = -1 ;
168
+ strand_tag_ = " XS" ;
166
169
bam_ = " NA" ;
167
170
output_file_ = " NA" ;
168
171
region_ = " ." ;
You can’t perform that action at this time.
0 commit comments