Exemple #1
0
		private void WriteStringFieldWithTab(BgzipOrStreamWriter w, string s)
		{
			w.WriteTab(StringCheck(s));
		}
Exemple #2
0
		public void Write(BgzipOrStreamWriter w, int nSamples)
		{
			SanityCheck(nSamples);

			WriteStringFieldWithTab(w, ChromName);
			w.WriteTab(Pos.ToString());
			WriteStringFieldWithTab(w, Id);
			WriteStringFieldWithTab(w, Ref);
			WriteStringFieldWithTab(w, GetAltString());
			WriteStringFieldWithTab(w, _qual);
			WriteStringFieldWithTab(w, GetFilterString());
			WriteStringFieldWithTab(w, GetInfoString());
			WriteStringFieldWithTab(w, GetFormatString());
			for (int sampleIndex = 0; sampleIndex < nSamples; ++sampleIndex)
			{
				if (sampleIndex == (nSamples - 1))
					WriteStringFieldNoTab(w, GetSampleString(sampleIndex));
				else
					WriteStringFieldWithTab(w, GetSampleString(sampleIndex));
			}
			w.WriteLine();
		}