Scope & Usage

Scope

Comparisons across data sets, shared and unique loci

SMAP chromplot analyzes the overlap between haplotypes SMAP delineate.


Integration in the SMAP workflow

../_images/SMAP_global_scheme_home_2026.png

IMAGE NEEDS TO BE UPDATED

Required input

The FASTA file containing the reference sequence. Typically, whole genome reference sequences are used for Shotgun sequencing data, while a reference consisting of selected candidate genes may be created by SMAP target-selection for HiPlex data.

Commands & options

-h, --help            show this help message and exit
-v, --version         show program's version number and exit
-t TABLE, --table TABLE
                      Name of the haplotypes table retrieved from SMAP haplotype-sites or SMAP haplotype-windows in the input directory.
-b BED, --bed BED     BED file containing the coordinates of each contig in the reference genome sequence. The BED file must be stored in the input directory.
-r REFERENCE_SAMPLES, --reference_samples REFERENCE_SAMPLES
                      Name of a tab-delimited text file in the input directory listing the (new) IDs of samples used as references in the plot: first column = sample name, second column (optional):
                      colour ID (default = no list with reference samples IDs is not provided).
-o OUTPUT, --output OUTPUT
                      Output file name (default = chromplot).
-n SAMPLES, --samples SAMPLES
                      Name of a tab-delimited text file in the input directory defining the order of the (new) sample names in the barplot: first column = old names, second column (optional) = new names
                      (default = no sample list, the order of samples in the bar plot equals their order in the haplotype table).
-l LOCI, --loci LOCI  Name of a tab-delimited text file in the input directory containing a one-column list of locus IDs formatted as in the haplotypes table (default = no list provided).
--ploidy PLOIDY       Integer defining the (highest) ploidy level of the samples in the haplotypes table (default = 2, diploid).
--plot_format {pdf,png,svg,jpg,jpeg,tif,tiff}
                      File format of plots (default = pdf).

Example commands

basic usage:

smap chromplot -t <input_table> -b <bed_file> -r <references> -o <output_file_name>

Output

SMAP chromplot provides a graphical output that colors loci according to shared alleles with given reference samples.