-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To have in input a vector of string of NMRExperiments #62
Comments
Thanks for your feedback! If you have your samples from different groups in different folders then that's a way to name them, but not everyone uses that schema and some experiment designs may be more complex and not take care of naming so easily I guess... I am currently heavily working on improving some parts of the package. Naming samples is important and we need to provide a convenient solution for everyone. I could easily provide a function to set the sample names where you just give the sample names as a character vector and then AlpsNMR replaces the names where needed. I could provide an additional helper to allow the renaming of the sample based on the sample path. I will explore some options, provide you some solutions and if they work for you then I will merge them for everyone. I hope to find the time to implement this soon. |
I've implemented two functions that will be helpful:
For instance, if the sample names are repeated, in different subfolders, such as:
Will give you as sample names I hope this behaves as you expect, you can always choose your own names, with I will close this issue in a few days. Feel free to comment or close it yourself if you like. Have a nice day! |
Thanks. I will look your new feature next week. :) |
I cannot upgrade AlpsNMR now because I have not yet R >=4.2 (R 4.1.2). I will look in the future.
In fact I have many folders of Bruker datasets, each folder is different. I have never the same folder like my analyses (my_dir_of_NMR_analysis) I see that you prefer to close my issue, even if I cannot test, and you prefer to reopen or create a new one to not have too many opened issues during months and months :) Thank you anyway for your work. |
I'll try to relax the 4.2 dependency to 4.1. Besides, would something like:
Work that work for you? |
|
The package seems to work on R 4.1 as well. Feel free to try it |
Ok thanks. I installed it. But I think we don't understand each other :D See below for a new explanation of wish :) Issue of
|
I will prepare some unit tests to ensure your directory structure gives sensible names. Meanwhile, I would expect something like this to work: my_list<- fs::dir_ls( ROOT_DIRECTORY_ANALYSIS, type="directory", recurse=0)
ds <- nmr_read_samples_dir(my_list)
names(ds) <- c("Flower1", "Flower2", "Flower3")
# Or:
# names(ds) <- basename(my_list) But I will do further testing. I'm writing this from my phone right now :-) |
Hello.
Thank you very much for your powerful Nmr package, well documented with examples, integrated, and not too complex to use.
I saw that you have implemented Ensure unique exp names pull #48, it's useful, but when we have >100 experiments for a PCA, for example, it's not easy to analyze "10...54" experiment name and not the real name of experiment.
Here is my workaround :) (written before the pull #48 fix, but still useful for renaming duplicate names)
The text was updated successfully, but these errors were encountered: