Skip to content

introgress issues with individuals #34

@GabrieleNocchi

Description

@GabrieleNocchi

Hi there,

I am having an hard time understanding the last few steps of the introgress tutorial. I am running introgress with all the same indidivuals in the previous maxent step, as a test. My genind object has got 380 individuals. I create the files with:

genind2introgress(gen = g_ind, p1 = "parent1", p2 = "parent2", admix = "admixed", prefix=file.path(plotDIR, "eatt"))

Here parent1 parent2 and admixed are my populations defined in @pop of the genind.

Now if I sum the ncol of the resulting input files, they sum to 382. The number of columns of each created input file seem to correspond to the number of individuals in my parent1 and parent2 populations, except the admix file which has 2 extra columns. I don t understand the admix file, as it seems to have rows = SNPs as I have 310 SNPs in my test and 310 rows, but for some reason there are 310 indidividual IDs in the second column which I have no idea what they are. My admixed individuals are 224. The total number of col of admixed input file is 224 + 2.

Then I run introgress, and results from the introgress run are given for 226 indidivuals. This number does not correspond to the admixed indidivuals number (which is 224), does not correspond to the individuals in column 2 of eatt_admix.txt (310 individuals ) and therefore I am unable to go past the subset function:

rasterPoint.list.subset <-
lapply(rasterPoint.list,
subsetIndividuals,
file.path(dataDIR, "inputFiles", "eatt_inds.txt"))

I have no idea which individuals I need to subset from rasterPoint.list (which has all the indidivuals in the genind) to match the 226 in the introgress output, and therefore cannot move to the final function clinesXenvironment.

I think I am missing something.....I am wondering maybe some issues in reading my genind file in how I specified my populations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions