Displaying 2 results from an estimated 2 matches for "cancer_gen".
Did you mean:
cancer_gene
2017 Jul 03
3
reshaping the data
...BTK INDEL
I would like to transform this DATAFRAME into a MATRIX that has GENE on
ROWS, SAMPLE on COLUMNS, and the elements of the matrix are SNV or INDEL
(ie the types of mutations).
The R code starts with :
y <- data.frame(Sample = x$Sample, Gene = x$Gene, Type=x$Type)
z <- acast(y, Cancer_Gene ~ Sample)
although in z, I do not have the information on Type (i.e.SNV or INDEL).
thanks a lot,
-- bogdan
[[alternative HTML version deleted]]
2017 Jul 03
0
reshaping the data
...orm this DATAFRAME into a MATRIX that has GENE on
> ROWS, SAMPLE on COLUMNS, and the elements of the matrix are SNV or INDEL
> (ie the types of mutations).
>
> The R code starts with :
>
> y <- data.frame(Sample = x$Sample, Gene = x$Gene, Type=x$Type)
>
> z <- acast(y, Cancer_Gene ~ Sample)
>
> although in z, I do not have the information on Type (i.e.SNV or INDEL).
>
> thanks a lot,
>
> -- bogdan
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNS...