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

Example code missing files? #207

Open
cramsing opened this issue Jan 9, 2025 · 1 comment
Open

Example code missing files? #207

cramsing opened this issue Jan 9, 2025 · 1 comment

Comments

@cramsing
Copy link

cramsing commented Jan 9, 2025

I am trying to run through the example code you helpfully have prepared in your vignettes/emales.Rmd, but am running into some issues. I realize the code is dated and have mostly worked around this, but cannot get past the first visualization step.

# parse sequence length and some metadata from fasta file emale_seqs <- read_fai("emales.fna") %>% tidyr::extract(seq_desc, into = c("emale_type", "is_typespecies"), "=(\\S+) \\S+=(\\S+)", remove=F, convert=T) %>% dplyr::arrange(emale_type, length)

^This above chunk works with simply emale_seqs <- read_seqs("emales.fna") , but does not import any start or end data, likley because the "emales.fna" file does not have any.

This makes the visualization step impossible (see below) as there is no start or end information. Do you combine this file with another, ex. annotation/gff file?

# plot the genomes - first six only to keep it simple for this example emale_seqs_6 <- emale_seqs[1:6,] p1 <- [gggenomes](https://thackl.github.io/gggenomes/reference/gggenomes.html)(emale_seqs_6) + [geom_seq](https://thackl.github.io/gggenomes/reference/geom_seq.html)() + [geom_bin_label](https://thackl.github.io/gggenomes/reference/geom_bin_label.html)() p1

Thanks!

@thackl
Copy link
Owner

thackl commented Jan 9, 2025

Hi Charis,

yeah, sorry for the outdated tutorial. Just to much on my plate to find the time and properly update it... You can use ex() to access gggenomes example data.

emale_seqs <- read_seqs(ex("emales/emales.fna"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants