Open Dhanusha782 opened 4 years ago
To calculate the number of genes, I used which(B<-rowMeans(x)<10)
it gives total genes 43,697 (42124+1573) is it correct?
this was the answer I got from cording "omitted 42124 entries"
It indicates 1537 genes and omitted 42124. I think the combination of these 2 gives number of genes with mean<10
Below I have pasted R studio codes till question number 4, and there is an issue on question number 4.
Read the file
download.file("https://raw.githubusercontent.com/markziemann/SLE712_files/master/bioinfo_asst3_part1_files/gene_expression.tsv",destfile="gene_expression.tsv") x<-read.table("gene_expression.tsv") typeof(x) head(x) str(x)
x <- read.table("gene_expression.tsv", header = TRUE , stringsAsFactors = FALSE , row.names = 1, sep="\t") head(x) str(x)
Create new column for mean values
x$Mean<- rowMeans(x) head(x)
10 genes with the higher mean values
head(ord<-x[order(-x$Mean),],n=10)
Number of the gene with the mean value above 10