Re: [dartR] Genlight to VCF

536 views
Skip to first unread message

Jose Luis Mijangos

unread,
Jan 13, 2022, 6:36:47 PM1/13/22
to da...@googlegroups.com
Hi Dallas,

You can try with the dartR function gl2vcf(). To be sure that everything works fine, you can install the developing version of dartR before using this converting function with:

library(dartR)
dartR::gl.install.vanilla.dartR(flavour="dev”)

And then restart your Rstudio session.

I am also attaching a tutorial to guide you through the process of reading your data into dartR.

Cheers,
Luis 

Tutorial_3B_dartR_Data_Structures_and_Input_from_sources_other_than_DArT.pdf

Dallas

unread,
Jan 18, 2022, 4:08:09 PM1/18/22
to da...@googlegroups.com
Hey Jose,

Thanks for your help. I was wondering if you could help with another issue I have coming up? I'm trying to just create my genlight object, which I've done many times in the past, but now I'm getting this error:

Error in utils.read.dart(filename = filename, nas = nas, topskip = topskip, :
object 'tdummy' not found

I haven't been able to figure out how to fix it. I'm confused because I'm not calling on any objects in my script. This is the line of code I'm trying to run:

gl <- gl.read.dart(filename = "coanalyzed_imputed_1_row.csv", ind.metafile = "coanalyzed_ind_metrics.csv", topskip = 6, probar = TRUE)

Thank you for your help!
Dallas

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/0162AC04-983B-461A-9182-CD3B98733362%40gmail.com.

On 14 Jan 2022, at 8:54 am, Dallas <dallasan...@gmail.com> wrote:

Does anyone have experience converting a genlight object to a vcf file? I've been trying to use genomic_converter(), but have not been successful.

Thanks,
Dallas

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/61b47e5e-712c-4fa9-aa7b-1408c860b030n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/0162AC04-983B-461A-9182-CD3B98733362%40gmail.com.

Jose Luis Mijangos

unread,
Jan 18, 2022, 6:07:58 PM1/18/22
to dartR
Hi Dallas,

Can you try using the function without specifying the parameter "topskip":

gl <- gl.read.dart(filename = "coanalyzed_imputed_1_row.csv", ind.metafile = "coanalyzed_ind_metrics.csv", topskip = 6, probar = TRUE)

Cheers,
Luis

Dallas

unread,
Jan 18, 2022, 7:24:00 PM1/18/22
to da...@googlegroups.com
That worked - thank you!

Dallas

Dallas

unread,
Jan 19, 2022, 1:06:07 PM1/19/22
to dartR
Hi Jose,

Sorry running into another issue today. Again I'm trying to create my genlight object in the dev version of dartR, and I keep getting an error saying that the function gl.read.dart could not be found. Do you know how I might solve this?

Again your help is much appreciated!
Dallas

Dallas

unread,
Jan 19, 2022, 1:10:42 PM1/19/22
to dartR
Haha, oh no as soon as I sent that and after all my searching I finally realized I just forgot to load the package to library after installing it... Please ignore my message!

Dallas

Reply all
Reply to author
Forward
0 new messages