Function to derive a database based on gen/database/cohorts
get.database(
population,
gen = NULL,
database = NULL,
cohorts = NULL,
avoid.merging = FALSE,
per.individual = FALSE,
id = NULL,
db.names = NULL,
id.all.copy = FALSE,
id.last = FALSE,
keep.order = FALSE,
class = NULL,
genotyped = NULL,
npheno = NULL,
verbose = TRUE,
sex.filter = 0
)Matrix with combined gen/database/cohorts
Population list
Quick-insert for database (vector of all generations to export)
Groups of individuals to consider for the export
Quick-insert for database (vector of names of cohorts to export)
Set to TRUE to avoid different cohorts to be merged in a joint group when possible
Set TRUE to obtain a database with one row per individual instead of concatenating (default: FALSE)
Individual IDs to search/collect in the database
MoPBS internal names (SexNr_Generation)
Set to TRUE to show all copies of an individual in the database (default: FALSE)
Set to TRUE to use the last copy of an individual for the database (default: FALSE - pick first copy)
To not change order of individuals when ids are provided (default: FALSE)
Only include individuals of the following classes in the database (can also be vector with multiple classes; default: ALL)
Only include individuals that are genotyped (TRUE) or not-genotyped (FALSE); default: NULL (all individuals)
Only include individuals with the certain number of phenotypes generated (default: NULL (all individuals))
Set to FALSE to not display any prints
Set to 1 to only include males and set 2 to only include females in database (default: 0)
data(ex_pop)
get.database(ex_pop, gen=2)
Run the code above in your browser using DataLab