HI Divya,
I assume you have not named your loci.
This can be tested with
locNames(gl)
if this is returning empty/null then you could do the following
locNames(gl)<- gl@other$loc.metrics$AlleleID
to name them accordingly. Assuming the alleleID is in you metadata.
And then rerun gl2fasta
Cheers, Bernd
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
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/0f8811df-84a6-4d09-9c86-ba05ce5675d1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/ME3PR01MB7944F208C93A924F491BB505D44A9%40ME3PR01MB7944.ausprd01.prod.outlook.com.
Hi Divya,
My mistake the gl2fasta is by individuals
Can you make sure that there is no typo
gl@other$ind.metrics$phylo_label
should produce the individuals names can you check that.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/CABz5kZgN5mzn9w9Q%3Dm%3D3zHNzkzAp%3DoWm-LOtw1wskEBLqWt%2BSw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/ME3PR01MB794441FB401646AB15AE2CB3D44B9%40ME3PR01MB7944.ausprd01.prod.outlook.com.
Then your phylolabel are not set correctly, you need to find one or just
indNames(gl) <- paste0(“Ind_”,1:nInd(gl))
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/CABz5kZiy3G0YRWJ4dJmMgdnfOFa2DLWB3PX5kKjM7U1JEkLnmw%40mail.gmail.com.
>
library(dartR)
>
gl <- gl.read.dart(filename="/home/user/Desktop/
testset.
csv")
>
saveRDS(gl, file="gl.Rdata")
>
gl <- readRDS("gl.Rdata")
>
pop(gl)<- rep("",nInd(gl))
indNames(gl)<-
gl@other$ind.metrics$phylo_label
>
gl2fasta(gl, method=3, outfile="filename.fas",
outpath=getwd())
Thank you for your help.
Regards,
Divya.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/ME3PR01MB7944A7561C12EA15568B1E76D44B9%40ME3PR01MB7944.ausprd01.prod.outlook.com.
You need to retype the quotes, if you copy it from the email they become the wrong type of character.
Cheers, Benrd
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/CABz5kZiW8fA5-D4XNqjhBV8DjtU5MoAsjzX_L-es86fDkfJ29g%40mail.gmail.com.