https://github.com/michal-brylinski/efindsite
Revision 72f012435573ecfab2dc5c5478bf16ec459f5937 authored by Michal Brylinski on 25 October 2018, 17:56:05 UTC, committed by GitHub on 25 October 2018, 17:56:05 UTC
1 parent 92852e9
Raw File
Tip revision: 72f012435573ecfab2dc5c5478bf16ec459f5937 authored by Michal Brylinski on 25 October 2018, 17:56:05 UTC
Update 13gsA.profile
Tip revision: 72f0124
target.h
/*
===============================================================================
         ___________.__            .____________.__  __          
     ____\_   _____/|__| ____    __| _/   _____/|__|/  |_  ____  
   _/ __ \|    __)  |  |/    \  / __ |\_____  \ |  \   __\/ __ \ 
   \  ___/|     \   |  |   |  \/ /_/ |/        \|  ||  | \  ___/ 
    \___  >___  /   |__|___|  /\____ /_______  /|__||__|  \___  >
        \/    \/            \/      \/       \/               \/ 

                                                  
   eFindSite - ligand-binding site prediction from meta-threading

   Computational Systems Biology Group
   Department of Biological Sciences
   Center for Computation & Technology
   Louisiana State University
   407 Choppin Hall, Baton Rouge, LA 70803, USA

   http://www.brylinski.org

   Report bugs to michal@brylinski.org

   Copyright 2013 Michal Brylinski

   This file is part of eFindSite.

   eFindSite is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   eFindSite is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with eFindSite. If not, see <http://www.gnu.org/licenses/>.

===============================================================================
*/


#ifndef __TARGET_H_
#define __TARGET_H_

#include<vector>
#include<fstream>
#include<iostream>
#include<sstream>
#include<cstdio>
#include<cctype>
#include<string>

#include "coords.h"
#include "data.h"
#include "size.h"

using namespace std;

class Target {
        
  private:
    
    vector<CoordsProtein> _protein_xyz;   // protein coords
    
    int    _na;                           // number of protein atoms
    int    _nr;                           // number of protein residues
    
    string _protein_seq1;                 // sequence string
    char   _protein_seq2[MAXPRO];         // sequence char
    int    _protein_seq3[MAXPRO];         // sequence int
    double _protein_prf1[MAXPRO][20];     // sequence profiles
    
  public:
    
    Target( int, int );
    
    Target( void );
    
    ~Target();
    
    bool loadTarget( std::string );
    
    bool loadSequence( std::string );
    
    std::string getProteinSequence( void );
    
    int getProteinResiduesTotal( void );
    
    int getProteinCoordsCA( double [][3] );
    
    void getSequenceProfile( int, double [] );
    
    int getProteinNumbering( int );
};

#endif
back to top