Skip to content
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

object '[Data Included]' not found #3

Closed
jaredraynes opened this issue Nov 1, 2019 · 7 comments
Closed

object '[Data Included]' not found #3

jaredraynes opened this issue Nov 1, 2019 · 7 comments
Assignees
Labels
bug Something isn't working resolved Issue/bug addressed

Comments

@jaredraynes
Copy link

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

@jaredraynes
Copy link
Author

Opening your beads.csv example in Notepad shows that there are a lot more commars so this may be my problem. But My file is how it is saved off my machine.. E.g the [Data included] isn't wrapped by commars.

@nguyens7
Copy link
Owner

nguyens7 commented Nov 1, 2019

Thanks for submitting an issue, I think the problem is because nanoimport() was written to accommodate NTA software v2.3, 3.1, and 3.2 since those were the versions I could get my hands on to create protoype/beta test tidyNano. Looks like I can try to fix the nanoimport() function to import NTA v3.0 within the next couple days.

@nguyens7 nguyens7 self-assigned this Nov 1, 2019
@nguyens7 nguyens7 added the bug Something isn't working label Nov 1, 2019
@jaredraynes
Copy link
Author

Thanks for your prompt responce. I can also see if I can save it through software V3.2 and if that changes the commars.

@nguyens7
Copy link
Owner

nguyens7 commented Nov 1, 2019

I've updated nanoimport() to be more robust and it should be able to automatically import your data now. Just install the new version (0.1.2) of tidyNano and it should fix the problem. See if the following code works for you. The custom_name argument is to account for your sample dilution. I also updated the README.md to highlight some suggestions for naming samples to make it easier to process with tidyNano in the future.

nanoimport("A1_35.-.Copy.csv", auto_name = TRUE, custom_name = "1500") %>% nanotidy(sep_var = c("Tech_rep", "Dilution", "Sample")) %>% ggplot(aes(x = particle_size, y = True_count, color = Tech_rep )) + geom_line()

Screen Shot 2019-11-01 at 5 11 42 PM

Hope this helps!

@nguyens7
Copy link
Owner

nguyens7 commented Nov 7, 2019

@jaredraynes, did the new update allow you to import the data?

@jaredraynes
Copy link
Author

@nguyens7 yes that update worked, thank you! I am also thinking about whether the addition of a function to calculate total surface area and volume would be a good addition? This was originally available in software version 2.1 before the instrument and software were purchased by Malvern.

@nguyens7
Copy link
Owner

nguyens7 commented Nov 8, 2019

Great, I'm glad that it's working for you! I'll create another issue to see if I can work on a way to import and calculate the surface area and volume data.

@nguyens7 nguyens7 closed this as completed Nov 8, 2019
@nguyens7 nguyens7 added the resolved Issue/bug addressed label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Issue/bug addressed
Projects
None yet
Development

No branches or pull requests

2 participants