Code Monkey home page Code Monkey logo

tidynano's People

Contributors

soohyuna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

soohyuna noormu

tidynano's Issues

Nanocombine not working in conjuction with Nanotidy()

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.

Error thrown by nanoShapiro function

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.

Original 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"))
}

Adjusted 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

object '[Data Included]' not found

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.

A1_35 - Copy.txt

nanotidy and nanoimport

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.