Mercurial > repos > fubar > differential_count_models
comparison rgedgeRpaired_nocamera.xml @ 121:d69a656284f5 draft
Uploaded
author | fubar |
---|---|
date | Sun, 23 Nov 2014 07:06:23 -0500 |
parents | ee3aa2b01623 |
children | 6ded550dcc7d |
comparison
equal
deleted
inserted
replaced
120:ee3aa2b01623 | 121:d69a656284f5 |
---|---|
829 } | 829 } |
830 } #### doDESeq2 or doVoom | 830 } #### doDESeq2 or doVoom |
831 | 831 |
832 } | 832 } |
833 #### Done | 833 #### Done |
834 ]]> | |
834 | 835 |
835 ###sink(stdout(),append=T,type="message") | 836 ###sink(stdout(),append=T,type="message") |
836 builtin_gmt = "" | 837 builtin_gmt = "" |
837 history_gmt = "" | 838 history_gmt = "" |
838 history_gmt_name = "" | 839 history_gmt_name = "" |
879 org = "$input1.dbkey" | 880 org = "$input1.dbkey" |
880 if (org == "") { org = "hg19"} | 881 if (org == "") { org = "hg19"} |
881 fdrtype = "$fdrtype" | 882 fdrtype = "$fdrtype" |
882 fdrthresh = $fdrthresh | 883 fdrthresh = $fdrthresh |
883 useNDF = $useNDF | 884 useNDF = $useNDF |
884 fQ = $fQ # non-differential centile cutoff | 885 fQ = $fQ |
885 myTitle = "$title" | 886 myTitle = "$title" |
886 sids = strsplit("$subjectids",',') | 887 sids = strsplit("$subjectids",',') |
887 subjects = unlist(sids) | 888 subjects = unlist(sids) |
888 nsubj = length(subjects) | 889 nsubj = length(subjects) |
889 TCols = as.numeric(strsplit(TreatmentCols,",")[[1]])-1 | 890 TCols = as.numeric(strsplit(TreatmentCols,",")[[1]])-1 |
893 cat('; CCols=') | 894 cat('; CCols=') |
894 cat(CCols) | 895 cat(CCols) |
895 cat('\n') | 896 cat('\n') |
896 useCols = c(TCols,CCols) | 897 useCols = c(TCols,CCols) |
897 if (file.exists(Out_Dir) == F) dir.create(Out_Dir) | 898 if (file.exists(Out_Dir) == F) dir.create(Out_Dir) |
898 Count_Matrix = read.table(Input,header=T,row.names=1,sep='\t') #Load tab file assume header | 899 Count_Matrix = read.table(Input,header=T,row.names=1,sep='\t') |
899 snames = colnames(Count_Matrix) | 900 snames = colnames(Count_Matrix) |
900 nsamples = length(snames) | 901 nsamples = length(snames) |
901 if (nsubj > 0 & nsubj != nsamples) { | 902 if (nsubj > 0 & nsubj != nsamples) { |
902 options("show.error.messages"=T) | 903 options("show.error.messages"=T) |
903 mess = paste('Fatal error: Supplied subject id list',paste(subjects,collapse=','), | 904 mess = paste('Fatal error: Supplied subject id list',paste(subjects,collapse=','), |
909 Count_Matrix = Count_Matrix[,useCols] ### reorder columns | 910 Count_Matrix = Count_Matrix[,useCols] ### reorder columns |
910 rn = rownames(Count_Matrix) | 911 rn = rownames(Count_Matrix) |
911 islib = rn %in% c('librarySize','NotInBedRegions') | 912 islib = rn %in% c('librarySize','NotInBedRegions') |
912 LibSizes = Count_Matrix[subset(rn,islib),][1] # take first | 913 LibSizes = Count_Matrix[subset(rn,islib),][1] # take first |
913 Count_Matrix = Count_Matrix[subset(rn,! islib),] | 914 Count_Matrix = Count_Matrix[subset(rn,! islib),] |
914 group = c(rep(TreatmentName,length(TCols)), rep(ControlName,length(CCols)) ) #Build a group descriptor | 915 group = c(rep(TreatmentName,length(TCols)), rep(ControlName,length(CCols)) ) |
915 group = factor(group, levels=c(ControlName,TreatmentName)) | 916 group = factor(group, levels=c(ControlName,TreatmentName)) |
916 colnames(Count_Matrix) = paste(group,colnames(Count_Matrix),sep="_") #Relable columns | 917 colnames(Count_Matrix) = paste(group,colnames(Count_Matrix),sep="_") |
917 results = edgeIt(Count_Matrix=Count_Matrix,group=group, out_edgeR=out_edgeR, out_Voom=out_Voom, out_DESeq2=out_DESeq2, | 918 results = edgeIt(Count_Matrix=Count_Matrix,group=group, out_edgeR=out_edgeR, out_Voom=out_Voom, out_DESeq2=out_DESeq2, |
918 fdrtype='BH',mydesign=NULL,priordf=edgeR_priordf,fdrthresh=fdrthresh,outputdir='.', | 919 fdrtype='BH',mydesign=NULL,priordf=edgeR_priordf,fdrthresh=fdrthresh,outputdir='.', |
919 myTitle=myTitle,useNDF=F,libSize=c(),filterquantile=fQ,subjects=subjects, | 920 myTitle=myTitle,useNDF=F,libSize=c(),filterquantile=fQ,subjects=subjects, |
920 doDESeq2=doDESeq2,doVoom=doVoom,doCamera=doCamera,doedgeR=doedgeR,org=org, | 921 doDESeq2=doDESeq2,doVoom=doVoom,doCamera=doCamera,doedgeR=doedgeR,org=org, |
921 histgmt=history_gmt,bigmt=builtin_gmt,DESeq_fitType=DESeq_fitType,robust_meth=edgeR_robust_meth) | 922 histgmt=history_gmt,bigmt=builtin_gmt,DESeq_fitType=DESeq_fitType,robust_meth=edgeR_robust_meth) |
922 sessionInfo() | 923 sessionInfo() |
923 ]]> | 924 |
924 </configfile> | 925 </configfile> |
925 </configfiles> | 926 </configfiles> |
926 <help> | 927 <help> |
927 | 928 |
928 **What it does** | 929 **What it does** |