On Apr 5, 2014, at 9:51 AM, Kate Ignatius wrote:
> I'm trying to work out the average of a certain value by chromosome.
> I've done the following, but it doesn't seem to work:
>
> Say, I want to find average AD for chromosome 1 only and paste the
> value next to all the positions on chromosome 1
I'm trying to work out the average of a certain value by chromosome.
I've done the following, but it doesn't seem to work:
Say, I want to find average AD for chromosome 1 only and paste the
value next to all the positions on chromosome 1:
sam$mmad[sam$chrom == '1'] <-
(sam$ad)/(colSums(sam[c(1:nr
2 matches
Mail list logo