reorder_by_scaf_len: Reorder scaffolds based on their size.

View source: R/reordering_functions.R

reorder_by_scaf_lenR Documentation

Reorder scaffolds based on their size.

Description

This function will order a genome stats tibble according to increasing scaffold size.

Usage

reorder_by_scaf_len(input, scaffold_lengths, min_length = 0)

Arguments

input

A three-column tibble containing (at minimum) scaffold, ps, and stat as the first three columns.

scaffold_lengths

Name of the two-column tab-delimited file containing scaffold name and length.

min_length

Minimum length of scaffolds to keep

Value

A four-column tibble with scaffolds ordered in increasing size.

Examples

a1 <- system.file("extdata", "test.gemma_gwas.txt.gz",
                 package = "gwplotting")

a2 <- system.file("extdata", "test.chromSizes.txt.gz",
                  package = "gwplotting" )

b <- load_gemma_gwas( a1, pval = 'p_wald' )
c <- reorder_by_scaf_len( b, a2 )
c

nwvankuren/gwplotting documentation built on July 5, 2024, 4:24 p.m.