nguyens7 / tidynano Goto Github PK
View Code? Open in Web Editor NEWRepository for the tidyNano package to analyze and visualize NanoSight/NTA data.
Home Page: https://nguyens7.github.io/tidyNano
License: Other
Repository for the tidyNano package to analyze and visualize NanoSight/NTA data.
Home Page: https://nguyens7.github.io/tidyNano
License: Other
Error: Names must be unique. x These names are duplicated: * "particle_size" at locations 91, 122, and 243. Run rlang::last_error()
to see where the error occurred.
I am attempting to combine multiple csv files exported from the nanosight. When I add use the nanocombine function, all the data is merged into one DF, but it pulls particle size from each csv resulting in redundant columns names. I believe this is incompatible with the subsequent nanotidy function.
Create a function or argument to determine surface area and volume from Nanosight data mentioned in #3
Hi there,
First of all, thanks for creating this useful package.
I was having trouble getting the nanoShapiro
function to work. When I was using it on a total exosome count table similar to Fig 6A in your preprint it would throw the following error.
Error in mutate_impl(.data, dots) :
Column `broom::glance` is of unsupported type function
I made a tiny adjustment to the function which fixed the issue.
nanoShapiro
function (df, ..., value) {
group_var <- rlang::quos(...)
value <- enquo(value)
df %>%
dplyr::group_by(!!! group_var) %>%
tidyr::nest() %>%
dplyr::mutate(
Shapiro = purrr::map(data, ~stats::shapiro.test(pull(.x, quo_name(value)))),
glance = purrr::map(Shapiro, broom::glance)) %>%
tidyr::unnest(broom::glance, .drop = TRUE) %>%
dplyr::mutate(Normal_dist = dplyr::case_when(p.value > 0.05 ~ TRUE,
p.value < 0.05 ~ FALSE),
Statistical_test = dplyr::case_when(Normal_dist == TRUE ~ "Perform parametric test",
Normal_dist == FALSE ~ "Perform non-parametric test"))
}
nanoShapiro
function (df, ..., value) {
group_var <- rlang::quos(...)
value <- enquo(value)
df <- df %>%
dplyr::group_by(!!! group_var) %>%
tidyr::nest() %>%
dplyr::mutate(
Shapiro = purrr::map(data, ~stats::shapiro.test(pull(.x, quo_name(value)))),
glance = purrr::map(Shapiro, broom::glance)) %>%
tidyr::unnest(broom::glance, .drop = TRUE) %>%
dplyr::mutate(Normal_dist = dplyr::case_when(p.value > 0.05 ~ TRUE,
p.value < 0.05 ~ FALSE),
Statistical_test = dplyr::case_when(Normal_dist == TRUE ~ "Perform parametric test",
Normal_dist == FALSE ~ "Perform non-parametric test"))
return(df)
}
Hopefully that helps anyone else having a similar problem.
Cheers,
Charlotte
Hi there, thanks for writing the package.
I installed and followed your instructions, trying the example first which imports the data like it should. When I go to import my own data i get the following error:
data.file <- "~/Caseinate_NTA/Caseinates_Nanosight/A1A1/A1_35.csv"
data <- nanoimport(data.file)
NTA version: 3
Sample name: Sample 35 caseinates 1500x dil
Error in .f(.x[[i]], ...) : object '[Data Included]' not found
I checked my file and it looks exactly like your example file, and the [Data Included] line is
my file. Help!
I attach my file as a .txt so I could upload it. Just change it back to .csv to use.
Hello,
I am having a problem while using nanotidy() function. My samples are uploaded with nano import (but each sample on which 5 trials were done on NTA) is uploaded separately and then i merged them. I am having a problem of seeing the dilution, technical replicate information, etc. when i upload these files.
do you have a more detailed vignette or more explanations on what parameters could be used in these two functions with some examples?
In the publication & the Readme file, the uploaded .csv file contains all the samples, whereas normally, typical NTA data comes in separate .csv file for each sample.
thank you
best
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.