Changeset 2900


Ignore:
Timestamp:
Dec 13, 2012, 1:32:33 AM (9 years ago)
Author:
Peter
Message:

remove trailing WS

Location:
trunk/yat/omic
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/Codon.cc

    r2881 r2900  
    3636  Codon::Map_ Codon::map_;
    3737
    38   Codon::Codon(void) 
     38  Codon::Codon(void)
    3939  {
    4040    create_map();
     
    7575      std::stringstream ss;
    7676      ss << e.what() << "\n"
    77          << "invalid argument Codon::Codon" 
     77         << "invalid argument Codon::Codon"
    7878         << "(" << vec[0] << ", " << vec[1] << ", " << vec[2] << ")";
    7979      throw std::invalid_argument(ss.str());
     
    8282
    8383
    84   void Codon::add_to_map(char aa, const std::string& codons) 
     84  void Codon::add_to_map(char aa, const std::string& codons)
    8585  {
    8686    // FIXME: change this file to take one codon instead and remove
     
    9898  }
    9999
    100  
     100
    101101  char Codon::amino_acid(void) const
    102102  {
     
    126126    add_to_map('N', "AAT,AAC");
    127127    add_to_map('M', "ATG");
    128     add_to_map('D', "GAT,GAC");   
     128    add_to_map('D', "GAT,GAC");
    129129    add_to_map('F', "TTT,TTC");
    130130    add_to_map('C', "TGT,TGC");
     
    162162  }
    163163
    164   bool Codon::Compare_::operator()(const std::vector<DNA>& lhs, 
     164  bool Codon::Compare_::operator()(const std::vector<DNA>& lhs,
    165165                                   const std::vector<DNA>& rhs) const
    166166  {
  • trunk/yat/omic/Codon.h

    r2441 r2900  
    110110    struct Compare_
    111111    {
    112       bool operator()(const std::vector<DNA>& lhs, 
     112      bool operator()(const std::vector<DNA>& lhs,
    113113                      const std::vector<DNA>& rhs) const;
    114114    };
    115     typedef std::map<std::vector<DNA>, char, Compare_> Map_; 
     115    typedef std::map<std::vector<DNA>, char, Compare_> Map_;
    116116    static Map_ map_;
    117117
    118118    Map_::const_iterator iter_;
    119    
    120     void add_to_map(char aa, const std::string& codons); 
    121    
     119
     120    void add_to_map(char aa, const std::string& codons);
     121
    122122    void init(const std::vector<DNA>& vec);
    123123    void create_map(void);
     
    126126    // Codon(const Codon&)
    127127    // Codon& operator=(const Codon&)
    128   }; 
    129  
     128  };
     129
    130130  /**
    131131     \brief Functor comparing if two Codons translate to the same amino acid
  • trunk/yat/omic/GFF2.h

    r2482 r2900  
    3232     Class for GFF2
    3333
    34      The difference is how the values 
     34     The difference is how the values
    3535
    3636     \since New in yat 0.8
  • trunk/yat/omic/GenomicPosition.cc

    r2881 r2900  
    88  published by the Free Software Foundation; either version 3 of the
    99  License, or (at your option) any later version.
    10  
     10
    1111  The yat library is distributed in the hope that it will be useful,
    1212  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1313  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    1414  General Public License for more details.
    15  
     15
    1616  You should have received a copy of the GNU General Public License
    1717  along with this program. If not, see <http://www.gnu.org/licenses/>.
     
    3030namespace omic {
    3131
    32   GenomicPosition::GenomicPosition(void) 
     32  GenomicPosition::GenomicPosition(void)
    3333  {}
    3434
    3535
    36   GenomicPosition::GenomicPosition(unsigned short int chr, 
     36  GenomicPosition::GenomicPosition(unsigned short int chr,
    3737                                   unsigned long int pos)
    3838    : chr_(chr), pos_(pos)
     
    4040
    4141
    42   GenomicPosition::GenomicPosition(const std::string& chr, 
     42  GenomicPosition::GenomicPosition(const std::string& chr,
    4343                                   const std::string& pos)
    44     : chr_(chr2int(chr)), 
     44    : chr_(chr2int(chr)),
    4545      pos_(yat::utility::convert<unsigned long int>(pos))
    4646  {}
  • trunk/yat/omic/GenomicPosition.h

    r2389 r2900  
    1111  published by the Free Software Foundation; either version 3 of the
    1212  License, or (at your option) any later version.
    13  
     13
    1414  The yat library is distributed in the hope that it will be useful,
    1515  but WITHOUT ANY WARRANTY; without even the implied warranty of
     
    8686     */
    8787    const unsigned long int& position(void) const;
    88    
     88
    8989  private:
    9090    unsigned short chr_;
    9191    unsigned long pos_;
    92   }; 
     92  };
    9393
    9494  /**
Note: See TracChangeset for help on using the changeset viewer.