genomicSimulationC 0.2.6
Data Fields
gsc_AlleleMatrix Struct Reference

#include <sim-operations.h>

+ Collaboration diagram for gsc_AlleleMatrix:

Data Fields

char * alleles [1000]
 A matrix of SNP markers by lines/genotypes containing pairs of alleles eg TT, TA. More...
 
unsigned int n_genotypes
 Number of genotypes currently loaded in this matrix. More...
 
unsigned int n_markers
 Number of markers across which genotypes are tracked. More...
 
char * names [1000]
 Array of dynamically allocated strings containing the names of the lines/genotypes in this matrix. More...
 
gsc_PedigreeID ids [1000]
 Unique ID for each genotype. More...
 
gsc_PedigreeID pedigrees [2][1000]
 Two lists of integer IDs of the parents of this genotype (if tracked), or 0 if we don't know/care. More...
 
gsc_GroupNum groups [1000]
 Group allocation of each genotype. More...
 
unsigned int n_labels
 Number of custom labels currently available to this gsc_AlleleMatrix. More...
 
int ** labels
 Pointer to list of labels. More...
 
gsc_AlleleMatrixnext
 Pointer to the next gsc_AlleleMatrix in the linked list, or NULL if this entry is the last. More...
 

Detailed Description

Definition at line 785 of file sim-operations.h.

Field Documentation

◆ alleles

char* gsc_AlleleMatrix::alleles[1000]

A matrix of SNP markers by lines/genotypes containing pairs of alleles eg TT, TA.

Use alleles[genotype index][marker index * 2] to get the first allele and alleles[genotype index][marker index * 2 + 1] to get the second. If CONTIG_WIDTH lines are saved here, another gsc_AlleleMatrix is added to the linked list when there's a need to save more.

Definition at line 791 of file sim-operations.h.

◆ groups

gsc_GroupNum gsc_AlleleMatrix::groups[1000]

Group allocation of each genotype.

Definition at line 804 of file sim-operations.h.

◆ ids

gsc_PedigreeID gsc_AlleleMatrix::ids[1000]

Unique ID for each genotype.

Definition at line 801 of file sim-operations.h.

◆ labels

int** gsc_AlleleMatrix::labels

Pointer to list of labels.

Size of first dimension is n_labels, of second dimension is arrays of labels of length CONTIG_WIDTH

Definition at line 809 of file sim-operations.h.

◆ n_genotypes

unsigned int gsc_AlleleMatrix::n_genotypes

Number of genotypes currently loaded in this matrix.

Definition at line 793 of file sim-operations.h.

◆ n_labels

unsigned int gsc_AlleleMatrix::n_labels

Number of custom labels currently available to this gsc_AlleleMatrix.

This has redundancy with gsc_SimData and other members of its linked list but it's good to know how big your own labels array is.

Definition at line 806 of file sim-operations.h.

◆ n_markers

unsigned int gsc_AlleleMatrix::n_markers

Number of markers across which genotypes are tracked.

This has redundancy with gsc_SimData and other members of its linked list but it's good to know how big your own alleles array is.

Definition at line 794 of file sim-operations.h.

◆ names

char* gsc_AlleleMatrix::names[1000]

Array of dynamically allocated strings containing the names of the lines/genotypes in this matrix.

Guaranteed to be NULL if they do not have names.

Definition at line 798 of file sim-operations.h.

◆ next

gsc_AlleleMatrix* gsc_AlleleMatrix::next

Pointer to the next gsc_AlleleMatrix in the linked list, or NULL if this entry is the last.

Definition at line 812 of file sim-operations.h.

◆ pedigrees

gsc_PedigreeID gsc_AlleleMatrix::pedigrees[2][1000]

Two lists of integer IDs of the parents of this genotype (if tracked), or 0 if we don't know/care.

Definition at line 802 of file sim-operations.h.


The documentation for this struct was generated from the following file: