Exemple #1
0
 public Chain(IEnumerable <char> sequence)
 {
     _aas = new NodeArraySource <IAa>(this);
     foreach (char residue in sequence)
     {
         AddAtTerminus(residue);
     }
 }
Exemple #2
0
 public Chain(string sequence)
 {
     _aas = new NodeArraySource <IAa>(this);
     foreach (char residue in sequence)
     {
         AddAtTerminus(residue);
     }
 }
Exemple #3
0
 public Chain(IEnumerable <IAa> aas, bool clone = true)
 {
     _aas = new NodeArraySource <IAa>(this);
     if (clone)
     {
         _aas.AddRange(aas.Select(aa => new Aa(aa)));
     }
     else
     {
         _aas.AddRange(aas);
     }
 }
Exemple #4
0
 public Structure(IEnumerable <IChain> chains)
 {
     _chains = new NodeArraySource <IChain>(this, chains);
 }
Exemple #5
0
 public Structure(IChain chain)
 {
     _chains = new NodeArraySource <IChain>(this, chain);
 }
Exemple #6
0
 public Structure(IArraySource <IChain> other)
 {
     _chains = new NodeArraySource <IChain>(this);
     _chains.AddArraySource(other);
 }
Exemple #7
0
 public Structure()
 {
     _chains = new NodeArraySource <IChain>(this);
 }
Exemple #8
0
 public Chain()
 {
     _aas = new NodeArraySource <IAa>(this);
 }