@@ -40,6 +40,7 @@ void CisSpliceEffectsIdentifier::usage(ostream& out) {
40
40
out << " \t\t " << " -j STR\t Output file containing the aberrant junctions in BED12 format." << endl;
41
41
out << " \t\t " << " -s INT\t Strand specificity of RNA library preparation \n "
42
42
<< " \t\t\t " << " (0 = unstranded, 1 = first-strand/RF, 2, = second-strand/FR). REQUIRED" << endl;
43
+ out << " \t\t " << " -t STR\t Tag used in bam to label strand. [XS]" << endl;
43
44
out << " \t\t " << " -a INT\t Minimum anchor length. Junctions which satisfy a minimum \n "
44
45
<< " \t\t\t " << " anchor length on both sides are reported. [8]" << endl;
45
46
out << " \t\t " << " -m INT\t Minimum intron length. [70]" << endl;
@@ -103,7 +104,7 @@ void CisSpliceEffectsIdentifier::parse_options(int argc, char* argv[]) {
103
104
optind = 1 ; // Reset before parsing again.
104
105
stringstream help_ss;
105
106
char c;
106
- while ((c = getopt (argc, argv, " o:w:v:j:e:Ei:IShs :a:m:M:" )) != -1 ) {
107
+ while ((c = getopt (argc, argv, " o:w:v:j:e:Ei:ISht:s :a:m:M:" )) != -1 ) {
107
108
switch (c) {
108
109
case ' o' :
109
110
output_file_ = string (optarg);
@@ -138,6 +139,9 @@ void CisSpliceEffectsIdentifier::parse_options(int argc, char* argv[]) {
138
139
case ' s' :
139
140
strandness_ = atoi (optarg);
140
141
break ;
142
+ case ' t' :
143
+ strand_tag_ = string (optarg);
144
+ break ;
141
145
case ' a' :
142
146
min_anchor_length_ = atoi (optarg);
143
147
break ;
@@ -246,7 +250,7 @@ void CisSpliceEffectsIdentifier::identify() {
246
250
if (write_annotated_variants_)
247
251
va.write_annotation_output (v1);
248
252
// Extract junctions near this variant
249
- JunctionsExtractor je1 (bam_, variant_region, strandness_, min_anchor_length_, min_intron_length_, max_intron_length_);
253
+ JunctionsExtractor je1 (bam_, variant_region, strandness_, strand_tag_, min_anchor_length_, min_intron_length_, max_intron_length_);
250
254
je1.identify_junctions_from_BAM ();
251
255
vector<Junction> junctions = je1.get_all_junctions ();
252
256
// Add all the junctions to the unique set
0 commit comments