private void WriteCds(IInterval codingRegion, ITranscriptRegion exon, IRequiredFields requiredFields, IGeneralAttributes attribs) { if (!GffUtilities.HasCds(codingRegion, exon)) { return; } var cds = GffUtilities.GetCdsCoordinates(codingRegion, exon); _writer.WriteExonicRegion(cds, requiredFields, attribs, exon.Id, "CDS"); }
private void WriteUtr(IInterval codingRegion, ITranscriptRegion exon, IRequiredFields requiredFields, IGeneralAttributes attribs) { if (!GffUtilities.HasUtr(codingRegion, exon)) { return; } if (exon.Start < codingRegion.Start) { Write5PrimeUtr(codingRegion, exon, requiredFields, attribs); } if (exon.End > codingRegion.End) { Write3PrimeUtr(codingRegion, exon, requiredFields, attribs); } }