File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ void Manifest::open(string filename, bool wide)
104
104
{
105
105
string s;
106
106
ifstream file;
107
- snpClass *snp = new snpClass ();
108
107
109
108
map<string, int > widecols; // Only used if opening a wide-format file.
110
109
// Key = col. name; value = col. number (0 onwards).
@@ -185,6 +184,7 @@ void Manifest::open(string filename, bool wide)
185
184
186
185
// cout << "\nDEBUG: " << s << flush;
187
186
187
+ snpClass *snp = new snpClass ();
188
188
189
189
if ( wide ) {
190
190
size_t found = s.find (" [Controls]" );
@@ -319,6 +319,7 @@ void Manifest::open(string filename, bool wide)
319
319
}
320
320
else {
321
321
convert (snp, a[SNP_COL]);
322
+
322
323
}
323
324
324
325
if ( -1 == BEADSETID_COL ) {
@@ -340,6 +341,8 @@ void Manifest::open(string filename, bool wide)
340
341
normIdMap[snp->normId ] = 1 ;
341
342
342
343
numsnps++; // If we got this far, must be OK to increment!
344
+
345
+ delete snp;
343
346
}
344
347
345
348
file.close ();
Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ class snpClass {
73
73
long position;
74
74
float score;
75
75
char snp [2 ]; // 'GT' or 'AG' for example. Defined to be A/B for TOP strand.
76
- char iStrand; // Illumina Strand: B (Bottom) or T (Top)
77
- char cStrand; // Customer Strand: B (Bottom) or T (Top)
76
+ char iStrand; // Original Illumina Strand: B (Bottom) or T (Top)
77
+ char cStrand; // Original Customer Strand: B (Bottom) or T (Top)
78
78
int normId; // index into normalisation table
79
79
int BeadSetID; // Only available from "wide format" manifest files (.csv not .bpm.csv)
80
80
81
81
bool converted; // has SNP been converted from original to ILMN top strand?
82
-
82
+ // converted=true changes output of toString(), but not the iStrand and cStrand variables (which represent the original values)
83
83
};
84
84
85
85
You can’t perform that action at this time.
0 commit comments