public List <Intron> CreateIntrons() { Exon previous = null; foreach (Exon x in Exons) { if (previous == null) { previous = x; continue; } Intron intron = new Intron(this, x.ChromosomeID, x.Source, x.Strand, previous.OneBasedEnd + 1, x.OneBasedStart - 1); if (intron.Length() > 0) { Introns.Add(intron); } } return(Introns); }
public Intron(Intron intron) : base(intron) { }