Giter VIP home page Giter VIP logo

microhaplot's People

Contributors

eriqande avatar ngthomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

microhaplot's Issues

ONT sequencing data

Hi,

I am new to microhaplot. I was wondering whether the function prepHaplofiles could be used with Nanopore sequencing data?
I have fastq files for a dozen of amplicons; however, as I only sequenced one individual I merged all my fastq files into one only and then mapped that to my reference and used the derived sorted-bam file to do the variantcalling using samtools mpileup | bcftools call.

Thank you very much,
Ettore

dplyr 0.8.0 gets released in a few days and it retains factor-level combos

There is a problem on one of the plots, and I suspect it is because I installed dplyr 0.8.0 to start testing it.

Right here:

group_by(haplo, id) %>%

That group_by is grouping on what I will bet are two different factors. (or maybe one factor and a character). At any rate, dplyr 0.8.0 keeps around all the factor levels (include all possible combinations of them) even if they don't occur in the data.

So, Thomas, you need to go through and fix all those for dplyr 0.8.0.

We can talk about it tomorrow.

CRAN Compliance doesn't allow writing in the package directory.

From https://cran.r-project.org/web/packages/policies.html

  • Packages should not write in the user’s home filespace (including clipboards), nor anywhere else on the file system apart from the R session’s temporary directory (or during installation in the location pointed to by TMPDIR: and such usage should be cleaned up). Installing into the system’s R installation (e.g., scripts to its bin directory) is not allowed.

So, the runHaplot default out.path needs to be set to a temp directory or something. I'm working through it a little bit.

Error: invalid 'times' argument (SNP report for particular loci)

Hi Thomas!
I hope you are doing well. Thanks for creating this great packages. I wanted to alert you to an issue with the SNP report, where some loci get the error invalid 'times' argument. I've checked through the other outputs for these loci and they appear to work fine. Further, "Rejecting" these loci on the locus annotation tab does not filter them out and allow a bulk download of the SNP report. Do you have any suggestions for removing these loci from the SNP report so it can be downloaded, or deciphering why they cause the SNP report portion to break?

Here is a photo of the terminal error
image

Best,
Liam

error installing microhaplot

Hi,

I'm new to microhaplot and I am getting simple installation problems. I«'ll try to describe this the best I can:

I've followed the instructions in the readme, however, to begin with I don't get 'haPLOType' being created inside Shiny, instead I get another 'microhaplot' directory, which still contains 'server' and 'ui'.
Even so, I proceeded to lunch haPLOType on the example data with 'runShinyHaplot(app.path)' but got:

Loading required package: shiny

Listening on http://127.0.0.1:5314
Error in utils::browseURL(appUrl) :
'browser' must be a non-empty character string

I've checked that the perl version is more recent than required. In any case, I tried running with my data, and I get:

Can't locate Moo.pm in @inc (you may need to install the Moo module) (@inc contains: FatPacked::33105320=HASH(0x1f925a8) /opt/modules/devel/perl/5.18.0/crc/lib/perl5/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/perl5 /opt/modules/devel/perl/5.18.0/crc/lib/5.18.0/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/5.18.0 /opt/modules/devel/perl/5.18.0/crc/lib/site_perl/5.18.0/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/site_perl/5.18.0 /mnt/lfs2/soraia/perl5/lib/perl5 /opt/modules/devel/perl/5.18.0/lib/site_perl/5.18.0/x86_64-linux-thread-multi /opt/modules/devel/perl/5.18.0/lib/site_perl/5.18.0 /opt/modules/devel/perl/5.18.0/lib/5.18.0/x86_64-linux-thread-multi /opt/modules/devel/perl/5.18.0/lib/5.18.0 .) at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 71.
BEGIN failed--compilation aborted at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 71.
Compilation failed in require at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 14859.
BEGIN failed--compilation aborted at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 14859.

If I install Moo, then I get 👍
Can't locate namespace/clean.pm in @inc (you may need to install the namespace::clean module) (@inc contains: FatPacked::27133376=HASH(0x19e05c0) /opt/modules/devel/perl/5.18.0/crc/lib/perl5/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/perl5 /opt/modules/devel/perl/5.18.0/crc/lib/5.18.0/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/5.18.0 /opt/modules/devel/perl/5.18.0/crc/lib/site_perl/5.18.0/x86_64-linux /opt/modules/devel/perl/5.18.0/crc/lib/site_perl/5.18.0 /mnt/lfs2/soraia/perl5/lib/perl5/x86_64-linux-thread-multi /mnt/lfs2/soraia/perl5/lib/perl5 /opt/modules/devel/perl/5.18.0/lib/site_perl/5.18.0/x86_64-linux-thread-multi /opt/modules/devel/perl/5.18.0/lib/site_perl/5.18.0 /opt/modules/devel/perl/5.18.0/lib/5.18.0/x86_64-linux-thread-multi /opt/modules/devel/perl/5.18.0/lib/5.18.0 .) at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 75.
BEGIN failed--compilation aborted at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 75.
Compilation failed in require at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 14859.
BEGIN failed--compilation aborted at /mnt/lfs2/soraia/R/x86_64-pc-linux-gnu-library/3.5/microhaplot/perl/hapture line 14859.
Error in read.table(summary.path, stringsAsFactors = FALSE, sep = "\t") :
no lines available in input

So I'm thinking if you have any idea how to move forward from this, or if I'm missing something earlier on, which makes that these errors keep appearing.

Best,
Soraia

This won't always clean the intermed directory

if(file.exists(paste0(out.path,"/intermed"))) system(paste0("rm -f ", out.path, "/intermed/", run.label, "_", "*.summary;"))

If I do one run call sebastes_testing, and then I do another run called sebastes then it looks like the outputs from the first run will still be around in the directory and then will get bunged into all.summary.

Why not just remove the entire directory intermed and then remake it each time? It seems that would be safer unless there is something that would break.

The meaning of "X" in the intermediate files

In the intermediate files which contain extracted SNP info for each SNP location, it's obvious that "N" would be given to a SNP of it is not covered by the read. However, sometimes, I will also get "X" for some SNP sites, what's the meaning of the "X" here?

A fake example could be:

AATTCCXXTTCCNNN

What do the two "X" in between mean?

Record (some of) the VCF input information for output

In the output pane there should be an option to return information about the actual SNPs that go into the haplotypes. Most notably it would be good to know their positions in the amplicons.

This is coming from some issues Phil Morin is having. He has some reads that have been heavily filtered which creates some Ns at the ends of some haplotypes. He would like to go back and modify the input VCF to remove those SNPs that have a lot of Ns. As it is now, it seems like one has to go back to the original input VCF and then reassociate the info there with the info coming out of microhaplot. It seems like we should be able to make a simple tibble that has that info in it so that we can just download it and get it from a CSV (or inspect it in the output pane).

Cool.

Markdown error message

Hello,

I have just tried to re-install microhaplot in my R console (v. 3.6.3) but I keep received the same error message:

"rror: processing vignette 'troubleshoot.Rmd' failed with diagnostics:
E> The 'markdown' package should be installed and declared as a dependency of the 'microhaplot' package (e.g., in the 'Suggests' field of DESCRIPTION), because the latter contains vignette(s) built with the 'markdown' package. Please see yihui/knitr#1864 for more information."

I am not sure how to fix this. Any idea?

Many thanks,
Ettore

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.