# HG changeset patch # User yhoogstrate # Date 1400578022 14400 # Node ID c6463da8789369443c057b23b502c12f13870ad0 # Parent 8b7bd6e290c4fc646bfc62f7fa66ee9d0c1b93f5 Uploaded diff -r 8b7bd6e290c4 -r c6463da87893 edgeR_Concatenate_Expression_Matrices.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/edgeR_Concatenate_Expression_Matrices.xml Tue May 20 05:27:02 2014 -0400 @@ -0,0 +1,138 @@ + + + Create a full expression matrix by selecting the desired columns from specific count tables + + + #set $j = 0 + #set $paste = [] + + #if $add_geneids.choice == "true": + #set $filename = str($j)+".txt" + #set paste = paste + [$filename] + + cut -f $add_geneids.column_geneids.value "$add_geneids.sample_geneids" > $filename ; + #set $j += 1 + #end if + + #for $sample in $samples: + ##echo "$sample.column_index" + ##echo "$sample.column_index.value" + + #set $column_str = ",".join([str(x).strip() for x in $sample.column_index.value]) + #set $filename = str($j)+".txt" + #set paste = paste + [$filename] + + cut -f "$column_str" "$sample.sample" > $filename ; + #set $j += 1 + #end for + + #if $add_lengths.choice == "true": + #set $filename = str($j)+".txt" + #set paste = paste + [$filename] + + cut -f $add_lengths.column_lengths.value "$add_lengths.sample_lengths" > $filename ; + #set $j += 1 + #end if + + #set $paste_str = " ".join([str(x).strip() for x in $paste]) + + paste $paste_str > $expression_matrix + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +edgeR: Concatenate Expression Matrices + +**Notes** + +Make sure the tables have an identical number of columns compared to the number of headers. +If you export tables using R, make sure you set: col.names=NA. Otherwise column may be swapped during concatenation. + +**References** + +The test data is coming from: doi: 10.1093/bioinformatics/btt688. +http://www.ncbi.nlm.nih.gov/pubmed/24319002 + + +