Closed Rotimz closed 2 years ago
Please add the following to your script:
library(lipidr)
Hi Ahmed,
The message I receive after that is:
Error: package or namespace load failed for ‘lipidr’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/gmm/libs/gmm.so': dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/gmm/libs/gmm.so, 0x0006): Library not loaded: '/usr/local/gfortran/lib/libgomp.1.dylib' Referenced from: '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/gmm/libs/gmm.so' Reason: tried: '/usr/local/gfortran/lib/libgomp.1.dylib' (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64h))), '/Library/Frameworks/R.framework/Resources/lib/libgomp.1.dylib' (no such file), '/Users/rotimi/lib/libgomp.1.dylib' (no such file), '/usr/local/lib/libgomp.1.dylib' (no such file), '/usr/lib/libgomp.1.dylib' (no such file), '/lib/libgomp.1.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/server/libgomp.1.dylib' (no such file), '/var/fol
I have also copied the full script below:
if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("lipidr") a yes
BiocManager::available()
library(lipidr) installed.packages()
dir_path = getwd() dir_name = "/lipidr_data" dm_path = paste(dir_path,dir_name,"/Reordered_AN_11_In_Log_2_Data_Matrix.csv", sep="") ta_path = paste(dir_path,dir_name,"/Reordered_In_Log_2_Data_Clin.csv", sep="")
df <- as_lipidomics_experiment(read.csv(dm_path)) df <- add_sample_annotation(d, ta_path)
d <- as_lipidomics_experiment(read.csv("Reordered_AN_11_In_Log_2_Data_Matrix.csv")) d <- add_sample_annotation(d, "Reordered_In_Log_2_Data_Clin")
Thank you for your help
You need to install Fortran library on your Mac. Please refer to #29 for details.
Thanks Ahmed. Works a treat now. Looking forward to working with your analysis tool!
Hi Ahmed,
I'm a 3rd year PhD Student new to coding with R. Unfortunately I am encountering an issue with the lipidr package. In response to:
R returns: Error in as_lipidomics_experiment(read.csv(dm_path)) : could not find function "as_lipidomics_experiment"
Any help would be much appreciated.
Thank you, Rotimi