View source: R/reordering_functions.R
reorder_by_scaf_len | R Documentation |
This function will order a genome stats tibble according to increasing scaffold size.
reorder_by_scaf_len(input, scaffold_lengths, min_length = 0)
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 |
A four-column tibble with scaffolds ordered in increasing size.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.