Noi/NOTES/2012-4-30: Difference between revisions

From ZhangLabWiki
Jump to navigation Jump to search
>Noi
No edit summary
>Noi
No edit summary
Line 11: Line 11:
  mycol[mycol==2]<- "#473C8B"    #2=UCSD-GA:all old adults(slateblue)
  mycol[mycol==2]<- "#473C8B"    #2=UCSD-GA:all old adults(slateblue)
*'''sex'''
*'''sex'''
mycol=c(1,4,1,1,1,1,4,1,1,4,4,1,4,1,1,4,1,1,4,4,1,1,1,1,4,1,1,1,4,1,4,1,1,4,1,4,1,1,4,1,1,4,1,1,4,1,1,1,1,4,1,4,1,1,1,4,4,1,1,1,1,4,1,1,4,1,1,1,4,1,1,1,4,1,1,1,1,4,1,1,1,4,4,1,1,4,1,1,1,4,1,1,1,4,1,4,2,8,2,2,8,2,2,8,2,2,2,2,8,8,2,8,2,2,2,2,2,8,2,8,2,8,8,8,8,8,8,2,2,2,8,8,2,8,8,8,2,2,2,2,2,2,8,8,8,2,8,8,8,8,2,8,8,2,8,8,2,8,8,8,2,2,8,8,8,8,2,2,2)
mycol=c(1,4,1,1,1,1,4,1,1,4,4,1,4,1,1,4,1,1,4,4,1,1,1,1,4,1,1,1,4,1,4,1,1,4,1,4,1,1,4,1,1,4,1,1,4,1,1,1,1,4,1,4,1,1,1,4,4,1,1,1,1,4,1,1,4,1,1,1,4,1,1,1,4,1,1,1,1,4,1,1,1,4,4,1,1,4,1,1,1,4,1,1,1,4,1,4,2,8,2,2,8,2,2,8,2,2,2,2,8,8,2,8,2,2,2,2,2,8,2,8,2,8,8,8,8,8,8,2,2,2,8,8,2,8,8,8,2,2,2,2,2,2,8,8,8,2,8,8,8,8,2,8,8,2,8,8,2,8,8,8,2,2,8,8,8,8,2,2,2)
  mycol[mycol==1]<- "#000080"      #1=UCLA, male(navy)
  mycol[mycol==1]<- "#000080"      #1=UCLA, male(navy)
  mycol[mycol==4]<- "#CD1076"        #4=UCLA, female(deeppink)
  mycol[mycol==4]<- "#CD1076"        #4=UCLA, female(deeppink)
  mycol[mycol==2]<- "#1874CD "    #2=UCSD-GA, male(dodgerblue)
  mycol[mycol==2]<- "#1874CD"    #2=UCSD-GA, male(dodgerblue)
  mycol[mycol==8]<- "#CD69C9"    #8=UCSD-GA, female(orchid3)
  mycol[mycol==8]<- "#CD69C9"    #8=UCSD-GA, female(orchid3)
*'''status'''
*'''status'''
  mycol=c(4,4,1,4,1,4,4,4,4,4,4,4,4,1,4,4,4,4,4,4,1,4,1,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,4,4,4,4,1,4,4,1,4,4,4,1,4,4,1,4,4,4,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,1,4,1,4,4,1,1,4,4,4,4,4,4,1,4,4,4,1,4,4,4,1,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
  mycol=c(4,4,1,4,1,4,4,4,4,4,4,4,4,1,4,4,4,4,4,4,1,4,1,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,4,4,4,4,1,4,4,1,4,4,4,1,4,4,1,4,4,4,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,1,4,1,4,4,1,1,4,4,4,4,4,4,1,4,4,4,1,4,4,4,1,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)

Revision as of 00:27, 2 May 2012

Regression analysis of UCLA SZ data, applying LDA function

  • Continued from: http://genome-tech.ucsd.edu/LabNotes/index.php/Noi/NOTES/2012-4-17
  • I repeated regression analysis again by changing some criteria to select the candidate significant CpG sites, based on FDR or with minimum raw p-value. For status regression analysis, I will not apply multiple test correction since I didn't get any signal. However with minimum t statistic of 2.5 from the previous analysis I could separate out the normal and affected samples. Dr. Suggested that this should be fine. In addition, I will change the color of the control samples in PCA analysis plots. LDA will be used then the number of samples in the two groups classified by the line will be counted.

Color code for PCA plot

  • Age
mycol=c(1,1,4,4,4,1,1,4,1,1,4,4,1,4,1,1,4,1,1,4,4,4,4,1,1,4,4,1,1,4,4,4,1,1,4,4,4,1,1,4,1,1,4,4,1,1,4,4,1,1,4,4,4,4,1,1,4,4,1,4,4,4,4,1,1,4,4,1,1,4,4,1,1,4,4,4,1,1,4,4,1,1,4,4,1,1,4,4,1,1,4,4,1,1,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
mycol[mycol==1]<- "black"          #1=UCLA parents
mycol[mycol==4]<- "#32CD32"     #4=UCLA children(limegreen)
mycol[mycol==2]<- "#473C8B"     #2=UCSD-GA:all old adults(slateblue)
  • sex
mycol=c(1,4,1,1,1,1,4,1,1,4,4,1,4,1,1,4,1,1,4,4,1,1,1,1,4,1,1,1,4,1,4,1,1,4,1,4,1,1,4,1,1,4,1,1,4,1,1,1,1,4,1,4,1,1,1,4,4,1,1,1,1,4,1,1,4,1,1,1,4,1,1,1,4,1,1,1,1,4,1,1,1,4,4,1,1,4,1,1,1,4,1,1,1,4,1,4,2,8,2,2,8,2,2,8,2,2,2,2,8,8,2,8,2,2,2,2,2,8,2,8,2,8,8,8,8,8,8,2,2,2,8,8,2,8,8,8,2,2,2,2,2,2,8,8,8,2,8,8,8,8,2,8,8,2,8,8,2,8,8,8,2,2,8,8,8,8,2,2,2)
mycol[mycol==1]<- "#000080"       #1=UCLA, male(navy)
mycol[mycol==4]<- "#CD1076"        #4=UCLA, female(deeppink)
mycol[mycol==2]<- "#1874CD"     #2=UCSD-GA, male(dodgerblue)
mycol[mycol==8]<- "#CD69C9"     #8=UCSD-GA, female(orchid3)
  • status
mycol=c(4,4,1,4,1,4,4,4,4,4,4,4,4,1,4,4,4,4,4,4,1,4,1,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,4,4,4,4,1,4,4,1,4,4,4,1,4,4,1,4,4,4,4,4,4,1,4,4,4,4,1,4,4,4,4,1,4,4,1,4,1,4,4,1,1,4,4,4,4,4,4,1,4,4,4,1,4,4,4,1,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
mycol[mycol==1]<- "#8B0000"       #1=UCLA, affected (red4)
mycol[mycol==4]<- "#0000CD"        #4=UCLA, unaffected (mediumblue)
mycol[mycol==2]<- "#7A67EE"     #2=UCSD-GA(slateblue2)


  • Directory: /home/nplongth/Noi_scratch/Data_analysis/UCLA_SZ_data_analysis_2012_04_05/UCLA_regression_analysis/2012_05_01_regression/
  • I used the files generated from previous analyses. Age, sex and status data with the calculated p-value and q-value were printed out in separated files.

PCA analysis, required p-value <= 0.01

  • Print out the CpG sites with the R square value > 0.1 and p-value <=0.01
awk '{if ($2>0.1 && $8<=0.01) print $0}' sorted_UCLA_regression_age_qval.txt>UCLA_regression_age_pval0.01
1038 UCLA_regression_age_pval0.01
awk '{if ($2>0.1 && $8<=0.01) print $0}' sorted_UCLA_regression_sex_qval.txt > UCLA_regression_sex_pval0.01
678 UCLA_regression_sex_pval0.01
awk '{if ($2>0.1 && $8<=0.01) print $0}' sorted_UCLA_regression_status.txt > UCLA_regression_status_pval0.01
110 UCLA_regression_status_pval0.01
  • Extract methylation value into the matrix
./extract_methyFreqMatrix.pl ../UCLA-GA_methyl_min70_minSTD0.05 ./UCLA_regression_age_pval0.01 > UCLA_regression_age_pval0.01_MM
1038 UCLA_regression_age_pval0.01_MM
./extract_methyFreqMatrix.pl ./UCLA-GA_methyl_min70_minSTD0.05 ./UCLA_regression_sex_pval0.01 > UCLA_regression_sex_pval0.01_MM
678 UCLA_regression_sex_pval0.01_MM
./extract_methyFreqMatrix.pl ./UCLA-GA_methyl_min70_minSTD0.05 ./UCLA_regression_status_pval0.01 > UCLA_regression_status_pval0.01_MM
110 UCLA_regression_status_pval0.01_MM