Task 1 a completed

This commit is contained in:
avinal
2020-12-26 19:34:05 +05:30
parent 9d3115eea8
commit 3690c941a7
2 changed files with 540 additions and 0 deletions

20
Easy/task1a.r Normal file
View File

@@ -0,0 +1,20 @@
# download data 'neuroblastoma' and plot profile.id = 4, chromosome = 4, x=position, y=logratio
if(!require(neuroblastoma)) {
install.packages("neuroblastoma")
}
# import and load neuroblastoma dataset
library('neuroblastoma')
data('neuroblastoma')
# using np as neuro.profiles for profile data
np = neuroblastoma$profiles
xy = np[np$profile.id == 4 & np$chromosome == 2, ]
x = xy$position
y = xy$logratio
svg('Easy/task1a.svg')
plot(x, y, type='l', main="Neuroblastoma Data", xlab='position in base pair', ylab='normalized logratio of the probe')
grid()
legend(x=x[5], y=-0.5,legend="position vs logpoint data", col="black", lty=1, cex=0.8, bg='lightblue')
dev.off()

520
Easy/task1a.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 91 KiB