You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can check that different libraries for load data to genind object can alter results of mmod functions
I am used adegenet library for previous analysis and create a DNAbin object.
obj_4 <- fasta2DNAbin("/media/737_alp_llam_end.fa", chunk=10)
Converting FASTA alignment into a DNAbin object...
Finding the size of a single genome...
genome size is: 468 nucleotides
( 2 lines per genome )
Importing sequences...
Forming final object...
...done.
obj_4
737 DNA sequences in binary format stored in a matrix.
All sequences of same length: 468
Labels:
B2-A135
E1-A130
F1-A131
B10-A235
B9-A216
C2-A136
...
Base composition:
a c g t
0.283 0.283 0.164 0.271
(Total: 344.92 kb)
Adegenet library have a function to pass DNAbin object to genind object. And Give these result 28 Loci
adegent_library <- DNAbin2genind(obj_4, pop = Pop)
/// GENIND OBJECT /////////
// 737 individuals; 28 loci; 58 alleles; size: 238.4 Kb
// Basic content
@tab: 737 x 58 matrix of allele counts
@loc.n.all: number of alleles per locus (range: 2-3)
@loc.fac: locus factor for the 58 columns of @tab
@all.names: list of allele names for each locus
@ploidy: ploidy of each individual (range: 1-1)
@type: codom
@call: DNAbin2genind(x = obj_4, pop = Pop)
// Optional content
@pop: population of each individual (group size range: 48-314)
But using convert function of mmod these give me 1 locus
mmod_library <- as.genind.DNAbin(obj_4, pop = Pop)
/// GENIND OBJECT /////////
// 737 individuals; 1 locus; 57 alleles; size: 228.3 Kb
// Basic content
@tab: 737 x 57 matrix of allele counts
@loc.n.all: number of alleles per locus (range: 57-57)
@loc.fac: locus factor for the 57 columns of @tab
@all.names: list of allele names for each locus
@ploidy: ploidy of each individual (range: 1-1)
@type: codom
@call: .local(.Object = .Object, tab = ..1, pop = ..2, ploidy = 1)
// Optional content
@pop: population of each individual (group size range: 48-314)
If I run Phi_st_Meirmans function of mmod the results are differents
Dear team mmod:
I can check that different libraries for load data to genind object can alter results of mmod functions
I am used adegenet library for previous analysis and create a DNAbin object.
Adegenet library have a function to pass DNAbin object to genind object. And Give these result 28 Loci
But using convert function of mmod these give me 1 locus
If I run Phi_st_Meirmans function of mmod the results are differents
I apreciated your feed back,
PD: For my research actually I am using the as.genind.DNAbin function for run mmod.
The text was updated successfully, but these errors were encountered: