Closed wanjinhu closed 2 years ago
Hi @wanjinhu ,
Could you send me your data (kuanhao.chao@gmail.com), so I can check it for you? If you want to re-install the newest version of sangeranalyseR from github, you can run the following code
library(devtools)
install_github("roblanf/sangeranalyseR", ref = "develop")
cheers,
Howard
@Kuanhao-Chao I found the problem, the ab1 file was damaged during the transfer process using ftp. The original ab1 file is a binary file, but improper ftp transmission will cause the file to be damaged.
In fact, if function “SangerRead” run Erro, most of the reasons are due to file corruption. You can use the software like Chromas to check the integrity of the ab1 file.
Wanjin Hu
Thanks @wanjinhu, that's super useful to know.
@Kuanhao-Chao, maybe we should build in an ab1 file check routine prior to loading. E.g. something like:
Try to load the file with something that should work
If there's an error loading the file: abort with an error message we write, something like "Unable to load the ab1 file [filename], please double check that this file is a valid ab1 file and try again"
If there isn't an error loading, proceed to making sure we can extract the information we want. If there are any issues, we can give more nuanced error messages like: "Unable to extract [field name] from ab1 file [filename]"
We can probably just do all of this as part of the usual workflow, by adding these kinds of useful error messages at key points. What do you think @Kuanhao-Chao?
Thanks @wanjinhu for sharing this useful information, and I hope new sangeranalyseR update is useful for you. Please let us if there are any feedbacks.
@roblanf, this sounds like a great idea! Currently, sangeranalyseR uses the ab1 file reading method from sangerseqR, and I can add this checking method on top of it to make it robuster.
Hello@Kuanhao-Chao:
sangeranalyseR did a great job in sanger sequence.
When i run function "SangerRead", there are some error showed up, like:
The code i run is:
I cant fix this Error, Can you help me out this problem?
Thanks a lot
WanjinHu