reorder_by_scaf_len: Reorder scaffolds based on their size.

Description Usage Arguments Value Examples

View source: R/reordering_functions.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
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 April 17, 2021, 2:37 p.m.