📄 donofinddlg.h
字号:
// donofindDlg.h : header file
//
#if !defined(AFX_DONOFINDDLG_H__0A5240ED_CE2E_4B99_970E_ABB6E6C6B139__INCLUDED_)
#define AFX_DONOFINDDLG_H__0A5240ED_CE2E_4B99_970E_ABB6E6C6B139__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDonofindDlg dialog
class CDonofindDlg : public CDialog
{
// Construction
public:
double ScoreForTest(char* posi);
double GetPNega(int m_position, char m_atcg);
void SetPPosi(int m_position, char m_atcg , double m_pro);
double GetPPosi(int m_position, char m_atcg);
CDonofindDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDonofindDlg)
enum { IDD = IDD_DONOFIND_DIALOG };
double m_spval;
double m_cval;
CString m_donoOutput;
CString m_snval;
int m_fpnum;
int m_tpnum;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDonofindDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDonofindDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTrainset();
afx_msg void OnTestset();
afx_msg void OnLookpro();
afx_msg void OnRefresh();
afx_msg void OnExit();
afx_msg void OnChangeSnval();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int TrainReady,TestReady;
CString szTestDir;
double ScoreFormula(unsigned char* m_record);
double m_trainScore[10000]; //对训练集中的donor位点进行打分后的结果
int m_donoTotal; //总的donor片段数-1,数组下标
unsigned char m_seg9[10000][9]; //donor位点片段,里面存的是直接从文件中得到的小写a t c g 的ASCII码
double ProbPosi[9][4]; //行为donor位点的位子,列0~3 对应atcg
double ProbNega[9][4];
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DONOFINDDLG_H__0A5240ED_CE2E_4B99_970E_ABB6E6C6B139__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -