# Define matrix A with 10 rows and 5 columns
A = matrix(data = rnorm(50), nrow = 10, ncol = 5)
# Ask for the 10th row
print(A[10,])
# Ask for the 5th column
print(A[,5])
# Ask for the 11th row
print(A[11,])
# Ask for the 6th column
print(A[,6])
Im trying to analyze a 412 by 31 matrix with the DriverNet package, however,
Im constantly getting that error. The code for DriverNet is straightforward:
The most likely source of the error message is that the data you are putting into the algorithm are not in the format that the function expects. You have put the same matrix in the first three arguments to computeDrivers, but these are meant to be three different types of information, so it seems likely that you need to do a few more steps before your data are ready for the algorithm.
The best place to start is probably reviewing the documentation for the package. I notice that the package includes some functions to pre-process data into the format required, and it also includes sample data which you could compare to your input data to see if you're on the right track.
(Beyond being able to skim documentation with the best of them, I have no experience with this specific package — you may have more luck finding people who do over on the Bioconductor support site)